[Fwd: Nagios mysql and cgi]

Sean Perry sean.perry at intransa.com
Sat Sep 20 01:07:25 CEST 2003


Sean Whitney wrote:

> So I've compiled nagios to use mysql.  I started from scratch and have
> recompiled all of it.
> 
> Everything compiled fine after I moved some linking statements around. 
> Nagios starts and I am getting data inserted into the hostretention,
> programretention and serviceretention tables.  However all the cgi
> scripts give me a 
> 
> Whoops!
> Error: Could not read host and service status information!
> 
> When I start nagios I also get a 
> NAGIOS CRITICAL - could not find status log: /var/log/nagios/status.log 
> 
> error as well.  As I understand it all the status entries should now be
> written to the 'programstatus', 'hoststatus', and 'servicestatus' tables
> in the database.
> 
> I would really like to buy a clue right about now...
> 

You need to edit etc/cgi.cfg to tell the various cgi's how to get at the 
data.  There are plenty of comments to follow, just walk the file.




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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