Error: Could not read host and service status information!

Schmitz, Carsten Carsten.Schmitz at aegon.com
Thu Jan 27 13:14:32 CET 2005


Hi,

Is your Nagios starting up at all? It does not look like.


> I'm testing Nagios right now and have started it using 'nagios nagios.cfg' in the terminal. Ran it using root. 

I recommend using the init script /etc/init.d/nagios to start and stop nagios. A source installation (and I guess the RPMs as well) should have installed it. This will also run it in daemon mode, which is probably what you want (use -d if you want to start nagios without the init script for any reason).

Are there any errors when it starts up? Did it parse the configuration properly? What about the log file ... any errors?

Once you started with the init script or -d, do "ps -ef | grep nagios" and you should see it running. If not, check log files and output.


> Error: Could not open log file '/var/log/nagios/nagios.log' for reading! 

Does /var/log/nagios exist? Otherwise, mkdir -p /var/log/nagios. Make sure the Nagios user can read the file (i.e. permissions).


> Ran it using root. 

Rule #1 (actually rule #0.5 because its so important): NEVER run any complex application as root unless it really has to for some very valid reason. If an exploit is found by someone with malicious plans, you will sacrifice your root account (read: your whole machine) on a silver plate. Make a user and group "nagios" and run under those. You probably need to "chown nagios" a few files like logfiles afterwards.

If you haven't done so yet, have a look at the excellent Nagios docs and faqs and please post preferably in ASCII not HTML, for those of us reading mail in terminals.

Cheers,
Carsten





-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Sam Lee (ia2)
Sent: Thursday, January 27, 2005 9:10 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Error: Could not read host and service status information!


 I hope someone is reading this. 

Have just finish installing and configuring Nagios 1.2 on my Fedora box. 
Everything seems to be working fine, except that the web interface keeps giving me this error message: 
Could not read host and service status information 

I'm testing Nagios right now and have started it using 'nagios nagios.cfg' in the terminal. Ran it using root. 

Also, when i click on the event log, it gave me an error message: 
Error: Could not open log file '/var/log/nagios/nagios.log' for reading! 

I've check that the path is valid. 

Any help/advice will be much appreciated! 

Regards, 
Sam 


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list