Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Recently, our Nagios server running CentOS 5.6 shutoff unexpectedly. Since then, I've been unable to get Nagios to start. Issuing 'service nagios start' will say that Nagios has started, however when I do a 'ps -A' to look at all process ID's, there are no nagios processes. I can view the web monitoring page, but I get an error when trying to view hosts.
[root@nagios var]# service nagios start
Starting nagios: done.
[root@nagios var]# service nagios status
nagios is not running
[root@nagios var]#
I tried upgrading to the latest version, but that did not resolve the issue. I don't see any errors in the nagios.log file, here is what I get when I restart Nagios. It's interesting that it shows the PID, but that process doesn't actually exist.
[1349990543] Nagios 3.4.1 starting... (PID=9785)
[1349990543] Local time is Thu Oct 11 17:22:23 EDT 2012
[1349990543] LOG VERSION: 2.0
[1349990543] livestatus: Livestatus 1.1.12p6 by Mathias Kettner. Socket: '/usr/local/nagios/var/rw/live'
[1349990543] livestatus: Please visit us at http://mathias-kettner.de/
[1349990543] livestatus: Hint: please try out OMD - the Open Monitoring Distribution
[1349990543] livestatus: Please visit OMD at http://omdistro.org
[1349990543] livestatus: Removed old left over socket file /usr/local/nagios/var/rw/live
[1349990543] livestatus: Ignoring duplicate logfile /usr/local/nagios/var/archives/nagios-04-27-2012-00.log
I'd start by temporarily disabling the livestatus event broker. It'll make it easier to troubleshoot the core engine. Check permissions on everything in your /usr/local/nagios/var directory.
mguthrie wrote:I'd start by temporarily disabling the livestatus event broker. It'll make it easier to troubleshoot the core engine. Check permissions on everything in your /usr/local/nagios/var directory.
Where can I disable the livestatus event broker? I gave 777 permissions to the /usr/local/nagios/var directory to test, but still saw the same results.