LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Nagios not starting up properly (https://www.linuxquestions.org/questions/linux-server-73/nagios-not-starting-up-properly-543932/)

hondo 04-06-2007 07:48 PM

Nagios not starting up properly
 
Im having some problems with Nagios. Ive set up this program and configured it in a very small way, like adding one host and a service. I then verified the config file for Nagios which went well without any errors or warnings.

When i access nagios from the net it works fine, but when im trying to access a page in nagios i get this message:
Code:

"Error: Could not read host and service status information!"
On the page it says that this usually is because nagios isnt started properly or correcly. I have read the docs on how to start/reload/verify the configuration for nagios and im still getting this message.

Does someone know why im getting this message and how i can correct it? I appericiate all help :)

Additional information:

When im in nagios and viewing the log files i get these messages:
Code:

[04-07-2007 02:51:34] Error: Could not re-connect to database server on host '' for status data. I'll keep trying every 60 seconds...
[04-07-2007 02:43:17] Error: Could not re-connect to database server on host '' for status data. I'll keep trying every 60 seconds...
[04-07-2007 02:41:34] Error: Could not re-connect to database server on host '' for status data. I'll keep trying every 60 seconds...
[04-07-2007 02:33:17] Error: Could not re-connect to database server on host '' for status data. I'll keep trying every 60 seconds...
[04-07-2007 02:33:17] Error: Could not connect to MySQL database '' on host '' using username '' and password 'XXXXXX'. Retention data will not be processed or saved!
[04-07-2007 02:31:34] Error: Could not re-connect to database server on host '' for status data. I'll keep trying every 60 seconds...
[04-07-2007 02:31:04] Error: Could not connect to MySQL database '' on host '' using username '' and password 'XXXXXX'. Retention data will not be processed or saved!
[04-07-2007 02:23:17] Error: Could not re-connect to database server on host '' for status data. I'll keep trying every 60 seconds...
[04-07-2007 02:21:34] Error: Could not re-connect to database server on host '' for status data. I'll keep trying every 60 seconds...
[04-07-2007 02:13:17] Error: Could not re-connect to database server on host '' for status data. I'll keep trying every 60 seconds...
[04-07-2007 02:11:34] Error: Could not re-connect to database server on host '' for status data. I'll keep trying every 60 seconds...
[04-07-2007 02:03:17] Error: Could not re-connect to database server on host '' for status data. I'll keep trying every 60 seconds...
[04-07-2007 02:01:34] Error: Could not re-connect to database server on host '' for status data. I'll keep trying every 60 seconds...


btmiller 04-07-2007 01:22 PM

Are you trying to use MySQL with nagios? if som it doesn't look like you gave it proper database login credentials. I think the latest versions don't even support database back ends (but use flat-files instead). If you don't have a database set up you might just try with flat files.

hondo 04-07-2007 02:24 PM

Thanks for answering.

I never sat up any mysql server for use with nagios nor have i provided any username or password anywhere in the configuration files. I have no idea where nagios gets this information about any database being used, i have searched for something that would say anything about using a mysql database in the config files, but i didnt find anything.

I do think its a little strange that the log says that there is something wrong with connecting and using a mysqlserver and/or database, because i havent set any directives that should indicate the use of a mysql database server.

I got these packages from the apt-get utility in debian, so it kinda installed itself automatically like all programs when using the apt-get utility.

I have thought about uninstalling this software and install it from source code, but its just that it doesnt seem to be anything wrong with the config files, so i dont really know if it would be any different.


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