Re: SNMP Trap Sender
Posted: Fri Jul 17, 2015 1:48 pm
Nagios XI 2014R2.7
Support for Nagios products and services
https://support.nagios.com/forum/
Code: Select all
[nagios@az84mon11v ~]$ /usr/bin/snmptrap -v 2c -c public 10.48.0.33:1162 '' NAGIOS-NOTIFY-MIB::nSvcEvent nSvcHostname s "MYHOST" nSvcDesc s "THISSERVICE" nSvcStateID i 1 nSvcOutput s "HELLO WORLD"
No log handling enabled - turning on stderr logging
Cannot rename /var/lib/net-snmp/snmpapp.conf to /var/lib/net-snmp/snmpapp.0.conf
Cannot unlink /var/lib/net-snmp/snmpapp.conf
read_config_store open failure on /var/lib/net-snmp/snmpapp.conf
read_config_store open failure on /var/lib/net-snmp/snmpapp.conf
read_config_store open failure on /var/lib/net-snmp/snmpapp.confCode: Select all
[root@az84mon11v ~]# tcpdump udp dst port 1162
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth9, link-type EN10MB (Ethernet), capture size 65535 bytes
12:04:42.316952 IP az84mon11v.am.freescale.net.35528 > AZ84SOFTEVAL01C.am.freescale.net.health-trap: UDP, length 177Code: Select all
ls -al /var/lib/net-snmp/snmpapp.confCode: Select all
[root@az84mon11v ~]# ls -al /var/lib/net-snmp/snmpapp.conf
-rw------- 1 root root 675 Jul 17 12:22 /var/lib/net-snmp/snmpapp.confCode: Select all
echo "select value from xi_options where name = 'snmptrapsender_component_options';" | psql nagiosxi nagiosxi