Where are my imported hosts?
-
danoreilly
- Posts: 28
- Joined: Mon Dec 01, 2014 4:28 pm
Where are my imported hosts?
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?
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?
Did you apply configuration through the GUI?
Was it successful (3 green checks)?
Was it successful (3 green checks)?
-
danoreilly
- Posts: 28
- Joined: Mon Dec 01, 2014 4:28 pm
Re: Where are my imported hosts?
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?
If you go to a Nagios Core view do you see the hosts/services?
Code: Select all
http://HOST/nagios/-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Where are my imported hosts?
Lets forcibly restart ndo2db
If they still do not show in the UI, can you post the output of
We may need to setup a remote session to take a look at the server.
Code: Select all
service ndo2db restartCode: Select all
grep module /usr/local/nagios/etc/nagios.cfg-
danoreilly
- Posts: 28
- Joined: Mon Dec 01, 2014 4:28 pm
Re: Where are my imported hosts?
scottwilkerson wrote:Lets forcibly restart ndo2db[root@nagios hosts]# service ndo2db restartCode: Select all
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 ofWe may need to setup a remote session to take a look at the server.Code: Select all
grep module /usr/local/nagios/etc/nagios.cfg
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Where are my imported hosts?
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?
After the first thing (restarting the db) failed, I didn't try the second. I can do that.