Page 1 of 1

Nagios 4.5.3 service issue

Posted: Mon Jul 22, 2024 6:04 am
by mandar18
When I tried to make changes into the file "/usr/local/nagios/etc/objects/windows.cfg" and after making restarting the service I am getting the error as nagios.service - Nagios Core 4.5.3
Loaded: loaded (/lib/systemd/system/nagios.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2024-07-22 05:59:18 CDT; 5min ago
Docs: https://www.nagios.org/documentation
Process: 2576445 ExecStartPre=/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg (code=exited, status=1/FAILURE)
Process: 2576446 ExecStopPost=/usr/bin/rm -f /usr/local/nagios/var/rw/nagios.cmd (code=exited, status=0/SUCCESS)
CPU: 9ms

Re: Nagios 4.5.3 service issue

Posted: Mon Jul 22, 2024 10:01 am
by bbahn
Hello @mandar18,

Have you tried running the following to verify your configuration?:

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
It sounds like your configuration may not be correct and the above command will indicate whether your configuration is correct or not in most cases.

Re: Nagios 4.5.3 service issue

Posted: Mon Jul 22, 2024 11:02 pm
by mandar18
I found the issue, and it was resolved.
Thank you.