Hi all,
we had the problem to handle SNMP traps with zabbix and we studied several solutions but none of the met our requirements.
We have a environment with a lot of snmp enabled devices and wanted to migrate this to another monitoring systems. Because we didn't have much time to configure every snmp device inside zabbix, add items and so on, we choosed a simpler approach:
1) snmptrapd gets the traps
2) snmptrapd calls a ruby script "zabbix_snmp_trapper.rb" to handle it (ruby because I can write it a lot faster than perl and python and cause of puppet it's everywhere in our environment)
3) API calls to zabbix to create
a) a host if non existent
b) an item for this host, if non existent
c) an trigger, if non existent
d) an event through zabbix_sender
So the process is in short:
snmptrapd -> zabbix_snmp_trapper -> zabbix_sender->zabbix
With additional API call from zabbix_snmp_trapper to zabbix.
In the current state, this solution works but it is not very comfortable to install, some debugging stuff should be better - but we have a small log. You should calculate 1 or 2 hours for install. Most stuff described for RedHat/CentOS only, some steps for Debian too but you can adapt that easily.
we had the problem to handle SNMP traps with zabbix and we studied several solutions but none of the met our requirements.
We have a environment with a lot of snmp enabled devices and wanted to migrate this to another monitoring systems. Because we didn't have much time to configure every snmp device inside zabbix, add items and so on, we choosed a simpler approach:
1) snmptrapd gets the traps
2) snmptrapd calls a ruby script "zabbix_snmp_trapper.rb" to handle it (ruby because I can write it a lot faster than perl and python and cause of puppet it's everywhere in our environment)
3) API calls to zabbix to create
a) a host if non existent
b) an item for this host, if non existent
c) an trigger, if non existent
d) an event through zabbix_sender
So the process is in short:
snmptrapd -> zabbix_snmp_trapper -> zabbix_sender->zabbix
With additional API call from zabbix_snmp_trapper to zabbix.
In the current state, this solution works but it is not very comfortable to install, some debugging stuff should be better - but we have a small log. You should calculate 1 or 2 hours for install. Most stuff described for RedHat/CentOS only, some steps for Debian too but you can adapt that easily.
Comment