This is a discussion on snmptrapd - traphandle doesn't invoke any program for within the SNMP Users forums, part of the Networking and Network Related category; --===============0452058590== Content-Type: multipart/alternative; boundary="----=_Part_4672_25209681.1200306550072" ------=_Part_4672_25209681.1200306550072 Content-Type: text/plain; charset=ISO-8859-1 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--===============0452058590==
Content-Type: multipart/alternative; boundary="----=_Part_4672_25209681.1200306550072" ------=_Part_4672_25209681.1200306550072 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, I have following snmtrapd.conf file #-----------snmptrapd.conf---- authCommunity log,execute,net public #generic traphandle .1.3.6.1.6.3.1.1.5.1 /home/open #coldStart 0 traphandle .1.3.6.1.6.3.1.1.5.2 /home/open #warmStart 1 traphandle .1.3.6.1.6.3.1.1.5.3 /usr/bin/putty& traphandle .1.3.6.1.6.3.1.1.5.4 /home/open #linkUp 3 traphandle .1.3.6.1.6.3.1.1.5.5 /home/open #authenticationFailure 4 traphandle .1.3.6.1.6.3.1.1.5.6 /home/open #egpNeighborLoss 5 #Enterprise-spec traps for AMERICAN POWER CONVERSION traphandle .1.3.6.1.4.1.318.1* /home/open #communicationLost traphandle .1.3.6.1.4.1.318.2* /home/open #upsOverload traphandle .1.3.6.1.4.1.318.4* /home/open #upsDischarged traphandle .1.3.6.1.4.1.318.5* /bin/ls #upsOnBattery traphandle 1.3.6.1.4.1.318.7* /home/open #lowBattery traphandle .1.3.6.1.4.1.318.9* /usr/bin/putty &#powerRestored when I generate APC-specific traps traphandle doesnt invoke any program, but it works fine for generic traps I start snmptrapd with following command: tomb mibs # snmptrapd -P -F "%02.2h:%02.2j TRAP %w.%q from %A Descr.: %W\n" I generate traps & I get: Warning: -P option is deprecated; use -f -Le instead NET-SNMP version 5.4 11:02 TRAP 6.PowerNet-MIB::upsOnBattery from 192.168.0.166 Descr.: Enterprise Specific 11:02 TRAP 6.PowerNet-MIB::powerRestored from 192.168.0.166 Descr.: Enterprise Specific Can anybody point me what I am doing wrong? When I use traphandle ..1.3.6.1.4.1.318.* /bin/ls #upsOnBattery it recognizes trap & invokes program but thats not a point. Thanks in advance, Thomasz ------=_Part_4672_25209681.1200306550072 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello,<br><br>I have following snmtrapd.conf file<br><font size="1">#-----------snmptrapd.conf----<br>authCommunity log,execute,net public<br>#generic<br>traphandle .1.3.6.1.6.3.1.1.5.1 /home/open #coldStart 0<br>traphandle .1.3.6.1.6.3.1.1.5.2 /home/open #warmStart 1 <br>traphandle .1.3.6.1.6.3.1.1.5.3 /usr/bin/putty&<br>traphandle .1.3.6.1.6.3.1.1.5.4 /home/open #linkUp 3<br>traphandle .1.3.6.1.6.3.1.1.5.5 /home/open #authenticationFailure 4<br>traphandle .1.3.6.1.6.3.1.1.5.6 /home/open #egpNeighborLoss 5 <br>#Enterprise-spec traps for AMERICAN POWER CONVERSION<br>traphandle .1.3.6.1.4.1.318.1* /home/open #communicationLost<br>traphandle .1.3.6.1.4.1.318.2* /home/open #upsOverload<br>traphandle .1.3.6.1.4.1.318.4* /home/open #upsDischarged <br>traphandle .1.3.6.1.4.1.318.5* /bin/ls #upsOnBattery<br>traphandle 1.3.6.1.4.1.318.7* /home/open #lowBattery<br>traphandle .1.3.6.1.4.1.318.9* /usr/bin/putty &#powerRestored<br><br></font>when I generate APC-specific traps traphandle doesnt invoke any program, but it works fine for generic  ;traps <br><br>I start snmptrapd with following command:<br><font size="1">tomb mibs # snmptrapd -P -F "%02.2h:%02.2j TRAP %w.%q from %A Descr.: %W\n"</font><br>I generate traps & I get: <br><font size="1">Warning: -P option is deprecated; use -f -Le instead <br>NET-SNMP version 5.4<br>11:02 TRAP 6.PowerNet-MIB::upsOnBattery from <a href="http://192.168.0.166">192.168.0.166</a> Descr.: Enterprise Specific<br>11:02 TRAP 6.PowerNet-MIB::powerRestored from <a href="http://192.168.0.166"> 192.168.0.166</a> Descr.: Enterprise Specific</font><br><br>Can anybody point me what I am doing wrong? When I use <font size="1">traphandle .1.3.6.1.4.1.318.* /bin/ls #upsOnBattery </font><font size="2">it recognizes trap & invokes program but thats not a point. <br> Thanks in advance,<br>Thomasz</font><br clear="all"> ------=_Part_4672_25209681.1200306550072-- --===============0452058590== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216...et/marketplace --===============0452058590== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users --===============0452058590==-- |