Page 2 of 2

Re: SNMP Traps are clearing live alarms when they shouldnt

Posted: Thu Jun 10, 2021 9:50 am
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