Nagios service won't start
Posted: Tue Aug 01, 2017 3:22 pm
CentOS 7 64-bit
Manual install (inherited from previous admin)
Nagios XI has been running on this server for about a year to my knowledge. I ran an upgrade for Nagios from the web interface and the virtual server wouldn't boot. I found that one of my logical volumes had hit capacity. I did an lvextend on that volume and I'm now able to boot.
However, now the nagios service won't start:
[root@nagios etc]# systemctl status nagios.service
● nagios.service - LSB: Starts and stops the Nagios monitoring server
Loaded: loaded (/etc/rc.d/init.d/nagios)
Active: failed (Result: exit-code) since Tue 2017-08-01 15:11:36 CDT; 10s ago
Docs: man:systemd-sysv-generator(8)
Process: 2600 ExecStart=/etc/rc.d/init.d/nagios start (code=exited, status=8)
Aug 01 15:11:36 nagios.kingsisle.local systemd[1]: Starting LSB: Starts and stops the Nagios monitoring server...
Aug 01 15:11:36 nagios.kingsisle.local nagios[2600]: Starting nagios:
Aug 01 15:11:36 nagios.kingsisle.local systemd[1]: nagios.service: control process exited, code=exited status=8
Aug 01 15:11:36 nagios.kingsisle.local systemd[1]: Failed to start LSB: Starts and stops the Nagios monitoring server.
Aug 01 15:11:36 nagios.kingsisle.local systemd[1]: Unit nagios.service entered failed state.
Aug 01 15:11:36 nagios.kingsisle.local systemd[1]: nagios.service failed.
I then ran /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg and it did not produce any output nor an error, just went to a new line.
I then looked at nagios.cfg with vim and it is empty, I'm not sure why or how but perhaps something to do with the disk hitting capacity during the upgrade attempt perhaps?
Can I simply place an example config into that file? If so, where can I get an example config file.
I noticed that the web interface indicated it was making a backup prior to the upgrade but I don't recall what path is was storing that backup, would it be possible to retrieve the nagios.cfg from that backup location?
Thanks!
Jordan
Manual install (inherited from previous admin)
Nagios XI has been running on this server for about a year to my knowledge. I ran an upgrade for Nagios from the web interface and the virtual server wouldn't boot. I found that one of my logical volumes had hit capacity. I did an lvextend on that volume and I'm now able to boot.
However, now the nagios service won't start:
[root@nagios etc]# systemctl status nagios.service
● nagios.service - LSB: Starts and stops the Nagios monitoring server
Loaded: loaded (/etc/rc.d/init.d/nagios)
Active: failed (Result: exit-code) since Tue 2017-08-01 15:11:36 CDT; 10s ago
Docs: man:systemd-sysv-generator(8)
Process: 2600 ExecStart=/etc/rc.d/init.d/nagios start (code=exited, status=8)
Aug 01 15:11:36 nagios.kingsisle.local systemd[1]: Starting LSB: Starts and stops the Nagios monitoring server...
Aug 01 15:11:36 nagios.kingsisle.local nagios[2600]: Starting nagios:
Aug 01 15:11:36 nagios.kingsisle.local systemd[1]: nagios.service: control process exited, code=exited status=8
Aug 01 15:11:36 nagios.kingsisle.local systemd[1]: Failed to start LSB: Starts and stops the Nagios monitoring server.
Aug 01 15:11:36 nagios.kingsisle.local systemd[1]: Unit nagios.service entered failed state.
Aug 01 15:11:36 nagios.kingsisle.local systemd[1]: nagios.service failed.
I then ran /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg and it did not produce any output nor an error, just went to a new line.
I then looked at nagios.cfg with vim and it is empty, I'm not sure why or how but perhaps something to do with the disk hitting capacity during the upgrade attempt perhaps?
Can I simply place an example config into that file? If so, where can I get an example config file.
I noticed that the web interface indicated it was making a backup prior to the upgrade but I don't recall what path is was storing that backup, would it be possible to retrieve the nagios.cfg from that backup location?
Thanks!
Jordan