nagios service fails to start
Posted: Wed Dec 04, 2013 5:52 pm
Hi there,
I've followed the directions to install Nagios at http://nagios.sourceforge.net/docs/3_0/ ... edora.html
Installed nagios-4.0.2 and nagios-plugins-1.5 on Fedora 19
Everything goes well and the /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg reveals no errors, but when I try to start nagios service it fails:
I'm pretty new to Linux so I'm not sure where to go from here.
Thanks in advance for your assistance.
I've followed the directions to install Nagios at http://nagios.sourceforge.net/docs/3_0/ ... edora.html
Installed nagios-4.0.2 and nagios-plugins-1.5 on Fedora 19
Everything goes well and the /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg reveals no errors, but when I try to start nagios service it fails:
I've tried to work this out from other posts such as http://support.nagios.com/forum/viewtop ... lsb#p75758 but the modified /etc/init.d/nagios file suggested does not work for me (gets error at line 80 - something to do with daemon)nagios.service - LSB: start and stop Nagios monitoring server
Loaded: loaded (/etc/rc.d/init.d/nagios)
Active: failed (Result: timeout) since Thu 2013-12-05 08:19:09 EST; 16min ago
Process: 7734 ExecStart=/etc/rc.d/init.d/nagios start (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/nagios.service
ââ7788 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
ââ7790 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
ââ7791 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
ââ7792 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
ââ7793 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
ââ7809 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
Dec 05 08:14:10 localhost.localdomain nagios[7788]: wproc: Registry request: name=Core Worker 7793;pid=7793
Dec 05 08:14:10 localhost.localdomain nagios[7788]: wproc: Registry request: name=Core Worker 7790;pid=7790
Dec 05 08:14:11 localhost.localdomain nagios[7788]: Successfully launched command file worker with pid 7809
Dec 05 08:16:02 localhost.localdomain nagios[7788]: SERVICE ALERT: localhost;HTTP;WARNING;SOFT;1;HTTP WARNING: HTTP/1.1 403 Forbidden - 4909 bytes in 0.005 second response time
Dec 05 08:17:02 localhost.localdomain nagios[7788]: SERVICE ALERT: localhost;HTTP;WARNING;SOFT;2;HTTP WARNING: HTTP/1.1 403 Forbidden - 4909 bytes in 0.004 second response time
Dec 05 08:18:02 localhost.localdomain nagios[7788]: SERVICE ALERT: localhost;HTTP;WARNING;SOFT;3;HTTP WARNING: HTTP/1.1 403 Forbidden - 4909 bytes in 0.004 second response time
Dec 05 08:19:02 localhost.localdomain nagios[7788]: SERVICE ALERT: localhost;HTTP;WARNING;HARD;4;HTTP WARNING: HTTP/1.1 403 Forbidden - 4909 bytes in 0.004 second response time
Dec 05 08:19:09 localhost.localdomain systemd[1]: nagios.service operation timed out. Terminating.
Dec 05 08:19:09 localhost.localdomain systemd[1]: Failed to start LSB: start and stop Nagios monitoring server.
Dec 05 08:19:09 localhost.localdomain systemd[1]: Unit nagios.service entered failed state.
I'm pretty new to Linux so I'm not sure where to go from here.
Thanks in advance for your assistance.