LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Nagios Problem (https://www.linuxquestions.org/questions/linux-newbie-8/nagios-problem-156306/)

kopite2012 03-11-2004 10:10 AM

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,

jharris 03-11-2004 10:31 AM

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...

kopite2012 03-12-2004 05:04 AM

yes, and yes to both your questions. Its a weird problem I know.

As usual any help is appreciated.

jharris 03-12-2004 05:07 AM

The only way I can replicate this is by stopping Nagios. What does
Code:

ps -ef | grep nagios
show you?

cheers

Jamie...

kopite2012 03-12-2004 05:13 AM

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.

kopite2012 03-12-2004 06:53 AM

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.

kopite2012 03-12-2004 07:13 AM

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.

jharris 03-12-2004 07:27 AM

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...

kopite2012 03-12-2004 08:07 AM

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.

stickman 04-02-2004 11:21 AM

Create the rw directory manually and set perms appropriately.


All times are GMT -5. The time now is 09:09 AM.