Subject: Re: Arguslist Digest, Vol 41, Issue 2

From: Andy <[email-masked]>
Date: Thu, 28 Jun 2007 11:37:39 +0100

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@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, [email-masked] <[email-masked]>
wrote:
>
> Send Arguslist mailing list submissions to
>         [email-masked]
>
> 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
>         [email-masked]
>
> You can reach the person managing the list at
>         [email-masked]
>
> 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)" <[email-masked]>
> Subject: RE: Sending Argus notifications via SNMP
> To: "Discussion about Argus" <[email-masked]>
> Message-ID:
>         <
> [email-masked]>
> 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
> [email-masked]
> http://www.tcp4me.com/mailman/listinfo/arguslist
>
>
> End of Arguslist Digest, Vol 41, Issue 2
> ****************************************
>