Configuration verification failed

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nottheadmin
Posts: 53
Joined: Thu Dec 19, 2013 9:51 am
Location: Amsterdam, NL

Configuration verification failed

Post by nottheadmin »

All of a sudden, When trying to add another host using the WMI monitoring wizard, The configuration wont take.
Configuration submitted for processing...
Waiting for configuration verification........
Configuration verification failed.
I have followed this guide - http://support.nagios.com/wiki/index.ph ... n_Problems.

Rand a config check

Code: Select all

[root@localhost scripts]# ./reconfigure_nagios.sh &> reconfig.txt
[root@localhost scripts]# less reconfig.txt

Running pre-flight check on configuration data...

Checking services...
        Checked 648 services.
Checking hosts...
        Checked 113 hosts.
Checking host groups...
        Checked 6 host groups.
Checking service groups...
        Checked 0 service groups.
Checking contacts...
Error: Contact 'Matt' has no service notification commands defined!
Error: Contact 'Matt' has no host notification commands defined!
        Checked 3 contacts.
Checking contact groups...
        Checked 2 contact groups.
Checking service escalations...
        Checked 0 service escalations.
Checking service dependencies...
        Checked 0 service dependencies.
Checking host escalations...
        Checked 0 host escalations.
Checking host dependencies...
        Checked 0 host dependencies.
Checking commands...
        Checked 108 commands.
Checking time periods...
        Checked 8 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors:   2

***> One or more problems was encountered while running the pre-flight check...

     Check your configuration file(s) to ensure that they contain valid
     directives and data defintions.  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.
RET: 254
/usr/local/nagiosxi/nom/checkpoints/nagioscore/errors /usr/local/nagiosxi/scripts
tar: Removing leading `/' from member names
/usr/local/nagiosxi/scripts
LATEST NOM SNAPSHOT: /usr/local/nagiosxi/nom/checkpoints/nagioscore/1392807423.tar.gz
/ /usr/local/nagiosxi/scripts
RESTORING NOM SNAPSHOT : /usr/local/nagiosxi/nom/checkpoints/nagioscore/1392807423.tar.gz
/usr/local/nagiosxi/scripts
RESETTING PERMS
SETUID ROOT OK
reconfig.txt (END)
Appears to be a problem with the contact 'Matt'. That is me but I cannot recall where i input this information???
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Configuration verification failed

Post by abrist »

Most users add templates to the contacts. Is this contact linked to an xi user? (named the same as an xi user)
If it is, you should configure the xi notification handlers for your contact or add the proper template.

For user configured contacts:
Use the template "xi_contact_generic" or:

Configure the notification commands on the contact.
Go to Configure --> CCM --> Contacts --> Click contact --> Click alert settings tab.
Click "Manage host notification commands" and add "xi_host_notification_handler" (this should be the only one added).
Click "Manage service notification commands" and add "xi_service_notification_handler" (this should be the only one added).

For contacts without user configuration:
Use the template "generic-contact" or:

Configure the notification commands on the contact.
Go to Configure --> CCM --> Contacts --> Click contact --> Click alert settings tab.
Click "Manage host notification commands" and add "notify-host-by-emailr" (this should be the only one added).
Click "Manage service notification commands" and add "notify-service-by-email" (this should be the only one added).
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
nottheadmin
Posts: 53
Joined: Thu Dec 19, 2013 9:51 am
Location: Amsterdam, NL

Re: Configuration verification failed

Post by nottheadmin »

Yes that solved it, good to know that adding a contact but not configuring the templates will break it.

Thanks for your help!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Configuration verification failed

Post by tmcdonald »

Going to lock this up now. Feel free to open another thread if you have issues.
Former Nagios employee
Locked