SNMP Traps best practices

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: SNMP Traps best practices

Post by BanditBBS »

sreinhardt wrote:You generally have a good handle on whats going on around here, so I'm just going to throw this out there on the off chance it was overlooked. While your service has notify for everything, does your contact also? Could be that its just getting restricted there.. but again I would think you covered that already.
That is what I meant by my account. However, that was just checking my XI account. I will check the actual contact configuration file when I get in the office tomorrow. However, I know I get recovery messages because if I submit a passive result and set it critical, I get that alert and then if I submit another passive result set to OK, I get the recovery. If I then send another passive result set to OK I do not get any alert.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: SNMP Traps best practices

Post by sreinhardt »

if I submit another passive result set to OK, I get the recovery. If I then send another passive result set to OK I do not get any alert.
OK, so you do get the initial recovery email, just not a second or more notification. Also, I thought you might have been referring to that before, just wanted to be sure.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: SNMP Traps best practices

Post by BanditBBS »

sreinhardt wrote:
if I submit another passive result set to OK, I get the recovery. If I then send another passive result set to OK I do not get any alert.
OK, so you do get the initial recovery email, just not a second or more notification.
Correct, which means my contact is fine., but just to show you:

Code: Select all

define contact {
        contact_name                            clarkj
        alias                                   Jim Clark
        host_notification_period                clarkj_notification_times
        service_notification_period             clarkj_notification_times
        host_notification_options               d,u,r,f,
        service_notification_options            w,u,c,r,f,
        email                                   [email protected]
        pager                                   7402782037
        host_notifications_enabled              1
        service_notifications_enabled           1
        use                                     xi_contact_generic
        }
It is looking like I have to change all traps for these devices to critical if I want alerted on them all, unless there are any other hints to try. technically, it won't be hard, I can just add a section into snmptraphandling.py that says if host=whatever then severity=critical. I'd just rather not have to adjust that script more than I already have :)
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: SNMP Traps best practices

Post by abrist »

BanditBBS wrote:It is looking like I have to change all traps for these devices to critical if I want alerted on them all
Unfortunately, this seems to be the case.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked