How to monitor snmptt.log
-
mdsupersonic
- Posts: 84
- Joined: Fri May 13, 2016 2:25 pm
How to monitor snmptt.log
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
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
Was snmptt service running at all? Is it set up to start on system restart? What is the output of the following command?Snmp traps are not working and showing nothing,but when we restart snmpttd service it will going beck to normal behavior.
Code: Select all
chkconfig --list snmpttCode: 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!
Re: How to monitor snmptt.log
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.
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
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
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
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
;;
start)
...
/etc/init.d/snmptt restart
;;
-
mdsupersonic
- Posts: 84
- Joined: Fri May 13, 2016 2:25 pm
Re: How to monitor snmptt.log
Thank you very much,I think this one would be very helpfull beside adding snmptt service status entity.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
;;
Cheers
Re: How to monitor snmptt.log
Is it alright if we lock this thread and mark the issue as resolved?
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: How to monitor snmptt.log
This KB article explains how to monitor SNMPTT on your server, including the spooled folder.
https://support.nagios.com/kb/article.php?id=502
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
Yes ,you can close this thread,thank you again