Rename SNMP Traps

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
deepavaidya
Posts: 80
Joined: Sun Oct 06, 2013 8:23 am

Rename SNMP Traps

Post by deepavaidya »

Hi,

Is it possible to edit the service name 'SNMP Traps' and rename it as 'TimesTen Traps' to receive the traps from Timesten database server.

If I rename the service description from configure->CCM->Services. The service name is changed but it is in pending state and in the log files we can see the below error.


Passive check result was received for service 'SNMP Traps' on host 'XXXX', but the service could not be found!

Same error is got when tried the below cmd

/usr/local/bin/snmpttconvertmib --in=TRIPPLITE-MIB.txt --out=TRIPPLITE-MIB.conf --exec='/usr/local/bin/snmptraphandling.py "$r" "TimesTen Traps" "$s" "$@" "$-*"'


The SNMP Traps service is found in Unconfigured Object and need to configure it again to get the trap. Is there any configuration file which should be edited in order to get the traps in renamed service 'TimesTen Traps'
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Rename SNMP Traps

Post by sreinhardt »

You also need to alter the exec line in /etc/snmp/snmptt.conf so that the "SNMP Traps" is changed to what you want. That particular part is the service name sent in to nagios, so altering it to match your service name is needed. Otherwise you will probably see the traps coming into the old service or the unconfigured objects area.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked