SNMP trap search for hostname instead IP
Posted: Wed May 18, 2011 2:28 am
NagiosXI 2011R1.1 ESX VMWare server appliance.
We recently got HP Lefthand (P4000) storage. This storage is on its own iSCSI network. We have one server (10.10.10.3) which is in the normal LAN and in the iSCSI LAN (10.10.102.*).
On this host we configured the free trapfwd (http://www.ncomtech.com/trapfwd.html) program, to forward traps from the storage nodes to the nagiosxi server, with W2003RK srvany.
In the trapfwd.log file I can see traps coming in, and get forwarded to nagiosxi server.
On the nagiosxi server, I executed the "Intergrating SNMP Traps" procedure from the library.
Added the LEFTHAND-NETWORKS-NSM-NOTIFICATION-MIB to /usr/share/snmp/mibs directory.
Executed addmib..., changed Normal to Critical for all LEFTHAND lines in the file snmptt.cfg. Restarted all snmp* services.
Added snmptrap to the host SERVER by using the wizard.
I see in the syslog file messages, the following lines (this information is changed to protect the innocent):
May 12 14:41:59 nagiosxi snmptrapd[15990]: 2011-05-12 14:41:59 10.10.102.11(via UDP: [10.10.10.3]:62154) TRAP, SNMP v1, community ****** .1.3.6.1.4.1.8072.3.2.10 Cold Start Trap (0) Uptime: 0:00:09.55
May 12 14:41:59 nagiosxi nagios: Warning: Passive check result was received for service 'SNMP Traps' on host 'SERVER', but the host could not be found!
May 12 14:41:59 nagiosxi snmptt-sys[0]: Can not open log file /var/log/snmptt/snmptt.log
May 12 14:41:59 nagiosxi snmptt[0]: .1.3.6.1.6.3.1.1.5.1 Normal "Status Events" 10.10.102.11 - A coldStart trap signifies that the SNMP entity,
May 12 14:42:00 nagiosxi nagios: Warning: Passive check result was received for service 'SNMP Traps' on host 'SERVER', but the host could not be found!
The thirth line tells me that the NagiosXI-SNMPTrap.sh missed creating the directory. No big deal.
A Trap is received for the host "SERVER", which was not found in the Nagiosxi database.
We do have a nagios-host on the 10.10.10.3 number, which is called "SERVER.fqdn.dns". The hostname is not found, but the IP number is there! Nagios cannot find the name SERVER, instead is has to search for ip numbers.
Questions:
How can I change the way NagiosXI searches with SNMP traps ? Look for ip-numbers instead of hostnames ?
Or can I add an alias to a NagiosXI host (not prefereable) ?
We recently got HP Lefthand (P4000) storage. This storage is on its own iSCSI network. We have one server (10.10.10.3) which is in the normal LAN and in the iSCSI LAN (10.10.102.*).
On this host we configured the free trapfwd (http://www.ncomtech.com/trapfwd.html) program, to forward traps from the storage nodes to the nagiosxi server, with W2003RK srvany.
In the trapfwd.log file I can see traps coming in, and get forwarded to nagiosxi server.
On the nagiosxi server, I executed the "Intergrating SNMP Traps" procedure from the library.
Added the LEFTHAND-NETWORKS-NSM-NOTIFICATION-MIB to /usr/share/snmp/mibs directory.
Executed addmib..., changed Normal to Critical for all LEFTHAND lines in the file snmptt.cfg. Restarted all snmp* services.
Added snmptrap to the host SERVER by using the wizard.
I see in the syslog file messages, the following lines (this information is changed to protect the innocent):
May 12 14:41:59 nagiosxi snmptrapd[15990]: 2011-05-12 14:41:59 10.10.102.11(via UDP: [10.10.10.3]:62154) TRAP, SNMP v1, community ****** .1.3.6.1.4.1.8072.3.2.10 Cold Start Trap (0) Uptime: 0:00:09.55
May 12 14:41:59 nagiosxi nagios: Warning: Passive check result was received for service 'SNMP Traps' on host 'SERVER', but the host could not be found!
May 12 14:41:59 nagiosxi snmptt-sys[0]: Can not open log file /var/log/snmptt/snmptt.log
May 12 14:41:59 nagiosxi snmptt[0]: .1.3.6.1.6.3.1.1.5.1 Normal "Status Events" 10.10.102.11 - A coldStart trap signifies that the SNMP entity,
May 12 14:42:00 nagiosxi nagios: Warning: Passive check result was received for service 'SNMP Traps' on host 'SERVER', but the host could not be found!
The thirth line tells me that the NagiosXI-SNMPTrap.sh missed creating the directory. No big deal.
A Trap is received for the host "SERVER", which was not found in the Nagiosxi database.
We do have a nagios-host on the 10.10.10.3 number, which is called "SERVER.fqdn.dns". The hostname is not found, but the IP number is there! Nagios cannot find the name SERVER, instead is has to search for ip numbers.
Questions:
How can I change the way NagiosXI searches with SNMP traps ? Look for ip-numbers instead of hostnames ?
Or can I add an alias to a NagiosXI host (not prefereable) ?