Nagios Problem
I am a complete novice when it comes to Linux. I have setup nagios on a linux machine in accordance with the manuel. When I open up the web interface and click on any of the items on the left hand side (i.e. The Tactical Overview option) I get an error message that reads
Error: Could not read host and service status information! I checked the permission on the nagios.cmd so that everybody could read and right to it. I also checked the permission on the nagios folder to ensure everybody has read and write permission on it. However I am still getting this error message. Does anybody know what I need to do. Any help will be greatly appreciated. Regards, |
At the risk of asking a stupid question - have you defined any hosts/services in your hosts.cfg and services.cfg files? If you have, did you remember to restart Nagios?
cheers Jamie... |
yes, and yes to both your questions. Its a weird problem I know.
As usual any help is appreciated. |
The only way I can replicate this is by stopping Nagios. What does
Code:
ps -ef | grep nagios cheers Jamie... |
got disillusioned with the problem so ditched nagios altogether, and I'm just starting again with a fresh build.
Thanks for your help. Hopefully I'll get it right this time. |
I have just finished re-installing nagios and I get the same message
I typed the command you specified earlier and I get the following message root 9466 3375 0 12:48 pts/0 00:00:00 Can you please help. |
I looked in the nagios log file and I can see an error message that reads
could not create external command file '/user/local/nagios/var/rw/nagios.cmd' as named in pipe: No such file or directory exists. I have tried to restart nagios service and it does not start. |
If Nagios is not starting then that explains your error message when you access the CGI cripts. What error messages do you get when you try to run the nagios init script with the "reload" option - typically either /etc/init.d/nagios reload or /etc/rc.d/rc.nagios reload
I'm guessing it's either file system permissions, or your config files not having the correct syntax. cheers Jamie... |
I looked in the '/user/local/nagios/var/ directory and could not find a RW directory. I copied this direcoty from another nagios machine and the restarted the web server.
This seems to have sorted out the problem. Although I still dont understand why it this directory was not created. I did the install twice and both times the same thing happened. If there is an obvious anwser It would be useful to know. |
Create the rw directory manually and set perms appropriately.
|
All times are GMT -5. The time now is 09:09 AM. |