Page 1 of 1
How to monitor snmptt.log
Posted: Tue Jul 05, 2016 12:04 pm
by mdsupersonic
Hi Support team,
Recently we have faced a new issue in NagiosXI which is related to snmptt.conf file.
Snmp traps are not working and showing nothing,but when we restart snmpttd service it will going beck to normal behavior.
My question is that is the any way to monitor that snmpttd is working and snmptt.log file updating itself in NagiosXI?
Can I add a service to my Nagios XI server and check snmptt.log file?
Thanks in advance
Majid
Re: How to monitor snmptt.log
Posted: Tue Jul 05, 2016 12:57 pm
by lmiltchev
Snmp traps are not working and showing nothing,but when we restart snmpttd service it will going beck to normal behavior.
Was snmptt service running at all? Is it set up to start on system restart? What is the output of the following command?
You could set up a service on localhost to monitor if snmptt is running, i.e.
Code: Select all
define service {
host_name localhost
service_description Service Status - snmptt
use local-service
check_command check_xi_service_status!snmptt!!!!!!!
register 1
}
Code: Select all
[nagios@192 ~]$ sudo /usr/local/nagiosxi/scripts/manage_services.sh status snmptt
snmptt (pid 1255) is running...
Re: How to monitor snmptt.log
Posted: Tue Jul 05, 2016 1:04 pm
by gormank
You might want to monitor the number of files in /var/spool/snmptt since this is where they wait for snmptt to read and process them.
Also look into adding service restart snmptt to the nagios init script. That will resolve the issue.
Re: How to monitor snmptt.log
Posted: Tue Jul 05, 2016 1:24 pm
by mdsupersonic
Thanks for your reply.I think if I add snmptt restart service in nagios init script would be helpful.
could you tell me where to find init file and what to add in it ?
Thank you in advance
Majid
Re: How to monitor snmptt.log
Posted: Tue Jul 05, 2016 1:37 pm
by gormank
On my system I added it to /etc/init.d/nagios at the end of the start section. You can see the command below.
start)
...
/etc/init.d/snmptt restart
;;
Re: How to monitor snmptt.log
Posted: Tue Jul 05, 2016 1:43 pm
by mdsupersonic
gormank wrote:On my system I added it to /etc/init.d/nagios at the end of the start section. You can see the command below.
start)
...
/etc/init.d/snmptt restart
;;
Thank you very much,I think this one would be very helpfull beside adding snmptt service status entity.
Cheers
Re: How to monitor snmptt.log
Posted: Tue Jul 05, 2016 2:05 pm
by mcapra
Is it alright if we lock this thread and mark the issue as resolved?
Re: How to monitor snmptt.log
Posted: Tue Jul 05, 2016 6:26 pm
by Box293
This KB article explains how to monitor SNMPTT on your server, including the spooled folder.
https://support.nagios.com/kb/article.php?id=502
Re: How to monitor snmptt.log
Posted: Wed Jul 06, 2016 10:54 am
by mdsupersonic
Yes ,you can close this thread,thank you again
Re: How to monitor snmptt.log
Posted: Wed Jul 06, 2016 11:19 am
by rkennedy
Will do, closing this one out.