Need help

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
JunaNouguesan
Posts: 4
Joined: Thu Apr 28, 2022 7:32 am

Need help

Post 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.
Last edited by JunaNouguesan on Fri Aug 19, 2022 6:42 am, edited 1 time in total.
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Need help

Post 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.
Locked