Ad Widget

Collapse

snmptraphandler script broken?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • svenw
    Junior Member
    • May 2008
    • 26

    #1

    snmptraphandler script broken?

    hi there,

    i tried setting up snmp monitoring, following http://www.zabbix.com/wiki/howto/monitor/snmp/snmptraps which links to http://www.zabbix.com/wiki/howto/mon...nmptraphandler as a script for sending to zabbix in the end.

    i'm not sure, but i believe the script cannot work. while it seems to be supposed to send all key/value pairs (besides non-interesting ones, if configured) the sending of a single pair is done in a while(1) loop, which can only be left if it hits one of the exit() calls. therfore i believe these should be lsat() instead, to continue processing of the <STDIN>. at least this worked for me.
    Last edited by svenw; 26-01-2010, 13:42.
Working...