Page 1 of 1

Configuration Verification Failed

Posted: Fri Aug 31, 2018 9:50 am
by beanpowered
I'm unable to save my configurations in CCM.
It lists 3 errors, but I have reviewed the listed files and can't see anything wrong in their configuration.

Error: Template '' specified in contact definition could not be not found (config file '/usr/local/nagios/etc/contacts.cfg', starting on line 96)
Error: Invalid max_check_attempts value for host 'A2C2-10G-8164F'
Error: Could not register host (config file '/usr/local/nagios/etc/hosts/A2C2-10G-8164F.cfg', starting on line 16)

Nagios XI version: 5.5.3
XI installed from: manual
XI UUID: 054c8b49-2983-4a34-af93-c5a88ccb6c27
Release info: nagios 2.6.32-696.30.1.el6.x86_64 x86_64
CentOS release 6.10 (Final)
Gnome is not installed

Any help would be appreciated.

--Jorge.

Re: Configuration Verification Failed

Posted: Fri Aug 31, 2018 10:08 am
by lmiltchev
Check to see what template is listed on/around line 96 in the /usr/local/nagios/etc/contacts.cfg. Do you have this template defined (CCM > Templates > Contact Templates)?

Go to the CCM > Hosts > A2C2-10G-8164F > Edit > Check Setting, type a valid max_check_attempts value (and check_interval and retry_interval if needed). Save.

Go to CCM > Tools > Config File Management, and click on Write Configs, then on Verify Files. If you don't see any errors, apply configuration. If you do see errors, post them on the forum.

Also, you may need to review the latest failed configuration snapshot for further troubleshooting. You can download it by going to CCM > Quick Tools > Configuration Snapshots. "Failed" snapshots are colored in red. See which one is the latest failed, and download it to review the configs.

Re: Configuration Verification Failed

Posted: Fri Aug 31, 2018 2:36 pm
by beanpowered
Thank you for the quick response.
I reviewed the template referred by the contact on line 96. It is defined, and it is the same template used by most other contacts.
The contact has been in the system for over 2 years. (As well as the template).

As far as the host, it also belongs to a template, that belongs to a template where those parameters are specified.
I guess I'll try setting those specifically on the host.

--Jorge.

Re: Configuration Verification Failed

Posted: Fri Aug 31, 2018 2:56 pm
by npolovenko
@beanpowered , In XI web interface please go to Configure -> Core Configurations Manager, then click on Tools -> Config File Management in the left column. Then perform the following actions in order:
1)Write
2)Delete
3)Write
4)Verify

Let me know if you see the same three errors or different ones.

Could you send us your system profile?
Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and upload it to a cloud storage of your choice. You can share a link with me in a personal message.
After you upload the profile please post something in this thread to bring it up in the support queue.

Re: Configuration Verification Failed

Posted: Wed Sep 05, 2018 12:55 pm
by beanpowered
Thank you.
That process solved the problem.

--Jorge