SNMP traps received not displayed in Nagios web UI
Posted: Fri May 16, 2014 2:44 pm
Hi,
I have defined my passive services (for SNMP traps), active services and defined all the hosts which I am monitoring in config file. I performed an interface down/up trap test on Server Node A and Server Node B. I am able to receive the Network interface down/up traps from the hosts but only Node A traps are alerted on Nagios Web UI.
I think my issue is Nagios Service Alert has ServerNodeVIP IP for the traps coming from Server Node B, where as the Nagios Service Alert for alerts coming from ServerNode A has Server Node A IP address .
Can someone help me ? Please let me know if I need to explain or give more information. Thank you.
——————————————— T1 Node B————————
Snmptt.debug -
value 0: ServerNodeB
Agent IP address (xx.xxx.xxx.xxx) resolved to: ServerNodeA
Trap received from ServerNodeB: .1.3.6.1.4.1.21274.1.999.4.5
Value 0: ServerNodeB
Agent dns name: ServerNodeA
.1.3.6.1.4.1.21274.1.999.4.5 CRITICAL "Network Interface Down" ServerNodeA - 10 macID (master) warning eth5 bond1 appIf1
EXEC command:/data/nagios/snmptt/bin/submit_check_result "ServerNodeA" "Network Interface Down" CRITICAL "10 macID (master) warning eth5 bond1 appIf1" "10 macID (master) warning eth5 bond1 appIf1”
Nagios.log -
[1400197672] SERVICE ALERT: ServerNodeB;PCMM- NIC - eth5;CRITICAL;SOFT;1;SNMP-HOST-IF CRITICAL - Interface eth5 is not up, can't check!
Snmptt.debug -
value 0: ServerNodeB
Agent IP address (xx.xxx.xxx.xxx) resolved to: ServerNodeA
Trap received from ServerNodeB: .1.3.6.1.4.1.21274.1.999.4.6
Value 0: ServerNodeB
Agent dns name: ServerNodeA
.1.3.6.1.4.1.21274.1.999.4.6 Ok "Network Interface Up" ServerNodeA - 10 macID (master) warning eth5 bond1 appIf1
EXEC command:/data/nagios/snmptt/bin/submit_check_result "ServerNodeA" "Network Interface Up" Ok "10 macID (master) warning eth5 bond1 appIf1" "10 macID (master) warning eth5 bond1 appIf1”
Nagios.log-
[1400198382] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;ServerNodeA;Network Interface Up;0;10 macID (master) warning eth5 bond1 appIf1
[1400198382] PASSIVE SERVICE CHECK: ServerNodeA;Network Interface Up;0;10 macID (master) warning eth5 bond1 appIf1
[1400198570] SERVICE ALERT: ServerNodeVIP;PCMM- NIC - eth5;OK;HARD;3;SNMP-HOST-IF eth5 OK - ifInDiscards -0, ifInErrors -0, ifInNUcastPkts -0, ifInOctets -0, ifInUcastPkts -0, ifOutDiscards -0, ifOutErrors -0, ifOutNUcastPkts -0, ifOutOctets -0, ifOutUcastPkts -0, ifSpeed 1000000000, in_bps 0, in_error_pct 0, in_util 0.00, out_bps 0, out_error_pct 0, out_util 0.00
[1400198570] SERVICE NOTIFICATION: pcmm-notify;ServerNodeVIP;PCMM- NIC - eth5;OK;service2rubanof;SNMP-HOST-IF eth5 OK - ifInDiscards -0, ifInErrors -0, ifInNUcastPkts -0, ifInOctets -0, ifInUcastPkts -0, ifOutDiscards -0, ifOutErrors -0, ifOutNUcastPkts -0, ifOutOctets -0, ifOutUcastPkts -0, ifSpeed 1000000000, in_bps 0, in_error_pct 0, in_util 0.00, out_bps 0, out_error_pct 0, out_util 0.00
———————————————T1 Node B——————
——————————— T1 Node A—————————
Snmptt.debug-
value 0: ServerNodeB
Agent IP address (xx.xxx.xxx.xxx) resolved to: ServerNodeA
Trap received from ServerNodeB: .1.3.6.1.4.1.21274.1.999.4.5
Value 0: ServerNodeB
Agent dns name: ServerNodeA
.1.3.6.1.4.1.21274.1.999.4.5 CRITICAL "Network Interface Down" ServerNodeA - 1 macID (slave) warning eth4 bond1 appIf1
EXEC command:/data/nagios/snmptt/bin/submit_check_result "ServerNodeA" "Network Interface Down" CRITICAL "1 macID (slave) warning eth4 bond1 appIf1" "1 macID (slave) warning eth4 bond1 appIf1”
Nagio.log-
[1400198872] SERVICE ALERT: ServerNodeA;PCMM- NIC - eth4;CRITICAL;SOFT;1;SNMP-HOST-IF CRITICAL - Interface eth4 is not up, can't check!
Snmptt.debug-
value 0: ServerNodeB
Agent IP address (xx.xxx.xxx.xxx) resolved to: ServerNodeA
Trap received from ServerNodeB: .1.3.6.1.4.1.21274.1.999.4.6
Value 0: ServerNodeB
Agent dns name: ServerNodeA
.1.3.6.1.4.1.21274.1.999.4.6 Ok "Network Interface Up" ServerNodeA - 1 macID (slave) warning eth4 bond1 appIf1
EXEC command:/data/nagios/snmptt/bin/submit_check_result "ServerNodeA" "Network Interface Up" Ok "1 macID (slave) warning eth4 bond1 appIf1" "1 macID (slave) warning eth4 bond1 appIf1”
Nagios.log-
[1400199357] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;ServerNodeA;Network Interface Up;0;1 macID (slave) warning eth4 bond1 appIf1
[1400199358] PASSIVE SERVICE CHECK: ServerNodeA;Network Interface Up;0;1 macID (slave) warning eth4 bond1 appIf1
[1400199472] SERVICE ALERT: ServerNodeA;PCMM- NIC - eth4;OK;SOFT;3;SNMP-HOST-IF eth4 OK - ifInDiscards -0, ifInErrors -0, ifInNUcastPkts -0, ifInOctets -0, ifInUcastPkts -0, ifOutDiscards -0, ifOutErrors -0, ifOutNUcastPkts -0, ifOutOctets -0, ifOutUcastPkts -0, ifSpeed 1000000000, in_bps 0, in_error_pct 0, in_util 0.00, out_bps 0, out_error_pct 0, out_util 0.00
I have defined my passive services (for SNMP traps), active services and defined all the hosts which I am monitoring in config file. I performed an interface down/up trap test on Server Node A and Server Node B. I am able to receive the Network interface down/up traps from the hosts but only Node A traps are alerted on Nagios Web UI.
I think my issue is Nagios Service Alert has ServerNodeVIP IP for the traps coming from Server Node B, where as the Nagios Service Alert for alerts coming from ServerNode A has Server Node A IP address .
Can someone help me ? Please let me know if I need to explain or give more information. Thank you.
——————————————— T1 Node B————————
Snmptt.debug -
value 0: ServerNodeB
Agent IP address (xx.xxx.xxx.xxx) resolved to: ServerNodeA
Trap received from ServerNodeB: .1.3.6.1.4.1.21274.1.999.4.5
Value 0: ServerNodeB
Agent dns name: ServerNodeA
.1.3.6.1.4.1.21274.1.999.4.5 CRITICAL "Network Interface Down" ServerNodeA - 10 macID (master) warning eth5 bond1 appIf1
EXEC command:/data/nagios/snmptt/bin/submit_check_result "ServerNodeA" "Network Interface Down" CRITICAL "10 macID (master) warning eth5 bond1 appIf1" "10 macID (master) warning eth5 bond1 appIf1”
Nagios.log -
[1400197672] SERVICE ALERT: ServerNodeB;PCMM- NIC - eth5;CRITICAL;SOFT;1;SNMP-HOST-IF CRITICAL - Interface eth5 is not up, can't check!
Snmptt.debug -
value 0: ServerNodeB
Agent IP address (xx.xxx.xxx.xxx) resolved to: ServerNodeA
Trap received from ServerNodeB: .1.3.6.1.4.1.21274.1.999.4.6
Value 0: ServerNodeB
Agent dns name: ServerNodeA
.1.3.6.1.4.1.21274.1.999.4.6 Ok "Network Interface Up" ServerNodeA - 10 macID (master) warning eth5 bond1 appIf1
EXEC command:/data/nagios/snmptt/bin/submit_check_result "ServerNodeA" "Network Interface Up" Ok "10 macID (master) warning eth5 bond1 appIf1" "10 macID (master) warning eth5 bond1 appIf1”
Nagios.log-
[1400198382] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;ServerNodeA;Network Interface Up;0;10 macID (master) warning eth5 bond1 appIf1
[1400198382] PASSIVE SERVICE CHECK: ServerNodeA;Network Interface Up;0;10 macID (master) warning eth5 bond1 appIf1
[1400198570] SERVICE ALERT: ServerNodeVIP;PCMM- NIC - eth5;OK;HARD;3;SNMP-HOST-IF eth5 OK - ifInDiscards -0, ifInErrors -0, ifInNUcastPkts -0, ifInOctets -0, ifInUcastPkts -0, ifOutDiscards -0, ifOutErrors -0, ifOutNUcastPkts -0, ifOutOctets -0, ifOutUcastPkts -0, ifSpeed 1000000000, in_bps 0, in_error_pct 0, in_util 0.00, out_bps 0, out_error_pct 0, out_util 0.00
[1400198570] SERVICE NOTIFICATION: pcmm-notify;ServerNodeVIP;PCMM- NIC - eth5;OK;service2rubanof;SNMP-HOST-IF eth5 OK - ifInDiscards -0, ifInErrors -0, ifInNUcastPkts -0, ifInOctets -0, ifInUcastPkts -0, ifOutDiscards -0, ifOutErrors -0, ifOutNUcastPkts -0, ifOutOctets -0, ifOutUcastPkts -0, ifSpeed 1000000000, in_bps 0, in_error_pct 0, in_util 0.00, out_bps 0, out_error_pct 0, out_util 0.00
———————————————T1 Node B——————
——————————— T1 Node A—————————
Snmptt.debug-
value 0: ServerNodeB
Agent IP address (xx.xxx.xxx.xxx) resolved to: ServerNodeA
Trap received from ServerNodeB: .1.3.6.1.4.1.21274.1.999.4.5
Value 0: ServerNodeB
Agent dns name: ServerNodeA
.1.3.6.1.4.1.21274.1.999.4.5 CRITICAL "Network Interface Down" ServerNodeA - 1 macID (slave) warning eth4 bond1 appIf1
EXEC command:/data/nagios/snmptt/bin/submit_check_result "ServerNodeA" "Network Interface Down" CRITICAL "1 macID (slave) warning eth4 bond1 appIf1" "1 macID (slave) warning eth4 bond1 appIf1”
Nagio.log-
[1400198872] SERVICE ALERT: ServerNodeA;PCMM- NIC - eth4;CRITICAL;SOFT;1;SNMP-HOST-IF CRITICAL - Interface eth4 is not up, can't check!
Snmptt.debug-
value 0: ServerNodeB
Agent IP address (xx.xxx.xxx.xxx) resolved to: ServerNodeA
Trap received from ServerNodeB: .1.3.6.1.4.1.21274.1.999.4.6
Value 0: ServerNodeB
Agent dns name: ServerNodeA
.1.3.6.1.4.1.21274.1.999.4.6 Ok "Network Interface Up" ServerNodeA - 1 macID (slave) warning eth4 bond1 appIf1
EXEC command:/data/nagios/snmptt/bin/submit_check_result "ServerNodeA" "Network Interface Up" Ok "1 macID (slave) warning eth4 bond1 appIf1" "1 macID (slave) warning eth4 bond1 appIf1”
Nagios.log-
[1400199357] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;ServerNodeA;Network Interface Up;0;1 macID (slave) warning eth4 bond1 appIf1
[1400199358] PASSIVE SERVICE CHECK: ServerNodeA;Network Interface Up;0;1 macID (slave) warning eth4 bond1 appIf1
[1400199472] SERVICE ALERT: ServerNodeA;PCMM- NIC - eth4;OK;SOFT;3;SNMP-HOST-IF eth4 OK - ifInDiscards -0, ifInErrors -0, ifInNUcastPkts -0, ifInOctets -0, ifInUcastPkts -0, ifOutDiscards -0, ifOutErrors -0, ifOutNUcastPkts -0, ifOutOctets -0, ifOutUcastPkts -0, ifSpeed 1000000000, in_bps 0, in_error_pct 0, in_util 0.00, out_bps 0, out_error_pct 0, out_util 0.00