Where are my imported hosts?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
danoreilly
Posts: 28
Joined: Mon Dec 01, 2014 4:28 pm

Where are my imported hosts?

Post by danoreilly »

I imported a file of several hundred hosts from a Nagios core implementation I was using, in order to do an eval of purchasing Nagios XI. The import went fine, but the hosts display only shows "localhost". I know the hosts are someplace, because I can look one up and see that contacting it is failing (but that's another topic). If it look at /usr/local/nagios/etc/hosts, I see the correct host config files for everything. Why can't I see any of my hosts in the host display?
danoreilly
Posts: 28
Joined: Mon Dec 01, 2014 4:28 pm

Re: Where are my imported hosts?

Post by danoreilly »

PS - I forgot configuration info. I'm running the Nagios-supplied VM image under VMplayer, all under RHEL 6.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Where are my imported hosts?

Post by scottwilkerson »

Did you apply configuration through the GUI?

Was it successful (3 green checks)?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
danoreilly
Posts: 28
Joined: Mon Dec 01, 2014 4:28 pm

Re: Where are my imported hosts?

Post by danoreilly »

Yes and yes. Everything seemed to be OK.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Where are my imported hosts?

Post by scottwilkerson »

If you go to a Nagios Core view do you see the hosts/services?

Code: Select all

http://HOST/nagios/
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
danoreilly
Posts: 28
Joined: Mon Dec 01, 2014 4:28 pm

Re: Where are my imported hosts?

Post by danoreilly »

yes
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Where are my imported hosts?

Post by scottwilkerson »

Lets forcibly restart ndo2db

Code: Select all

service ndo2db restart
If they still do not show in the UI, can you post the output of

Code: Select all

grep module /usr/local/nagios/etc/nagios.cfg
We may need to setup a remote session to take a look at the server.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
danoreilly
Posts: 28
Joined: Mon Dec 01, 2014 4:28 pm

Re: Where are my imported hosts?

Post by danoreilly »

scottwilkerson wrote:Lets forcibly restart ndo2db

Code: Select all

service ndo2db restart
[root@nagios hosts]# service ndo2db restart
Stopping ndo2db: head: cannot open `/usr/local/nagios/var/ndo2db.lock' for reading: No such file or directory
done.
Starting ndo2db: done.
[root@nagios hosts]#


If they still do not show in the UI, can you post the output of

Code: Select all

grep module /usr/local/nagios/etc/nagios.cfg
We may need to setup a remote session to take a look at the server.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Where are my imported hosts?

Post by sreinhardt »

Did you get a chance to test what scott mentioned? It looks like you just quoted him at the moment.
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.
danoreilly
Posts: 28
Joined: Mon Dec 01, 2014 4:28 pm

Re: Where are my imported hosts?

Post by danoreilly »

After the first thing (restarting the db) failed, I didn't try the second. I can do that.
Locked