Nagios 4.5.3 service issue

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
mandar18
Posts: 31
Joined: Thu Feb 08, 2024 6:43 am

Nagios 4.5.3 service issue

Post 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
bbahn
Posts: 382
Joined: Thu Jan 12, 2023 5:42 pm

Re: Nagios 4.5.3 service issue

Post 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.
Actively advancing awesome answers with ardent alliteration, aptly addressing all ambiguities. Amplify your acumen and avail our amicable assistance. Eagerly awaiting your astute assessments of our advice.
mandar18
Posts: 31
Joined: Thu Feb 08, 2024 6:43 am

Re: Nagios 4.5.3 service issue

Post by mandar18 »

I found the issue, and it was resolved.
Thank you.
Locked