Link to home
Start Free TrialLog in
Avatar of cer113
cer113Flag for Canada

asked on

Error: Could not read host and service status information! Nagios 3

Hi Guys

As you can see this is the error I am getting. Not sure what can be the reason for it but would like if someone can give me some inputs. I had nagios working already but after changing something in windows.cfg and commands.cfg i got this error. When i do service nagios restart it restarts no problem as well as apache is running as well but it gives me this error when i try to access services hopefully someone have clue what to do

Thanks
Avatar of Seth Simmons
Seth Simmons
Flag of United States of America image

Did you verify the Nagios process is actually running?

What happens when you do a ps faux | grep nagios ?
Avatar of cer113

ASKER

this is the output of the command


ps faux | grep nagios
root     13134  0.0  0.1   3596   732 pts/0    S+   00:31   0:00                      \_ grep nagios
nagios   12461  0.0  0.3  14996  1608 ?        Ssl  Mar30   0:01 /usr/sbin/nagios -d /etc/nagios/nagios.cfg
Is that error coming from the web interface?  It's been a while since I've seen that error so don't remember exactly the location.

I assume doing /usr/sbin/nagios -v /etc/nagios/nagios.cfg returns no errors?
Avatar of cer113

ASKER

yes when i run  /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg  it says total errors 0 and total warnings 0
Avatar of cer113

ASKER

and yes that error is coming from web interface
ASKER CERTIFIED SOLUTION
Avatar of cer113
cer113
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cer113

ASKER

I was searching in nagios documentation and found the solution there. I applied the command and it was working then