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.
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.