Page 1 of 1

hosts Services Contacts not showing in Web Interface

Posted: Thu Oct 22, 2015 12:32 pm
by kwhogster
Raspberry PI Raspbian Jesse
Apache2
Nagios 4.1.1

When I go to my Nagios site and display hosts I only see the local host I have 6 hosts defined
When I display contacts only only see nagiosadmin I have another one defined can not see the other one
When I display services I do not see all 58 services

It is like any of the new items I entered into contacts,cfg windows.cfg did not take effect even when the nagios verify shows them

I ran a verify see below

oot@raspberrypi:~# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios Core 4.1.1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-19-2015
License: GPL

Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
Checked 58 services.
Checked 6 hosts.
Checked 2 host groups.
Checked 0 service groups.
Checked 2 contacts.
Checked 1 contact groups.
Checked 24 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 6 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check

What am I missing here ? Permissions?

root@raspberrypi:~# ls -ltr /usr/local/nagios/etc/
total 128
-rw-rw-r-- 1 nagios nagios 12015 Oct 15 16:01 cgi.cfg~
-rw-rw---- 1 nagios nagios 1312 Oct 15 16:01 resource.cfg~
-rw-r--r-- 1 root nagios 50 Oct 15 16:18 htpasswd.users
-rw-rw-r-- 1 nagios nagios 44475 Oct 17 14:15 nagios.cfg~
-rw-rw-r-- 1 nagios nagios 12267 Oct 17 17:21 cgi.cfg
-rw-rw---- 1 nagios nagios 1312 Oct 17 17:21 resource.cfg
drwxrwsr-x 2 nagios nagios 4096 Oct 22 00:50 objects
-rw-rw-r-- 1 nagios nagios 44830 Oct 22 00:53 nagios.cfg
root@raspberrypi:~# ls -ltr /usr/local/nagios/etc/objects
total 124
-rw-rw-r-- 1 nagios nagios 10621 Oct 15 16:01 templates.cfg~
-rw-rw-r-- 1 nagios nagios 7688 Oct 15 16:01 commands.cfg~
-rw-rw-r-- 1 nagios nagios 2138 Oct 15 16:01 contacts.cfg~
-rw-rw-r-- 1 nagios nagios 3180 Oct 15 16:01 timeperiods.cfg~
-rw-rw-r-- 1 nagios nagios 5375 Oct 15 16:01 localhost.cfg~
-rw-rw-r-- 1 nagios nagios 3096 Oct 15 16:01 printer.cfg~
-rw-rw-r-- 1 nagios nagios 3265 Oct 15 16:01 switch.cfg~
-rw-rw-r-- 1 nagios nagios 15689 Oct 17 13:27 windows.cfg~
-rw-rw-r-- 1 nagios nagios 10621 Oct 17 17:21 templates.cfg
-rw-rw-r-- 1 nagios nagios 7688 Oct 17 17:21 commands.cfg
-rw-rw-r-- 1 nagios nagios 3180 Oct 17 17:21 timeperiods.cfg
-rw-rw-r-- 1 nagios nagios 5375 Oct 17 17:21 localhost.cfg
-rw-rw-r-- 1 nagios nagios 3991 Oct 17 17:21 windows.org
-rw-rw-r-- 1 nagios nagios 3096 Oct 17 17:21 printer.cfg
-rw-rw-r-- 1 nagios nagios 3265 Oct 17 17:21 switch.cfg
-rw-rw-r-- 1 root nagios 15670 Oct 17 18:46 windows.cfg
-rw-rw-r-- 1 nagios nagios 2272 Oct 22 00:50 contacts.cfg
root@raspberrypi:~#


How does this look?

Thoughts

Re: hosts Services Contacts not showing in Web Interface

Posted: Thu Oct 22, 2015 12:42 pm
by rkennedy
Everything appears to be verifying properly. Have you restarted the service?
service nagios restart

Re: hosts Services Contacts not showing in Web Interface

Posted: Thu Oct 22, 2015 12:50 pm
by kwhogster
Yes Sorry for got to add that to my original post

I have done this service nagios reload

Re: hosts Services Contacts not showing in Web Interface

Posted: Thu Oct 22, 2015 12:55 pm
by kwhogster
Working now thanks

I just did the service nagios restart

Just thought the service nagios reload was ok

Thanks again

Problem solved

Re: hosts Services Contacts not showing in Web Interface

Posted: Thu Oct 22, 2015 1:23 pm
by rkennedy
Glad to see this worked! I will now close this thread, but feel free to open another if you need more assistance in the future.