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

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
bogasuresh
Posts: 4
Joined: Fri Apr 24, 2020 1:19 pm

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

Post by bogasuresh »

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?
User avatar
jdunitz
Posts: 235
Joined: Wed Feb 05, 2020 2:50 pm

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

Post by jdunitz »

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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
bogasuresh
Posts: 4
Joined: Fri Apr 24, 2020 1:19 pm

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

Post by bogasuresh »

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
Locked