Page 1 of 1

Need help

PostPosted: Tue Jun 28, 2022 6:20 am
by JunaNouguesan
I have a site where a cable being plugged in and/or unplugged is something I would like to alert on, but the trap doesn't even show up in Nagios Core GUI. I have notifications set for w,u,c,r but that doesn't work. Any tips?

I know that I am receiving the trap because I see it in snmptt.log

Tue Oct 12 05:24:35 2021 .1.3.6.1.6.3.1.1.5.3 Normal "Status Events" mySwitch - Link down on interface 5. Admin state: $2. Operational state: $3

Tue Oct 12 05:24:39 2021 .1.3.6.1.6.3.1.1.5.4 Normal "Status Events" mySwitch - Link up on interface 5. Admin state: $2. Operational state: $3

I also know alerting and notifications are working because I am receiving notifications echatspin echatrandom for WARNING and INFORMATIONAL events from my UPS.

Re: Need help

PostPosted: Tue Jun 28, 2022 1:24 pm
by gormank
Make sure the hostname and address are the same in the host definition as they are in the arriving traps.
Are the hostname and address resolvable?
Is an SNMP trap service attached to the host?
Are the traps being logged in snmpttunknown.log? If so, usually the MIB hasn't been added to snmptt.conf
In NXI there's a page that lists unconfigured objects. I don't know if it exists in core, but I've never seen it.