Nagios 4 (4.10 RC1) Startup (SuSE 13.2)
Posted: Mon Apr 27, 2015 6:16 pm
Recently upgraded a 3.5.1 machine to 4.1RC1, and I thought everything was OK until last Friday when there was a power issue; the server rebooted and I could not get Nagios started.
service nagios start consistently returns:
# service nagios status
nagios.service - LSB: Starts and stops the Nagios monitoring server
Loaded: loaded (/etc/init.d/nagios)
Active: active (exited) since Mon 2015-04-27 17:51:55 CDT; 14min ago
Process: 1848 ExecStart=/etc/init.d/nagios start (code=exited, status=0/SUCCESS)
Apr 27 17:51:55 WTNagios nagios[1848]: Starting nagios: done.
Went looking and found a bunch of the old Startup forum threads, .. so I tried to start manually, failure:
[1430175183] Failed to obtain lock on file /var/run/nagios/nagios.pid: No such file or directory
[1430175183] Bailing out due to errors encountered while attempting to daemonize... (PID=1927)permission issues
Had to *manually* create /var/run/nagios with ownership nagios:nagios, start successful. Tried a reboot, /var/run/nagios directory gone, same problem. Able to manually start, however, after creating /var/run/nagios again.
The init script still reports active (exited) even though Nagios is running [after starting manually]:
# ps ax | grep nagios
2115 ? Ss 0:01 /usr/local/nagios/bin/nagios -d /etc/nagios/nagios.cfg
2120 ? S 0:00 /usr/local/nagios/bin/nagios -d /etc/nagios/nagios.cfg
2879 ? S 0:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
2880 ? S 0:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
2881 ? S 0:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
2882 ? S 0:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
Be happy to assist in any way we can, ... is anyone working on SuSE or RH?
service nagios start consistently returns:
# service nagios status
nagios.service - LSB: Starts and stops the Nagios monitoring server
Loaded: loaded (/etc/init.d/nagios)
Active: active (exited) since Mon 2015-04-27 17:51:55 CDT; 14min ago
Process: 1848 ExecStart=/etc/init.d/nagios start (code=exited, status=0/SUCCESS)
Apr 27 17:51:55 WTNagios nagios[1848]: Starting nagios: done.
Went looking and found a bunch of the old Startup forum threads, .. so I tried to start manually, failure:
[1430175183] Failed to obtain lock on file /var/run/nagios/nagios.pid: No such file or directory
[1430175183] Bailing out due to errors encountered while attempting to daemonize... (PID=1927)permission issues
Had to *manually* create /var/run/nagios with ownership nagios:nagios, start successful. Tried a reboot, /var/run/nagios directory gone, same problem. Able to manually start, however, after creating /var/run/nagios again.
The init script still reports active (exited) even though Nagios is running [after starting manually]:
# ps ax | grep nagios
2115 ? Ss 0:01 /usr/local/nagios/bin/nagios -d /etc/nagios/nagios.cfg
2120 ? S 0:00 /usr/local/nagios/bin/nagios -d /etc/nagios/nagios.cfg
2879 ? S 0:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
2880 ? S 0:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
2881 ? S 0:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
2882 ? S 0:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
Be happy to assist in any way we can, ... is anyone working on SuSE or RH?