How to monitor snmptt.log

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mdsupersonic
Posts: 84
Joined: Fri May 13, 2016 2:25 pm

How to monitor snmptt.log

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: How to monitor snmptt.log

Post 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?

Code: Select all

chkconfig --list snmptt
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...
Be sure to check out our Knowledgebase for helpful articles and solutions!
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: How to monitor snmptt.log

Post 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.
mdsupersonic
Posts: 84
Joined: Fri May 13, 2016 2:25 pm

Re: How to monitor snmptt.log

Post 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
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: How to monitor snmptt.log

Post 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
;;
mdsupersonic
Posts: 84
Joined: Fri May 13, 2016 2:25 pm

Re: How to monitor snmptt.log

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: How to monitor snmptt.log

Post by mcapra »

Is it alright if we lock this thread and mark the issue as resolved?
Former Nagios employee
https://www.mcapra.com/
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: How to monitor snmptt.log

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
mdsupersonic
Posts: 84
Joined: Fri May 13, 2016 2:25 pm

Re: How to monitor snmptt.log

Post by mdsupersonic »

Yes ,you can close this thread,thank you again
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: How to monitor snmptt.log

Post by rkennedy »

Will do, closing this one out.
Former Nagios Employee
Locked