Page 1 of 1

Unable to apply configuration.

Posted: Tue Mar 10, 2020 10:20 pm
by fmomin
Unable to apply any configuration on webinterface. giving below error.

[root@nagihpcorp01 ~]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios Core 4.4.3
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2019-01-15
License: GPL

Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Invalid max_check_attempts value for host 'APNETPUP031-new.ffx.jfh.com.au'
Error: Could not register host (config file '/usr/local/nagios/etc/hosts/APNETPUP031-new.ffx.jfh. com.au.cfg', starting on line 16)
Error processing object config files!


***> One or more problems was encountered while processing the config files...

Check your configuration file(s) to ensure that they contain valid
directives and data definitions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.

Re: Unable to apply configuration.

Posted: Tue Mar 10, 2020 10:32 pm
by Box293
Can you try the steps in this KB article:

https://support.nagios.com/kb/article/n ... d-144.html

If this doesn't fix the issue then please list the steps you tried and what output you are getting.