Page 1 of 1

Hostname/IP format in received TRAPS

Posted: Wed Feb 07, 2018 5:14 am
by m.rendace
Hi all,

i'm configuring NAGIOS XI for the first time, and i noticed that when NAGIOS receive a TRAP it's not able to associate the hostname with the host:

1517997461] Warning: Passive check result was received for service 'SNMP Traps' on host '1XX-XX-XX', but the host could not be found!
[1517997461] Error: External command failed -> PROCESS_SERVICE_CHECK_RESULT;1XX-XX-XX;SNMP Traps;0;A coldStart trap signifies that the SNMPv2 entity, acting

So the source "hostname" is the IP host in this format: xxx-xxx-xxx-xxx, so it cannot find the host.
I have also read that is possible to enable DNS resolution in the /etc/snmp/snmptt.ini, but whis will be unusable for us, since there are not DNS record for all network node.

is there any way to change this format?

thank you in advance

Re: Hostname/IP format in received TRAPS

Posted: Wed Feb 07, 2018 12:08 pm
by npolovenko
Hello, @m.rendace.
Can you share the /etc/snmp/snmptt.conf file with us?
DId you use this tutorial to set up snmp traps?
https://support.nagios.com/kb/article.php?id=77

Re: Hostname/IP format in received TRAPS

Posted: Mon Feb 19, 2018 12:17 pm
by m.rendace
Hi npolovenko,

after reading and testing i found that in the snmptt.conf the default arguments for received trap is "$r" that means HOSTNAME,
i've replaced it with "$ar" (IP address), now the system recognize correctly the Host sending the trap.

Thank you for support, the thread can be closed.

Re: Hostname/IP format in received TRAPS

Posted: Mon Feb 19, 2018 1:01 pm
by kyang
Sounds good! Glad you found the solution!

I'll be closing this thread!

If you have any more questions, feel free to create another thread.

Thanks for using the Nagios Support Forum!