Bulk Host Cloning wizard no longer functioning
Posted: Fri Aug 24, 2018 10:20 am
We have a manual install of 5.5.2 running on RHEL6. It is a few years old and we continually keep it up to date. I've been using the bulk cloning wizard to add new hosts over the years and it has worked flawlessly until this month. Recently I went to follow my usual procedure to add a few new hosts (we have about 150) and it fails every single time now when writing/verifying the config at the end.
The failures change. Sometimes it's the service file, sometimes it's the host file:
Nagios Core 4.4.1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2018-06-25
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Invalid max_check_attempts value for host 'host281.fqdn.com'
Error: Could not register host (config file '/usr/local/nagios/etc/hosts/host281.fqdn.com.cfg', starting on line 16)
Error processing object config files!
***> One or more problems was encountered while processing the config files...
or
Error: Service description, host name, or check command is NULL
Error: Could not register service (config file '/usr/local/nagios/etc/services/host281.fqdn.com.cfg', starting on line 16)
Error processing object config files!
I went and looked at the config files and I can see it wrote the new ones, but as it mentioned the configs are bare bones and missing most of the options as compared with the hosts that I am copying. Doesn't matter which host I choose.
Any assistance would be appreciated.
The failures change. Sometimes it's the service file, sometimes it's the host file:
Nagios Core 4.4.1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2018-06-25
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Invalid max_check_attempts value for host 'host281.fqdn.com'
Error: Could not register host (config file '/usr/local/nagios/etc/hosts/host281.fqdn.com.cfg', starting on line 16)
Error processing object config files!
***> One or more problems was encountered while processing the config files...
or
Error: Service description, host name, or check command is NULL
Error: Could not register service (config file '/usr/local/nagios/etc/services/host281.fqdn.com.cfg', starting on line 16)
Error processing object config files!
I went and looked at the config files and I can see it wrote the new ones, but as it mentioned the configs are bare bones and missing most of the options as compared with the hosts that I am copying. Doesn't matter which host I choose.
Any assistance would be appreciated.