How to create an snmp trap service?
Posted: Mon Mar 26, 2012 9:36 am
Hi,
I am having hard time to create a working trap service in Nagios XI and even in understanding how it should work.
I have downloaded and installed the Nagios XI ca. one month ago, so I believe it is quite a new version. (where to check the version?)
I have also tried to follow some instructions found on the new, for example these:
1) http://assets.nagios.com/downloads/nagi ... ith_XI.pdf
2) http://nagios.frank4dd.com/howto/window ... nagios.htm
with 1) I have not been able to proceed because the server is not connected to internet and the script seems to rely on downloading external packages from the net. I also tried on another server and received a lot of errors, probably because some links are not up-to-date anymore. Is this instructions from 2009??
with 2) I had better luck and I was able to get succesfull results with the tests. So SNMP trap daemon is up and receiving.
So, here is the problem:
I have created a snmp trap service using the monitor wizard, and chosen the snmp trap service for an existing host. Here is the first question:
q1: Do I really need to create another host and service ( I have made the simple ping service) before I can add the snmp trap service to that host? Because the wizard just shows a list of existing hosts, there's no option to add a new? Or have I misunderstood something?
I have verified that the service is sending snmp traps to nagios server's IP. I have used network sniffer to verify this. So it shouldn't be a firewall issue. However, Nagios only displays the trap service as green, saying "waiting for trap..".
I can't see anything coming to either Nagios or snmp logs.
q2: so have I missed something when creating the service?
q3: The mibs of the monitored device are not in place yet. (We are still waiting for them from a 3rd party provider). But afaik this shouldn't prevent seeing the arriving snmp traps in the snmp and nagios logs, or should it?
q4: At the moment I can see only two services for the monitored host: ping and snmp traps.
I suppose when the first trap arrives, all the monitored parameters will appear on the home dashboard in addition to these two ones, or.. ?
q5: Nagios will look for the mibs of monitored hosts in the defined directory on the nagios server ( /usr/share/snmp/mibs ) and when the trap arrives Nagios can connect the trap to the right service by verifying the mib file names agains the content of the trap.. or have I got it wrong?
If you have any ideas how I could proceed, I'd greatly appreciate!
MArk
I am having hard time to create a working trap service in Nagios XI and even in understanding how it should work.
I have downloaded and installed the Nagios XI ca. one month ago, so I believe it is quite a new version. (where to check the version?)
I have also tried to follow some instructions found on the new, for example these:
1) http://assets.nagios.com/downloads/nagi ... ith_XI.pdf
2) http://nagios.frank4dd.com/howto/window ... nagios.htm
with 1) I have not been able to proceed because the server is not connected to internet and the script seems to rely on downloading external packages from the net. I also tried on another server and received a lot of errors, probably because some links are not up-to-date anymore. Is this instructions from 2009??
with 2) I had better luck and I was able to get succesfull results with the tests. So SNMP trap daemon is up and receiving.
So, here is the problem:
I have created a snmp trap service using the monitor wizard, and chosen the snmp trap service for an existing host. Here is the first question:
q1: Do I really need to create another host and service ( I have made the simple ping service) before I can add the snmp trap service to that host? Because the wizard just shows a list of existing hosts, there's no option to add a new? Or have I misunderstood something?
I have verified that the service is sending snmp traps to nagios server's IP. I have used network sniffer to verify this. So it shouldn't be a firewall issue. However, Nagios only displays the trap service as green, saying "waiting for trap..".
I can't see anything coming to either Nagios or snmp logs.
q2: so have I missed something when creating the service?
q3: The mibs of the monitored device are not in place yet. (We are still waiting for them from a 3rd party provider). But afaik this shouldn't prevent seeing the arriving snmp traps in the snmp and nagios logs, or should it?
q4: At the moment I can see only two services for the monitored host: ping and snmp traps.
I suppose when the first trap arrives, all the monitored parameters will appear on the home dashboard in addition to these two ones, or.. ?
q5: Nagios will look for the mibs of monitored hosts in the defined directory on the nagios server ( /usr/share/snmp/mibs ) and when the trap arrives Nagios can connect the trap to the right service by verifying the mib file names agains the content of the trap.. or have I got it wrong?
If you have any ideas how I could proceed, I'd greatly appreciate!
MArk