Page 1 of 1
snmptt service seems to crash and snmp trap files build up
Posted: Mon Nov 05, 2018 9:48 am
by wjoyner
snmptt service seems to crash and snmp trap files build up
This will happen every couple of days where the snmptt service seems to crash, I will restart the service and it will start and clear up the backlog.
Current version of Nagios XI is Installed Version: 5.5.2
Any help is appreciated.
Re: snmptt service seems to crash and snmp trap files build
Posted: Mon Nov 05, 2018 2:58 pm
by tgriep
Do you see any errors in the snmptt log files when the traps stop getting processed?
Take a look at these log files for any errors.
Code: Select all
/var/log/snmptt/snmptt.log
/var/log/snmptt/snmpttsystem.log
Re: snmptt service seems to crash and snmp trap files build
Posted: Tue Nov 06, 2018 7:52 am
by wjoyner
I am not seeing anything out of the ordinary.
Re: snmptt service seems to crash and snmp trap files build
Posted: Tue Nov 06, 2018 12:25 pm
by tgriep
Lets enable debugging for the snmptt daemon by editing the /etc/snmp/snmptt.ini file and changing the following settings fom
Code: Select all
DEBUGGING = 0
DEBUGGING_FILE =
DEBUGGING_FILE_HANDLER =
to
Code: Select all
DEBUGGING = 1
DEBUGGING_FILE = /var/log/snmptt/snmptt.debug
DEBUGGING_FILE_HANDLER = /var/log/snmptt/snmptthandler.debug
Save the changes and restart the snmptt daemon.
Then the next time it happens, check those 2 log files to see if there are any errors.
By your estimation, how many systems are sending Traps to the Nagios server and how many traps each?
Re: snmptt service seems to crash and snmp trap files build
Posted: Wed Nov 07, 2018 2:50 pm
by wjoyner
I turned on debug and will check it when it fails.
Estimate is a few 100 an hour.
Re: snmptt service seems to crash and snmp trap files build
Posted: Wed Nov 07, 2018 2:57 pm
by tgriep
OK. that is not very many Traps but let us know what you find in the debug logs.
Re: snmptt service seems to crash and snmp trap files build
Posted: Mon Nov 12, 2018 8:26 am
by wjoyner
so the service failed again and looking through the logs on two things stand out. The version, but this is from the OVF file Nagios releases for installation. I keep the server updated when new releases of Nagios come out. And the debug file could not be opened, here are the settings for that file -rw-rw-r-- 1 snmptt snmptt .
Wed Nov 7 14:48:53 2018 SNMPTT v1.4beta2 shutdown
Wed Nov 7 14:48:53 2018 Total traps received=51929,Total traps translated=58894,Total traps ignored=0,Total unknown traps=0
Wed Nov 7 14:48:55 2018 SNMPTT v1.4beta2 started
Wed Nov 7 14:48:55 2018 Could not open debug output file!
Re: snmptt service seems to crash and snmp trap files build
Posted: Mon Nov 12, 2018 9:55 am
by tgriep
The issues with the debug file not getting created is a but that was fixed in the latest release of the snmptt daemon.
Let's just update it just in case it didn't get installed.
Make a backup of the files in the /etc/snmp folder and run the following to reinstall the daemon.
Code: Select all
yum reinstall snmptt net-snmp-perl -y
Then restart the snmptt daemon and see if the debug file is created and gets updated.
Re: snmptt service seems to crash and snmp trap files build
Posted: Tue Nov 13, 2018 10:31 am
by wjoyner
I did the reinstall and it is logging now.
Re: snmptt service seems to crash and snmp trap files build
Posted: Tue Nov 13, 2018 10:58 am
by tgriep
That is good that it is logging. Now we can hopefully see what is happening when it stops running.