Hello All,
I use to run zabbix 2.0.6, and recently upgraded to 2.2.12. I wasn't using snmptraps, but only snmpget/walk so no issues till now. Looks like traps are more reliable than snmpget so decided to implement.
A quick search leads to this tutorial , but i am having tough time getting things work. I choose perl option, and below is the error i am facing when i am running snmptrapd start,
below is the /etc/snmp/snmptrapd.conf
Error:
Also, /var/log/messages
I did tried making per as /usr/bin/perl but that time error msg was diff
But /var/log/messages has some other line to show
Trying to send example trap from this guide landed it in /var/log/messages instead of /tmp/zabbix_trapper.tmp
Should i start working on snmptt instead of perl script?
Also There are not examples provided in manuals on how to create example items for traps. Say port goes down, fan stopped working, latency is high etc.
Any pointers to get this working is really helpful.
Thanks
I use to run zabbix 2.0.6, and recently upgraded to 2.2.12. I wasn't using snmptraps, but only snmpget/walk so no issues till now. Looks like traps are more reliable than snmpget so decided to implement.
A quick search leads to this tutorial , but i am having tough time getting things work. I choose perl option, and below is the error i am facing when i am running snmptrapd start,
below is the /etc/snmp/snmptrapd.conf
Code:
# Example configuration file for snmptrapd # # No traps are handled by default, you must edit this file! # # authCommunity log,execute,net public # traphandle SNMPv2-MIB::coldStart /usr/bin/bin/my_great_script cold authCommunity log,execute,net public authCommunity log,execute,net string1 authCommunity log,execute,net string2 authCommunity log,execute,net string3 perl do /usr/bin/zabbix_trap_receiver.pl;
Code:
Starting snmptrapd: Bareword found where operator expected at (eval 2) line 1, near "/usr/bin"
(Missing operator before bin?)
[ OK ]
Code:
May 3 15:50:43 Zabbix-Test1 snmptrapd[119488]: /etc/snmp/snmptrapd.conf: line 11: Warning: Unknown token: /usr/bin/perl. May 3 15:50:43 Zabbix-Test1 snmptrapd[119489]: NET-SNMP version 5.5
Code:
[loginuser@Zabbix-Test1 snmp]# /etc/init.d/snmptrapd restart ; tailf /var/log/messages Stopping snmptrapd: [ OK ] Starting snmptrapd: [ OK ]
Code:
May 3 16:02:43 Zabbix-Test1 snmptrapd[119642]: /etc/snmp/snmptrapd.conf: line 11: Warning: Unknown token: /usr/bin/perl. May 3 16:02:43 Zabbix-Test1 snmptrapd[119643]: NET-SNMP version 5.5
Should i start working on snmptt instead of perl script?
Also There are not examples provided in manuals on how to create example items for traps. Say port goes down, fan stopped working, latency is high etc.
Any pointers to get this working is really helpful.
Thanks
, also when there aren't much documentation available on getting this work makes me think again on using this.
, let me try something similar to this and get back.

Comment