LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-11-2004, 11:10 AM   #1
kopite2012
Member
 
Registered: Mar 2004
Posts: 31

Rep: Reputation: 15
Question 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,
 
Old 03-11-2004, 11:31 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
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...
 
Old 03-12-2004, 06:04 AM   #3
kopite2012
Member
 
Registered: Mar 2004
Posts: 31

Original Poster
Rep: Reputation: 15
yes, and yes to both your questions. Its a weird problem I know.

As usual any help is appreciated.
 
Old 03-12-2004, 06:07 AM   #4
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
The only way I can replicate this is by stopping Nagios. What does
Code:
ps -ef | grep nagios
show you?

cheers

Jamie...
 
Old 03-12-2004, 06:13 AM   #5
kopite2012
Member
 
Registered: Mar 2004
Posts: 31

Original Poster
Rep: Reputation: 15
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.
 
Old 03-12-2004, 07:53 AM   #6
kopite2012
Member
 
Registered: Mar 2004
Posts: 31

Original Poster
Rep: Reputation: 15
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.
 
Old 03-12-2004, 08:13 AM   #7
kopite2012
Member
 
Registered: Mar 2004
Posts: 31

Original Poster
Rep: Reputation: 15
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.
 
Old 03-12-2004, 08:27 AM   #8
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
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...
 
Old 03-12-2004, 09:07 AM   #9
kopite2012
Member
 
Registered: Mar 2004
Posts: 31

Original Poster
Rep: Reputation: 15
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.
 
Old 04-02-2004, 12:21 PM   #10
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Create the rw directory manually and set perms appropriately.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nagios IP problem sumux Linux - Software 0 11-18-2005 07:19 AM
Nagios Problem kingcomein Linux - General 4 11-10-2005 12:31 AM
Nagios problem I_AM Linux - General 1 10-03-2005 04:22 PM
Nagios problem denis Linux - Software 1 04-27-2005 12:23 PM
Nagios Problem sbrewer Linux - Software 1 12-19-2004 05:49 AM


All times are GMT -5. The time now is 06:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration