Could not read host and service status information

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Could not read host and service status information

Post by jolson »

Please check the permissions on that directory. The nagios user will need to be able to get to the directory and write there.

Code: Select all

ls -l /usr/local/nagios/var/ && ls -l -d /usr/local/nagios/var/ && ls -l -d /usr/local/nagios/
Proper permissions from my machine:

Code: Select all

-rw-rw-r--. 1 nagios nagios 18594 Apr 16 11:15 status.dat
drwxrwxr-x. 5 nagios nagios 4096 Apr 16 11:15 /usr/local/nagios/var/
drwxr-xr-x. 10 root root 4096 Mar 18 10:38 /usr/local/nagios/
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
Locked