Page 1 of 2

Where are my imported hosts?

Posted: Tue Jan 06, 2015 9:50 am
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?

Re: Where are my imported hosts?

Posted: Tue Jan 06, 2015 9:54 am
by danoreilly
PS - I forgot configuration info. I'm running the Nagios-supplied VM image under VMplayer, all under RHEL 6.

Re: Where are my imported hosts?

Posted: Tue Jan 06, 2015 10:27 am
by scottwilkerson
Did you apply configuration through the GUI?

Was it successful (3 green checks)?

Re: Where are my imported hosts?

Posted: Tue Jan 06, 2015 10:30 am
by danoreilly
Yes and yes. Everything seemed to be OK.

Re: Where are my imported hosts?

Posted: Tue Jan 06, 2015 10:57 am
by scottwilkerson
If you go to a Nagios Core view do you see the hosts/services?

Code: Select all

http://HOST/nagios/

Re: Where are my imported hosts?

Posted: Tue Jan 06, 2015 11:05 am
by danoreilly
yes

Re: Where are my imported hosts?

Posted: Tue Jan 06, 2015 11:26 am
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.

Re: Where are my imported hosts?

Posted: Tue Jan 06, 2015 11:44 am
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.

Re: Where are my imported hosts?

Posted: Tue Jan 06, 2015 11:57 am
by sreinhardt
Did you get a chance to test what scott mentioned? It looks like you just quoted him at the moment.

Re: Where are my imported hosts?

Posted: Tue Jan 06, 2015 12:14 pm
by danoreilly
After the first thing (restarting the db) failed, I didn't try the second. I can do that.