SNMP help

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: SNMP help

Post by sreinhardt »

As long as your XI box has the ability to resolve hostnames, you should be able to modify the /etc/snmp/snmptt.ini file and make sure the following are enabled or set to these values:

Code: Select all

dns_enable = 1
strip_domain = 0
resolve_value_ip_addresses = 1

strip_domain_list = <<END
domain.com
END
You will then need to restart just the snmptt service "service snmptt restart"

I should note that this will have the potential to greatly slowdown the processing of traps, as it will be forced to do a dns query for each IP address it encounters. So if you have quite a lot of devices sending traps, this may be an issue, however if you are still pretty small, it should not be to big of an issue.
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.
User avatar
costanza2k1
Posts: 197
Joined: Fri Aug 09, 2013 12:19 pm

Re: SNMP help

Post by costanza2k1 »

sreinhardt wrote:As long as your XI box has the ability to resolve hostnames, you should be able to modify the /etc/snmp/snmptt.ini file and make sure the following are enabled or set to these values:

Code: Select all

dns_enable = 1
strip_domain = 0
resolve_value_ip_addresses = 1

strip_domain_list = <<END
domain.com
END
You will then need to restart just the snmptt service "service snmptt restart"

I should note that this will have the potential to greatly slowdown the processing of traps, as it will be forced to do a dns query for each IP address it encounters. So if you have quite a lot of devices sending traps, this may be an issue, however if you are still pretty small, it should not be to big of an issue.
hey thanks a lot! I went ahead and implemented a workaround...works like a charm, this thread can by resolved, thanks!
Locked