Any Idea on this.... traphandle implementing snmptrapd on nagios
Subhendu Ghosh
sghosh at sghosh.org
Mon Apr 7 14:32:49 CEST 2003
On Mon, 7 Apr 2003, Graemann wrote:
> 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"
I believe you need to specify the OID not the user friendly form used
above...
traphandle .1.3.6.1.2.6.3.1.1.5.4 ......
>
> 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.
>
>
>
--
-sg
-------------------------------------------------------
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