Hi there,

I have Nagios setup as my monitoring tool. I managed to get a generic snmp trap caught in my snmp trap manager. What i want to do is to be able to get that hosts name and also add a defined text of the error. I keep getting invalid syntax when i try to add in $HOSTNAME$ or some text at the of the script. Currently this is what i have as my generic which works. Now i just need to modify.

Code:
define command{
command_name send_snmptrap
command_line /usr/bin/snmptrap -v 1 -d -c public 172.20.xx.xx .1.3.6.1.4 10.33.xx.xxx 3 0 1000 .1.3.6.1.4 i 1
}

End code.

172.20.xx.xx is my snmp trap.....10.33.xx.xxx is the host where nagios is installed.