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.
SNMP Trap Sender logs
SNMP Trap Sender logs
You do not have the required permissions to view the files attached to this post.
Re: SNMP Trap Sender logs
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.
An example command from the log would look like this.
To send traps, you can use the snmptrap command from the command line on the Nagios server similar to the above example.
Code: Select all
/usr/local/nagiosxi/var/eventman.logCode: 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)."Be sure to check out our Knowledgebase for helpful articles and solutions!