SNMPTrap Service Setup
-
dslaughter
- Posts: 140
- Joined: Wed Feb 20, 2019 3:46 pm
SNMPTrap Service Setup
I've read the snmp docs from nagios but I'm still have a question. How do I configure services? Does each host that sends a trap have a snmptrap service defined or only the trap receiver?
Re: SNMPTrap Service Setup
Each host that sends in snmp traps should have their own passive services that handle the snmp traps. You can configure multiple traps to send to the same passive service, but most of the time you'll want to have snmp traps send to their own passive service.
Have you seen https://www.youtube.com/watch?v=3cpMf5Tl04Y? It goes through adding services.
Have you seen https://www.youtube.com/watch?v=3cpMf5Tl04Y? It goes through adding services.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
dslaughter
- Posts: 140
- Joined: Wed Feb 20, 2019 3:46 pm
Re: SNMPTrap Service Setup
Thanks for the video. It was pretty good but I'm still not 100% clear on service setup.
For every host that SENDS traps should have a single passive snmp trap service configured.
The trap RECEIVER is not required to have a passive snmp trap service configured unless the host is also sending traps. My receiver is the nagiosxi server itself.
Is that correct?
For every host that SENDS traps should have a single passive snmp trap service configured.
The trap RECEIVER is not required to have a passive snmp trap service configured unless the host is also sending traps. My receiver is the nagiosxi server itself.
Is that correct?
Re: SNMPTrap Service Setup
Correct.The trap RECEIVER is not required to have a passive snmp trap service configured unless the host is also sending traps.
Code: Select all
For every host that SENDS traps should have a single passive snmp trap service configured.As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
dslaughter
- Posts: 140
- Joined: Wed Feb 20, 2019 3:46 pm
Re: SNMPTrap Service Setup
Is it possible to have a default service on the receiver to log all traps that have not been defined so I don't miss any traps? I tried to set this up but couldn't get it to work.
Re: SNMPTrap Service Setup
There are a couple of places where traps can get trapped.
If the system doesn't have a valid OID for the trap, the trap will get logged in /var/log/snmptt/snmpttunknown.log. You could monitor this file by datetime since modification, or one of the check_log plugins.
If the system has a valid OID for the trap, but Nagios doesn't have a host/service configured for it, it will get logged in /usr/local/nagiosxi/var/corelog.newobjects. You can use similar methods to monitor this file.
If the system doesn't have a valid OID for the trap, the trap will get logged in /var/log/snmptt/snmpttunknown.log. You could monitor this file by datetime since modification, or one of the check_log plugins.
If the system has a valid OID for the trap, but Nagios doesn't have a host/service configured for it, it will get logged in /usr/local/nagiosxi/var/corelog.newobjects. You can use similar methods to monitor this file.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
dslaughter
- Posts: 140
- Joined: Wed Feb 20, 2019 3:46 pm
Re: SNMPTrap Service Setup
ok, thanks for the info. Go ahead and lock this. I'm going to start watching that log. If I have any problems I'll start a new thread.