cer113
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
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
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
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?
I assume doing /usr/sbin/nagios -v /etc/nagios/nagios.cfg returns no errors?
ASKER
yes when i run /usr/local/nagios/bin/nagi os -v /usr/local/nagios/etc/nagi os.cfg it says total errors 0 and total warnings 0
ASKER
and yes that error is coming from web interface
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
I was searching in nagios documentation and found the solution there. I applied the command and it was working then
What happens when you do a ps faux | grep nagios ?