Arguslist Digest, Vol 41, Issue 2

Andy derfley at gmail.com
Thu Jun 28 06:37:39 EDT 2007


Ok, still stuck on this. Relevant scripts and snippit of the config file
included

--script--
#!/bin/bash
#send argus notifcations via snmp
snmptrap -m all -v 2c -c public 192.168.3.56 localhost
.1.3.6.1.4.1.16839.26  .1.3.6.1.4.1.16389.26.1000.1 s "$*"

>> myfile.txt echo "$*"
--script--

--Argus config snippit--


Method "snmp_trap" {
                command:        /home/testing/sbin/trap_send.sh
                send:     %O %S %M %T %C \n\n
                }

Group   "Special Monitor" {
        notify: isg_mail:andy at localhost  snmp_trap:
        sendnotify:    no
        overridable:    yes
        messagedn:      %i %r %s %t %O
        Include "/var/argus/special"
}
--Argus config snippit--



Notifications get sent ok, but there is no data been sent with the SNMP
notification. The script works fine from the command line and passes the
SNMP data as expected.

Any ideas guys ?

Andy.


On 11/06/07, arguslist-request at tcp4me.com <arguslist-request at tcp4me.com>
wrote:
>
> Send Arguslist mailing list submissions to
>         arguslist at tcp4me.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://www.tcp4me.com/mailman/listinfo/arguslist
> or, via email, send a message with subject or body 'help' to
>         arguslist-request at tcp4me.com
>
> You can reach the person managing the list at
>         arguslist-owner at tcp4me.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Arguslist digest..."
>
>
> Today's Topics:
>
>    1. RE: Sending Argus notifications via SNMP
>       (Frithiof Jensen (AH/LMD))
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 11 Jun 2007 10:43:19 +0200
> From: "Frithiof Jensen (AH/LMD)" <frithiof.jensen at ericsson.com>
> Subject: RE: Sending Argus notifications via SNMP
> To: "Discussion about Argus" <arguslist at tcp4me.com>
> Message-ID:
>         <
> B4F8E3A39D48914A917D366C2F96E7CBA91F35 at esealmw107.eemea.ericsson.se>
> Content-Type: text/plain;       charset="us-ascii"
>
>
> > Sending out notifications via SNMP which will be caught on
> > another machines SNMP traps.
> >
> >    Any ideas or suggestions on how to implement this?
>
> The Net-SNMP tools have "snmptrap" and and "snmpinform" command-line
> tools that are useful for hand-crafting traps:
>
> http://net-snmp.sourceforge.net/docs/man/
>
> Getting this to work is basically the "the same story" as when setting
> up mails on services UP/DOWN (long time since I tinkered with it) ...
> Except one needs to deal with proper OID e.t.c. for the Trap/Inform.
>
> How to run scripts on events is certainly in the Argus docs somewhere.
>
>
>
> ------------------------------
>
> _______________________________________________
> Arguslist mailing list
> Arguslist at tcp4me.com
> http://www.tcp4me.com/mailman/listinfo/arguslist
>
>
> End of Arguslist Digest, Vol 41, Issue 2
> ****************************************
>


More information about the Arguslist mailing list