Search found 26 matches

by buee
Thu Jan 30, 2020 9:45 am
Forum: Open Source Nagios Projects
Topic: Error: Could not read host and service status information!
Replies: 30
Views: 16206

Re: Error: Could not read host and service status informatio

As long as the files are readable by anyone, the files being owned by root is OK. It has to be an Apache issue. The output you have provided did not show and output for running the status.cgi script. Below is what I see when clicking on the Services menu in the GUI. 192.168.5.223 - nagiosadmin [30/...
by buee
Thu Jan 30, 2020 9:16 am
Forum: Open Source Nagios Projects
Topic: Error: Could not read host and service status information!
Replies: 30
Views: 16206

Re: Error: Could not read host and service status informatio

The web files for Nagios appear to all be owned by root....that seems off to me: ls -alh /usr/share/nagios3/htdocs/ total 60K drwxr-xr-x 8 root root 4.0K Jun 12 2019 . drwxr-xr-x 5 root root 4.0K Jun 12 2019 .. -rw-r--r-- 1 root root 549 Jun 6 2017 config.inc.php drwxr-xr-x 2 root root 4.0K Jun 12 2...
by buee
Thu Jan 30, 2020 8:51 am
Forum: Open Source Nagios Projects
Topic: Error: Could not read host and service status information!
Replies: 30
Views: 16206

Re: Error: Could not read host and service status informatio

I would bet the PiHole is the issue as it is passing the IP address on as a bad host name. Remove it or fix it to only pass the IP address and check the Apache Logs again if it fails. I think we've eliminated the PiHole possibility. It's been disabled for about 12 hours and the hostname was removed...
by buee
Wed Jan 29, 2020 5:07 pm
Forum: Open Source Nagios Projects
Topic: Error: Could not read host and service status information!
Replies: 30
Views: 16206

Re: Error: Could not read host and service status informatio

Everything looks good in the configuration files. Run these as root and post the output to the ticket. ls -l /usr/lib/cgi-bin/nagios3 dpkg -l |grep php Run this to tail the apache logs. tail -f /var/log/apache2/*.log Open your browser and clear out it's cache and login to the Nagios server. Do to t...
by buee
Wed Jan 29, 2020 1:21 pm
Forum: Open Source Nagios Projects
Topic: Error: Could not read host and service status information!
Replies: 30
Views: 16206

Re: Error: Could not read host and service status informatio

tgriep wrote:Was the nagiosadmin login account removed from the system?
Honestly, I don't know. This system has been running for a long time.
by buee
Wed Jan 29, 2020 1:19 pm
Forum: Open Source Nagios Projects
Topic: Error: Could not read host and service status information!
Replies: 30
Views: 16206

Re: Error: Could not read host and service status informatio

Can you post the cgi.cfg file from the nagios etc folder and the Apache nagios.conf file? Typically the Apache file is here. /etc/apache2/conf-enabled/nagios.conf Was the nagiosadmin login account removed from the system? My cgi.cfg: #################################################################...
by buee
Tue Jan 28, 2020 3:35 pm
Forum: Open Source Nagios Projects
Topic: Error: Could not read host and service status information!
Replies: 30
Views: 16206

Re: Error: Could not read host and service status informatio

Actually, what you have shown, these users www-data,nagios are part of the nagios group, not the other way around. If you login as the nagiosadmin, does the system display the same error? Good point! The nagios user was not in the www-data group. I added it, but no difference, sadly. Here is my cur...
by buee
Tue Jan 28, 2020 10:40 am
Forum: Open Source Nagios Projects
Topic: Error: Could not read host and service status information!
Replies: 30
Views: 16206

Re: Error: Could not read host and service status informatio

Make sure that the nagios user account is still active and not expired. Run this to check it. chage -l nagios What is the user account you are using to login to the web interface? Is it setup in the cgi.cfg to access the system status data? Try editing the /etc/groups file and add the nagios user a...
by buee
Tue Jan 28, 2020 8:53 am
Forum: Open Source Nagios Projects
Topic: Error: Could not read host and service status information!
Replies: 30
Views: 16206

Re: Error: Could not read host and service status informatio

Any other suggestions, ideas, or things to check?
by buee
Fri Jan 24, 2020 6:12 pm
Forum: Open Source Nagios Projects
Topic: Error: Could not read host and service status information!
Replies: 30
Views: 16206

Re: Error: Could not read host and service status informatio

Can we see the permissions of the following dirs to verify the www-data user or nagios group has access to read all ls -l /var/cache/nagios3 ls -l /var/cache ls -l /var ls -l /var/cache/nagios3 total 204 -rw-r--r-- 1 nagios www-data 69939 Jan 20 17:31 objects.cache -rw-rw-r-- 1 nagios www-data 6651...