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
Hostname/IP format in received TRAPS
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Hostname/IP format in received TRAPS
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
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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Hostname/IP format in received TRAPS
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.
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.
-
kyang
Re: Hostname/IP format in received TRAPS
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!
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!