SNMP Trap logical groupings

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dwainwright
Posts: 2
Joined: Thu Jul 06, 2017 8:59 am

SNMP Trap logical groupings

Post 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!
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: SNMP Trap logical groupings

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