Since the upgrade to 5.5.2 and the usage of nxti I cannot manage to alert on snmp traps. Maybe I am missing something here
- When a SNMP trap arrives it shows in the SNMP Trap Interface
- The snmp is in the snmptt.log
- The "One Click System Test" succeeds
-- snippet from the snmp log
Code: Select all
Wed Sep 19 08:58:28 2018 .1.3.6.1.4.1.25597.11.1.0.7 Normal "Status Events" abngs176 - Received trap "feLogin" with variables "enterprises.25597.11.1.1.23:mc001660 enterprises.25597.11.1.1.26:admin enterprises.25597.11.1.1.27:07 E2 09 13 08 3A 1C 08 enterprises.25597.11.1.1.28:10.5.21.57 enterprises.25597.11.1.1.29:1 enterprises.25597.11.1.1.30:10.5.21.57 enterprises.25597.11.1.1.32:cli enterprises.25597.11.1.1.33:CLI enterprises.25597.11.1.1.34:16080402 enterprises.25597.11.1.1.35:07 E2 09 13 08 3A 1C 08 enterprises.25597.11.1.1.36:ldap enterprises.25597.11.1.1.37:1 enterprises.25597.11.1.1.39:admin"
Code: Select all
define service {
host_name abngs176
service_description SNMP Traps
use xiwizard_snmptrap_service
check_command check_dummy!0!'Reset Trap Receiver'!!!!!!
initial_state u
max_check_attempts 1
check_interval 1
retry_interval 1
active_checks_enabled 1
passive_checks_enabled 1
check_period xi_timeperiod_24x7
event_handler_enabled 1
notification_interval 0
notification_period xi_timeperiod_24x7
contacts nd002854,qu001660
icon_image snmptrap.png
_xiwizard snmp_trap
register 1
}
Code: Select all
# grep -i abngs176 /usr/local/nagios/var/nagios.log
[1537308000] CURRENT HOST STATE: abngs176;UP;HARD;1;OK - 10.39.46.176: rta 1.627ms, lost 0%
[1537308000] CURRENT SERVICE STATE: abngs176;SNMP Traps;OK;HARD;1;OK: Reset Trap ReceiverCode: Select all
[Wed Sep 19 09:14:17.473569 2018] [:error] [pid 7450] [client 10.5.21.59:50487] PHP Notice: Undefined variable: restart in /usr/local/nagiosxi/html/includes/components/nxti/index.php on line 0, referer: https://lbnss1239/nagiosxi/includes/components/nxti/index.php
[Wed Sep 19 09:14:25.254422 2018] [:error] [pid 12114] [client 10.5.21.59:50488] PHP Notice: Undefined variable: restart in /usr/local/nagiosxi/html/includes/components/nxti/index.php on line 0, referer: https://lbnss1239/nagiosxi/includes/components/nxti/index.php