Hosts appear in host status but not Config Manager

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Re: Hosts appear in host status but not Config Manager

Post by toleolu »

I got hosts in CCM!!!

The hosts are starting to show up in host detail, my total number of hosts is correct and slow but sure they're all starting to come online. Looks like I've got some things to tweak with the services, my Service Status Summary only shows 8 services, and they're all on the localhost, and I'm only showing Ping for each host, but maybe those services will start to show up when it goes out and checks again. Anyway this is a start.

Thanks for all your help. I gotta say that I have really been impressed with the time you guys take to help people on this forum. I've spent a lot of time reading posts on this forum since I've been assigned this project and you guys really do go the extra mile. I really appreciate it. Now I need to get you guys a PO.

Thanks again
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Hosts appear in host status but not Config Manager

Post by scottwilkerson »

toleolu wrote: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.
Correct, the order is referring to the items you would import from the cfgprep directory
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Re: Hosts appear in host status but not Config Manager

Post by toleolu »

Does that include all the host .cfg files as well. I have a cfg file for each host in the directory, and something still isn't right, none of my services are showing up, I don't seem to be able to do much of anything in CCM, and I can't get the auto discovery to find anything. (I'm using an IP range that I can ping from the server)

Still missing something.

THanks
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Hosts appear in host status but not Config Manager

Post by slansing »

Alrighty, so here is the logic of what we are doing first. When we are prepping the config files, the script analyzes the configuration files you supplied and divvies them up in a format easier and more logically leveled for the XI CCM. To this point, if you had all of your services defined in the services.cfg file the script splits them into service config files for each host. So if you have multiple services under one host, it will add them to a single config file and so on and so forth. Once you had ran through the prep tool. I.e.:
First, create a temporary directory for holding the converted configuration files. This directory must be located beneath the
/usr/local/nagios/etc directory structure. Example:

Code: Select all

mkdir /usr/local/nagios/etc/cfgprep
Using The Tool
To use the tool, follow the steps below.
First, create a temporary directory for holding the converted configuration files. This directory must be located beneath the
/usr/local/nagios/etc directory structure. Example:

Code: Select all

mkdir /usr/local/nagios/etc/cfgprep
Upload (via SSH, etc.) your original source configuration files from your Nagios Core instance to this directory
example = (/usr/local/nagios/etc/cfgprep/orig).
Once you've uploaded the source files, change to the the config prep directory you created (/usr/local/nagios/etc/cfgprep).

Code: Select all

cd /usr/local/nagios/etc/cfgprep
List the source configuration files that you uploaded:

Code: Select all

ls -al orig
Run the config prep tool on each of the original source files. Example:

Code: Select all

php /usr/local/nagiosxi/tools/xiprepimport.php orig/commands.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/contacts.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/dependencies.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/hostgroups.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/hosts.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/servicegroups.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/services.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/templates.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/timeperiods.cfg
Then, imported the files:

In the XI web interface Navigate to Configure > CCM > Tools > Import Config Files

Then select all the Config Files you prepped and click import. At this point did/do you see any errors in plain text at the bottom of the page? If so let us know. If not:

From the same Tools submenu in the CCM click Write Config Files, here click the three buttons on the new page from top to bottom, waiting for output from each before clicking the next "This may take some time depending on the size of the configurations imported."

Do you see any errors once you have verified the configuration files on this page? If so let us know. If not:

Click Apply Configuration, it should be at the top portion of the left hand submenu in the CCM. As long as you had no errors in the previous step this should come back with three green check marks and complete successfully. At this point you should be able to see the hosts / services you imported in the Home > Hosts or Services pages. You should also have the configurations within the Core Config Manager under their respective sections and this is where you must edit them from now on due to them being controlled through the MySql database.
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Re: Hosts appear in host status but not Config Manager

Post by toleolu »

Thanks, I was able to get all that done, all my hosts and host groups are showing up now, problem is I'm still not showing any services, just ping.

I installed the NSClient ++ on one of my Windows servers, and now that server is showing up under service detail, could the problem be that the old agents from our existing 1.1 system are configured to report to the old Nagios server? The old version 1.1 system is still live.

Auto discovery still doesn't work, but I can ping all the servers in the sub net I'm scanning from the new Nagios XI server.
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Hosts appear in host status but not Config Manager

Post by tmcdonald »

toleolu wrote:Thanks for all your help. I gotta say that I have really been impressed with the time you guys take to help people on this forum. I've spent a lot of time reading posts on this forum since I've been assigned this project and you guys really do go the extra mile. I really appreciate it. Now I need to get you guys a PO.

Thanks again
Seeing messages like this is almost better than a cup of coffee in the morning!
toleolu wrote:I installed the NSClient ++ on one of my Windows servers, and now that server is showing up under service detail, could the problem be that the old agents from our existing 1.1 system are configured to report to the old Nagios server? The old version 1.1 system is still live.
I would check to see if your hosts are still reporting to the old server, then reconfigure one to point to the new. If it shows up in new, you'll have to reconfigure the rest to point to the new as well. If you have something like SCCM installed, this guide might help ease the pain for a large installation http://exchange.nagios.org/directory/Do ... us/details
Former Nagios employee
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Re: Hosts appear in host status but not Config Manager

Post by toleolu »

Thanks, I had a feeling that's what was going on.

We do have SCCM installed so we can reconfigure the agents that way.

Which brings me to my next question, would we be better off replacing the NS Agent currently installed with the NSClient ++? It appears the NSClient would allow us to monitor a greater range of services. Right now all we are doing with the servers is ping and disk space. I know I would like to start monitoring storage array status, but from what I've read, that appears to be done via a plug in rather than the client.

One more thing, when I installed the NSClient on the one Windows server, it displayed the server IP address instead of the server name. When I went in to change that, it said that utility was only available with the Enterprise version. Will we get that Enterprise capability when we purchase the license, or is that an additional charge?

Thanks
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Hosts appear in host status but not Config Manager

Post by slansing »

You will still want to use NSClient++ to call those plugins which you will be using. You would be using the NRPE portion of NSClient++ as it is currently the primary windows agent. When you tried to change the address of your host, how did you do this? You should be able to navigate to CCM > Host > "Host name" and change it under the address section, save, and apply configuration.
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Re: Hosts appear in host status but not Config Manager

Post by toleolu »

I was trying to change that name from a different screen. When I go into CCM, I can bring up the screen where it shows the IP address in host name and address under common settings, but when I change the Address field from the ip to the server name and click on Save, nothing happens. I apply the configuration and that runs successfully, but the name doesn't change.

The server that I am trying to change is the server that I installed the NSClient ++ on. It's showing up twice in Host Detail, once with the server name based on what was imported from the old .cfg files, and once with the IP address from the NSClient ++ install. Would that have anything to do with it? When I click on Save, it doesn't do anything, no error about a duplicate name, no message about successfully saved.

I get the same thing with anything in CCM, I can pull up the information on the devices that were imported, but I can't change anything. I created the CCM account when I first set it up, it accepts that login, but it doesn't appear that the account has write priviledges.
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Hosts appear in host status but not Config Manager

Post by slansing »

Can you try using the "Legacy" CCM instead of the new version? There was a recent bug with certain buttons in the new ccm not working in IE 9, this was resolved by either switching browsers or using the legacy CCM.
Locked