[ Return To FAQ Index | Search The FAQs ]
|Title:||Checking the status of Nagios with MySQL or PostgreSQL DB support|
|Submitted By:||Shayne Lebrun |
|Description:||When running Nagios with status information being logged to database, Nagios claims that the monitoring process may not be running, or finds a status update that is 30 years old. |
That's because you're logging to database, but Nagios' CGI is checking the status log. In the cgi.cfg, for the nagios_check_command, try using the check_nagios_db.pl program found in the 'contrib' section of the Nagios Plugins distribution. You'll need to hack the perl a wee bit, if only to change where it's looking for the Nagios config files, where it gets the database information.
Then, add it to the cgi.cfg (I had to include the perl interpreter for some strange reason):
|Keywords:||status monitor mysql postgres nagios_check_command |