Config Error
-
operations_asavie
- Posts: 33
- Joined: Tue Dec 22, 2015 7:07 am
Config Error
Hi,
Can you help me please, am running into a Config Error when applying configuration changes.
Even when I revert back to a previous snapshot that has "Config Ok" in the Snapshot Result and the following output when I view the config.I still get the error below. Can you please help with this?
**************
Nagios Core 4.1.1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-19-2015
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Checked 409 services.
Checked 13 hosts.
Checked 4 host groups.
Checked 1 service groups.
Checked 2 contacts.
Checked 2 contact groups.
Checked 126 commands.
Checked 8 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 13 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 8 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
*********
Error: Invalid max_check_attempts value for host 'XXXX'
Error: Could not register host (config file '/usr/local/nagios/etc/hosts/XXXX', starting on line 16)
Can you help me please, am running into a Config Error when applying configuration changes.
Even when I revert back to a previous snapshot that has "Config Ok" in the Snapshot Result and the following output when I view the config.I still get the error below. Can you please help with this?
**************
Nagios Core 4.1.1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-19-2015
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Checked 409 services.
Checked 13 hosts.
Checked 4 host groups.
Checked 1 service groups.
Checked 2 contacts.
Checked 2 contact groups.
Checked 126 commands.
Checked 8 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 13 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 8 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
*********
Error: Invalid max_check_attempts value for host 'XXXX'
Error: Could not register host (config file '/usr/local/nagios/etc/hosts/XXXX', starting on line 16)
-
operations_asavie
- Posts: 33
- Joined: Tue Dec 22, 2015 7:07 am
Re: Config Error
See the downloaded snapshot attached.
You do not have the required permissions to view the files attached to this post.
Re: Config Error
Code: Select all
Error: Invalid max_check_attempts value for host 'XXXX'
Error: Could not register host (config file '/usr/local/nagios/etc/hosts/XXXX', starting on line 16)
Former Nagios Employee
Re: Config Error
rkennedy is correct, but you could quickly check to confirm the settings are at least correct for "'max_check_attempts' on the host in question.
Go to :
Core Config Manager > Hosts > and Select the host in question so the 'Host management' window appears. Click the 'Check Settings' tab and make sure Check / Retry intervals have values as well as 'Max check attempts.' Anything with with a red asterisk next to it cannot be left blank either. Also fill out the notification period under the 'Alert Settings' tab.
Save changes and apply config - this should do away with those errors, but new errors may be revealed instead. If issue persists, please provide more detail about the the host you're attempting to monitor (is it Linux or Windows machine, router or switch, is an agent such as NRPE installed on it, etc) as rkennedy mentioned.
Go to :
Core Config Manager > Hosts > and Select the host in question so the 'Host management' window appears. Click the 'Check Settings' tab and make sure Check / Retry intervals have values as well as 'Max check attempts.' Anything with with a red asterisk next to it cannot be left blank either. Also fill out the notification period under the 'Alert Settings' tab.
Save changes and apply config - this should do away with those errors, but new errors may be revealed instead. If issue persists, please provide more detail about the the host you're attempting to monitor (is it Linux or Windows machine, router or switch, is an agent such as NRPE installed on it, etc) as rkennedy mentioned.
Be sure to check out the Knowledgebase for helpful articles and solutions!
-
operations_asavie
- Posts: 33
- Joined: Tue Dec 22, 2015 7:07 am
Re: Config Error
Hi,
Host is C8T14Y1.mgmt, have configured the check settings (see image attached) similar to all other hosts that are not causing any errors.
The host is a Dell server.
Anything else you need, please let me know as I need to get this resolved ASAP.
Host is C8T14Y1.mgmt, have configured the check settings (see image attached) similar to all other hosts that are not causing any errors.
The host is a Dell server.
Anything else you need, please let me know as I need to get this resolved ASAP.
You do not have the required permissions to view the files attached to this post.
Re: Config Error
Did you try applying configuration after modifying this host under the CCM, and saving the changes? Do you see any config errors when you run the Write Config tool?
CCM->Tools->Write Config Files->Write->Verify
Can you show us the configs of the "C8T14Y1.mgmt" host, and the "linux-server" template?
CCM->Tools->Write Config Files->Write->Verify
Can you show us the configs of the "C8T14Y1.mgmt" host, and the "linux-server" template?
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
operations_asavie
- Posts: 33
- Joined: Tue Dec 22, 2015 7:07 am
Re: Config Error
When using the Write Config files tool CCM I am seeing all config files verified and then successfully written.
However, when I've gone to use the standard "Apply Configuration" the error below still persists. I've even gone so far as deleting all services pertaining to that particular host and then deleting the host but even then when I try to apply the configuration......I still get the same error, even though the host C8T14Y1.mgmt.cfg has been deleted.
Error: Invalid max_check_attempts value for host 'C8T14Y1.mgmt'
Error: Could not register host (config file '/usr/local/nagios/etc/hosts/C8T14Y1.mgmt.cfg', starting on line 16)
However, when I've gone to use the standard "Apply Configuration" the error below still persists. I've even gone so far as deleting all services pertaining to that particular host and then deleting the host but even then when I try to apply the configuration......I still get the same error, even though the host C8T14Y1.mgmt.cfg has been deleted.
Error: Invalid max_check_attempts value for host 'C8T14Y1.mgmt'
Error: Could not register host (config file '/usr/local/nagios/etc/hosts/C8T14Y1.mgmt.cfg', starting on line 16)
Re: Config Error
How are you deleting the services? You're making sure to do it in CCM instead of from the command line, correct?
Former Nagios Employee.
me.
me.
-
operations_asavie
- Posts: 33
- Joined: Tue Dec 22, 2015 7:07 am
Re: Config Error
Yes, that's correct. I CCM, selecting "Services" in Monitoring then deleting all services. Then selecting "Hosts" in Monitoring and deleting all the hosts. When I do this, the Apply Configuration fails due the error I've outlined.
-
operations_asavie
- Posts: 33
- Joined: Tue Dec 22, 2015 7:07 am
Re: Config Error
I need a resolution to this ASAP. It's been two days since I've raised this issue with you.
Right now, I have only one service in operation on one host but despite this and the C8T14Y1.mgmt host being deleted. It's still presents an Error when Applying a Configuration.
Can you please get back to me on this right away?
Right now, I have only one service in operation on one host but despite this and the C8T14Y1.mgmt host being deleted. It's still presents an Error when Applying a Configuration.
Can you please get back to me on this right away?
You do not have the required permissions to view the files attached to this post.