Page 1 of 3
Hosts appear in host status but not Config Manager
Posted: Mon Sep 23, 2013 8:05 pm
by toleolu
I picked this project up from an employee that is no longer here. We are trying to upgrade our old 1.1 installation to Nagios XI. Somehow the other employee got all the config files loaded into the new Nagios, I can see the hosts in the monitoring screen, but no hosts appear in the config manager.
I wanted to create a new Host Group, I had to use the Legacy CCM to create the Host Group, but when I try to add members, no devices appear in the window. The config fails to verify as well, listing every device in the host directory as not being associated with contact groups, host groups, etc.
Since I have working clients installed on our devices, shouldn't the auto discovery work? I tried scanning a range of IP's that I know have servers that are being montiored by our old Nagios system, but the scan comes back with nothing.
Re: Hosts appear in host status but not Config Manager
Posted: Tue Sep 24, 2013 10:12 am
by abrist
If the configuration verification fails, then you will not be able to apply your changes in XI (and you will not be able to add any new checks or hosts). You will need to resolve the config errors before you can apply configuration.
The autodiscovery wizard should do what you want. Does you nagios XI server have access/ routes to those subnets? Can you ping those hosts from the XI server?
Re: Hosts appear in host status but not Config Manager
Posted: Fri Sep 27, 2013 1:22 pm
by toleolu
Sorry it took so long to get back on this, too many irons in the fire.
Verifying my Nagios config fails miserably, every host errors with "no default contacts or contactgroups defined". Additionally, I can't log into the console, I can't start nagios because of the configuration problems.
Is there a way to fix this via the command line, or should I blow this VM away and start over again.
Thanks
Re: Hosts appear in host status but not Config Manager
Posted: Fri Sep 27, 2013 1:35 pm
by slansing
You should still be able to access the core config manager from within XI, there, navigate to Tools > Write Config Files > Verify, this will show you all of your errors. Now you will need to edit each host/service that errors and add the appropriate modifications. Once this is done, apply configuration and this should kick nagios off after everything comes back clean.
Re: Hosts appear in host status but not Config Manager
Posted: Fri Sep 27, 2013 2:03 pm
by toleolu
What's my quota for stupid questions, cause I'm about to use one here.
How do I get into the CCM? I can't log in from the login.php page.
Re: Hosts appear in host status but not Config Manager
Posted: Fri Sep 27, 2013 2:08 pm
by toleolu
Nevermind, i reset the nagios admin password and forgot what I renamed it too. I'm in.
Can you say goober? I think ya can!!!!!!
Re: Hosts appear in host status but not Config Manager
Posted: Fri Sep 27, 2013 2:13 pm
by toleolu
Applying the config via the config manager gives me the same errors as the command line verify, no default contacts or contact groups defined.
As background, the .cfg files originated on our old nagios 1.1 install. I don't know what was done prior to getting this project with respect to importing or modifying those old version .cfg files.
Re: Hosts appear in host status but not Config Manager
Posted: Fri Sep 27, 2013 2:38 pm
by toleolu
Is this the proper way to input an IP range for the Auto Discovery Wizard xxx.xxx.xxx.1/254?
Re: Hosts appear in host status but not Config Manager
Posted: Fri Sep 27, 2013 2:57 pm
by slansing
I think we should focus on fixing your configuration issues before adding more on top. You can edit your configurations through the CCM to add what the write config tool tells you that you are missing, did you import those configuration files? Its possible they will not work as they are from a 1.1 install, we require that the core installation you take the config files from be at least 3.3 or newer. This is outlined in our config prep and import documentation:
http://assets.nagios.com/downloads/nagi ... p_Tool.pdf
http://assets.nagios.com/downloads/nagi ... nto_XI.pdf
You can try to import those files, and it looks like you have done this already. But you must fix those configuration issues through the CCM as outlined in the previous response.
Re: Hosts appear in host status but not Config Manager
Posted: Fri Sep 27, 2013 4:03 pm
by toleolu
OK, I've got all the config files in the cfgprep directory, but I'm a little confused on the import order.
THe import screen says to import in a useful order then it lists commands timeperiods, etc. etc. I am assuming that all these files should be coming from the cfgprep directory, correct. I ask because the list of available cfg files to import contains a lot more than that.