SNMP Traps are clearing live alarms when they shouldnt

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: SNMP Traps are clearing live alarms when they shouldnt

Post by ssax »

You would need to comment out or remove this line to stop if from being submitted to nagios:

Code: Select all

EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "Notification of a configuration management event as $*"
Then restart snmptt:

Code: Select all

systemctl restart snmptt
If you wanted the to use a different service, you could go copy the SNMP Traps service on the hosts and change the Service Description to something else like "SNMP Traps Config Management" and then use that in the EXEC line so that SNMPTT knows which service it's supposed to send it to:

Code: Select all

EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps Config Management" "$s" "$@" "$-*" "Notification of a configuration management event as $*"
Then restart snmptt:

Code: Select all

systemctl restart snmptt
Locked