Any Idea on this.... traphandle implementing snmptrapd on nagios
Graemann
graemann at linuxmail.org
Mon Apr 7 08:29:44 CEST 2003
Fellow Nagios User:
Im configuring my Nagios to receive traps from a remote host using snmptrapd.
I have the following snmptrapd.conf:
traphandle IF-MIB::linkUp /usr/local/nagios/libexec/evenhandlers/submit_check_result MRTGServer "PING" 1 "link UP"
then when i sent a trap with the following :
snmptrap -v 2c -c public localhost SNMPv2-MIB IF-MIB::linkUp
when i tail my /var/log/messages i am recieving the traps although the command submit_check_result is not executed or at least its not reflecting in my Nagios alarms.
But when i execuuted the command
/usr/local/nagios/libexec/evenhandlers/submit_check_result MRTGServer "PING" 1 "link UP"
my Nagios is showing an alarm. Plus when i change the command to
/bin/echo "Link UP" > /tmp/linkstat
then sent an snmptrap it is excuting the said command.
What am i doing wrong? any Ideas you can share???
Thanks in Advance.
--
______________________________________________
http://www.linuxmail.org/
Now with e-mail forwarding for only US$5.95/yr
Powered by Outblaze
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list