Upgraded Nagios to 4.4.1 and Nagios not Working
Posted: Thu Jan 31, 2019 6:10 pm
Hi there,
My Nagios server is running on CentOS 7. I decided to upgrade Nagios Core 4.3.2 to Nagios Core 4.4.1.
I followed every command from https://support.nagios.com/kb/article/n ... e-797.html
and when I run systemctl status nagios.service I get nagios.service failed. I will upload screenshot to view error message.
During install I did encounter an issue. When I attempted to Start Service / Daemon by entering systemctl start nagios.service, I received error message "nagios.service failed because the control process exited with error code. See "systemctl status nagios.service" When I entered systemctl status nagios.service it said it could not locate nagios.cfg in "/usr/local/nagios/etc/nagios.cfg".
When I navigated to directory /usr/local/nagios/etc/nagios.cfg file nagios.cfg was not there.
I think that might be an issue because during the installation phase the document indicated to enter "sed -i 's/^lock_file=.*/lock_file=\/var\/run\/nagios.lock/g' /usr/local/nagios/etc/nagios.cfg" but i entered /etc/nagios/nagios.cfg instead of /usr/local/nagios/etc/nagios.cfg. I did that because my nagios.cfg is located in /etc/nagios/ directory.
I then copied nagios.cfg into /usr/local/nagios/etc/nagios.cfg directory and ran systemctl start nagios.service and command worked.
My next step I wanted to confirm Nagios is running by entering systemctl status nagios.service and I receive error message nagios.service failed.
What can I do to make Nagios 4.4.1 work? Any assistance is greatly appreciated. Thank you in advance.
My Nagios server is running on CentOS 7. I decided to upgrade Nagios Core 4.3.2 to Nagios Core 4.4.1.
I followed every command from https://support.nagios.com/kb/article/n ... e-797.html
and when I run systemctl status nagios.service I get nagios.service failed. I will upload screenshot to view error message.
During install I did encounter an issue. When I attempted to Start Service / Daemon by entering systemctl start nagios.service, I received error message "nagios.service failed because the control process exited with error code. See "systemctl status nagios.service" When I entered systemctl status nagios.service it said it could not locate nagios.cfg in "/usr/local/nagios/etc/nagios.cfg".
When I navigated to directory /usr/local/nagios/etc/nagios.cfg file nagios.cfg was not there.
I think that might be an issue because during the installation phase the document indicated to enter "sed -i 's/^lock_file=.*/lock_file=\/var\/run\/nagios.lock/g' /usr/local/nagios/etc/nagios.cfg" but i entered /etc/nagios/nagios.cfg instead of /usr/local/nagios/etc/nagios.cfg. I did that because my nagios.cfg is located in /etc/nagios/ directory.
I then copied nagios.cfg into /usr/local/nagios/etc/nagios.cfg directory and ran systemctl start nagios.service and command worked.
My next step I wanted to confirm Nagios is running by entering systemctl status nagios.service and I receive error message nagios.service failed.
What can I do to make Nagios 4.4.1 work? Any assistance is greatly appreciated. Thank you in advance.