Page 1 of 1

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

Posted: Fri May 29, 2020 2:19 pm
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?

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

Posted: Fri Jun 05, 2020 2:48 pm
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

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

Posted: Mon Jun 08, 2020 1:43 pm
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