Configuration Verification Failed

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
beanpowered
Posts: 3
Joined: Mon Aug 06, 2018 3:05 pm

Configuration Verification Failed

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Configuration Verification Failed

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
beanpowered
Posts: 3
Joined: Mon Aug 06, 2018 3:05 pm

Re: Configuration Verification Failed

Post 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.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Configuration Verification Failed

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
beanpowered
Posts: 3
Joined: Mon Aug 06, 2018 3:05 pm

Re: Configuration Verification Failed

Post by beanpowered »

Thank you.
That process solved the problem.

--Jorge
Locked