SNMP unconfigured objects problem

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Bitflogger
Posts: 226
Joined: Mon Oct 16, 2017 9:24 am

SNMP unconfigured objects problem

Post by Bitflogger »

Hello, My installation is v 5.5.2, 64-bit, VM, CentOS7, server name Winston.doit.wisc.edu

I have a server FQDN = cordelia.doit.wisc.edu , when you run the command "hostname" on the server, it says cordelia.doit.wisc.edu

I have configured the host on Winston, with "Host Name" cordelia.doit.wisc.edu, "Alias" blank, "Address" cordelia.doit.wisc.edu , it has some non-SNMP services.

I send a SNMP trap from Cordelia.doit.wisc.edu to Winston.doit.wisc.edu

In the "Unconfigured Objects" list, it lists "cordelia", not "cordelia.doit.wisc.edu"

If I configure the "Unconfigured Object" it will create a host "cordelia" and the service for the trap, which does passively accept and display SNMP traps sent from Cordelia.doit.wisc.edu

How to I get the Unconfigured Object to configure for the existing host cordelia.doit.wisc.edu ? When I configure it, I see a window with the "cordelia" name in it, but I cannot edit the name.

Earl
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: SNMP unconfigured objects problem

Post by ssax »

There is not currently a way to remap it, XI is just showing you what it received and they need to match.

More than likely it's stripping the domain because of a setting in your /etc/snmp/snmptt.ini file:

Code: Select all

# Set to 0 to enable the use of FQDN (Fully Qualified Domain Names).  If a host name is
# passed to SNMPTT that contains a domain name, it will not be altered in any way by
# SNMPTT.  This also affects resolve_value_ip_addresses.
# Set to 1 to have SNMPTT strip the domain name from the host name passed to it.  For
# example, server01.domain.com would be changed to server01
# Set to 2 to have SNMPTT strip the domain name from the host name passed to it
# based on the list of domains in strip_domain_list
strip_domain = 1
If you make a change, make sure to restart the snmptt service:

Code: Select all

service snmptt restart
That should send the FQDN then.

Thank you
Bitflogger
Posts: 226
Joined: Mon Oct 16, 2017 9:24 am

Re: SNMP unconfigured objects problem

Post by Bitflogger »

That worked.

Thanks!

Please lock it.

Earl
Locked