SNMP Trap Sender logs

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
achala.K
Posts: 7
Joined: Tue Dec 08, 2015 3:27 am

SNMP Trap Sender logs

Post 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.
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: SNMP Trap Sender logs

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked