Status not changed for SNMP monitor

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
sitaonair
Posts: 55
Joined: Wed Jan 06, 2016 3:36 am

Re: Status not changed for SNMP monitor

Post by sitaonair »

Basically I have like close to 40 OID for this device in the snmptt.conf file, so I am looking to configure a single Service Check in Nagios XI for eg. the 2 OID I shared previously.

Does that mean I should change the name of the service check in the EXEC to the following:

EXEC /usr/local/bin/snmptraphandling.py "$r" "System Config SNMP" "$s" "$@" "$-*" "$N $s - System configuration reload resulted in unexpected errors or warnings which $*"

EXEC /usr/local/bin/snmptraphandling.py "$r" "System Config SNMP" "$s" "$@" "$-*" "$N $s - System configuration reloaded successfully. $*"

How should the Nagios XI side be configured to listen out for these 2 specific traps instead of all traps sent from the remote host?

I currently use the xiwizard_snmptrap_service template on the remote host and have the description as "SNMP Traps", would configuring a seperate service check with description "System Config SNMP" work?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Status not changed for SNMP monitor

Post by tgriep »

If you want the received traps to show up in the XI GUI under a different service name, yes you would have to edit the EXEC line and change the name like your example shows.

The way the SNMPTT daemon works is if the OID exists in the configuration file, it will translate it and run the EXEC command.
If the remote system is sending different OID's, you could create separate settings for each OID to go to a specific service check.
Or, don't change them and they will all go to the same service check, it is up to you on what you want.
But in your example, if that host send to those 2 OID's it will go to the service called "System Config SNMP". All others will go to the default name if they are configured.

The xiwizard_snmptrap_service template uses "SNMP Traps" as the service name so if you want to use the new name, you would have to create a new template and change the service name to "System Config SNMP" and then use that template for the new services.

One thing to note, the first time a trap is received, it will show up in the XI GUI under the Admin > Unconfigured Objects menu, in there you can configure it and from them on, it will receive that trap automatically.

You may want to look at the Nagios XI - SNMP Trap Tutorial article at the following link for more details on how this works.
https://support.nagios.com/kb/article/n ... al-77.html
Be sure to check out our Knowledgebase for helpful articles and solutions!
sitaonair
Posts: 55
Joined: Wed Jan 06, 2016 3:36 am

Re: Status not changed for SNMP monitor

Post by sitaonair »

Thanks, you may close this thread.
Locked