Page 1 of 1

SNMP Trap logical groupings

Posted: Thu Oct 04, 2018 11:55 am
by dwainwright
I am running:
Nagios XI 5.5.3
CentOS Linux release 7.4.1708 (Core)

I have a host for whom I have created an snmp trap service. The snmptt.conf shows that there are 700ish traps in this OID space.(318 APC)
What I would ultimate like to do is to have a fistful of these traps in a single service and the remainder in a separate service. Then I can configure what nagios does when specific traps fire in the snmptt as well. This should let me have two traps in one service group that go critical and have the rest remain in an "ok" state but still fire.

Does that sound right to everyone?

Thanks!

Re: SNMP Trap logical groupings

Posted: Fri Oct 05, 2018 2:52 pm
by ssax
Please explain a little more by what you mean by this:
This should let me have two traps in one service group that go critical and have the rest remain in an "ok" state but still fire.
Other than that if you want to separate them into different services, if you look in your /etc/snmp/snmptt.conf file the EXEC line contains:

Code: Select all

EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "Blah Blah Blah $*"
The "SNMP Traps" text is the service name in nagios so you would need to change that in the /etc/snmp/snmptt.conf in order for it to go to a different service name.