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
SNMP traps received not displayed in Nagios web UI
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: SNMP traps received not displayed in Nagios web UI
What documentation did you follow to setup snmptraps? It seems you are using the a submit_check_result command, which is not our suggested way of sending traps to nagios. I also would like to confirm if you are running nagios XI or nagios core, as the directories seem a bit off for an XI install. Please take a look at the following document for our suggested steps with regard to snmptrap integration and XI. http://assets.nagios.com/downloads/nagi ... ith_XI.pdf
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: SNMP traps received not displayed in Nagios web UI
Thanks for your response. I am using Nagios Core 3.2.0 version.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: SNMP traps received not displayed in Nagios web UI
OK, I moved your topic to the core support area then. While the snmptraps documentation is somewhat specific to nagios XI, the actual install script and implementation is not. I would highly suggest starting there and ask if you get hung up or have questions.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.