Traps are written in snmptt.log but not in nagios.log

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

Traps are written in snmptt.log but not in nagios.log

Postby bogasuresh » Fri May 29, 2020 2:19 pm

I have migrated from Nagios core 3 to Nagios 4.4.5 copied all the files properly. every thing is working properly, Except for traps log not written in nagios.log

Below is the scenario
With newly complied MIB, conf file which automatically add new conf path in snmptt.ini, traps are generating properly and are written in Nagios.log but When old conf files are added manually in snmptt.ini then it is loaded properly and also traps are visible in snmptt.log but it is not writing properly nagios.log

What can be done to load old conf files to work properly on New Nagios server.
Apart from adding conf file manually, anything else to be done?
How i can enable troubleshooting?
bogasuresh
 
Posts: 4
Joined: Fri Apr 24, 2020 1:19 pm

Re: Traps are written in snmptt.log but not in nagios.log

Postby jdunitz » Fri Jun 05, 2020 2:48 pm

You have enable "log_external_commands=1" in your nagios.cfg, correct?

That will enable some of the trap info (but not the whole trap) to be written to the nagios log.

You're pulling in your new, extra config files at the end of your snmptt.ini file, like so:

Code: Select all
[TrapFiles]
# A list of snmptt.conf files (this is NOT the snmptrapd.conf file).  The COMPLETE path
# and filename.  Ex: '/etc/snmp/snmptt.conf'
snmptt_conf_files = <<END
/etc/snmp/snmptt.conf
/etc/snmp/snmptt-something-else.conf
/etc/snmp/snmptt.conf.nxti
END


...yes?

--Jeffrey
User avatar
jdunitz
 
Posts: 173
Joined: Wed Feb 05, 2020 2:50 pm

Re: Traps are written in snmptt.log but not in nagios.log

Postby bogasuresh » Mon Jun 08, 2020 1:43 pm

thanks for your reply Jeffrey


You have enable "log_external_commands=1" in your nagios.cfg, correct? Yes


You're pulling in your new, extra config files at the end of your snmptt.ini file, like so:
You are right - Additional lines are added in snmptt.ini

Yes
bogasuresh
 
Posts: 4
Joined: Fri Apr 24, 2020 1:19 pm


Return to Community Support

Who is online

Users browsing this forum: maxsec, tvoll and 11 guests