Page 1 of 1

SNMP Trap Sender logs

Posted: Fri Sep 21, 2018 10:12 am
by achala.K
Hi Team,

We are looking a way to capture the traps which is sending from NagiosXI to third party ticketing tool.

Does Nagios has a feature to save logs in particular file after sending the alerts.


Or any third party freeware software which we can send traps to another tool to check.

Re: SNMP Trap Sender logs

Posted: Fri Sep 21, 2018 11:28 am
by tgriep
The SNMP Trap Sender component does not have it's own dedicated log file but when a trap is sent, it is logged in the eventman log file. See below.

Code: Select all

/usr/local/nagiosxi/var/eventman.log
An example command from the log would look like this.

Code: Select all

/usr/bin/snmptrap -v 2c -c public 192.168.112.129 '' NAGIOS-NOTIFY-MIB::nSvcEvent nSvcHostname s "BPI" nSvcDesc s "BPI Process:Local Services" nSvcStateID i 2 nSvcOutput s "CRITICAL - Group health below critical threshold of 60%! Health is 50% with 1 problem(s)."
To send traps, you can use the snmptrap command from the command line on the Nagios server similar to the above example.