Arguslist Digest, Vol 41, Issue 2

Jeff Weisberg jaw+arguslist at tcp4me.com
Thu Jun 28 19:00:29 EDT 2007


| Ok, still stuck on this. Relevant scripts and snippit of the config file
| included
| 
| #!/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 "$*"


your script is expecting something on the command line.


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


you are telling argus to run the script, and send stuff to its
standard input.


you need to either change the script to read standard input:

	read msg
	snmptrap -m [...] $msg

or change argus to pass stuff on the command line:

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



More information about the Arguslist mailing list