problem while doing check configuration in GUI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

problem while doing check configuration in GUI

Post by ravish78 »

I am trying to import the files from nagios core to nagios xi
Manulaly I am able to configure the hosts.
While using import prep tool.
I am getting errors while performing check configurations.How do I delete the old configuration and perform a new configuration
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: problem while doing check configuration in GUI

Post by scottwilkerson »

If you are trying to delete hosts already in XI you would delete then through
Configure -> CCM -> Services
and then
Configure -> CCM -> Hosts
then
Apply Configuration
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: problem while doing check configuration in GUI

Post by ravish78 »

Thanks for your responce.

Can i delete them though command line.Since gui is not responding properly.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: problem while doing check configuration in GUI

Post by scottwilkerson »

You could use the method outlined in page 3 of this document

http://library.nagios.com/library/produ ... -nagios-xi
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: problem while doing check configuration in GUI

Post by ravish78 »

I configured again this time I could overcome some problems and finally stuck here.
Not sure how to proceed and where to define 'check_host_alive' .

Below is the output after compilation
-------------------------------------------------------------------------------------------------------------------
Read object config files okay...
Running pre-flight check on configuration data...
Checking services...
Checked 8 services.
Checking hosts...
Error: Host check command 'check_host_alive' specified for host 'Enterprise_Search' is not defined anywhere!
Error: Host check command 'check_host_alive' specified for host 'Gbrend01as016.eu.xerox.net' is not defined anywhere!
.
.
.
.
Error: Host check command 'check_host_alive' specified for host 'xdcs11' is not defined anywhere!
Error: Host check command 'check_host_alive' specified for host 'ximeaswebdr1' is not defined anywhere!
Error: Host check command 'check_host_alive' specified for host 'xww.support.xerox.com' is not defined anywhere!
Checked 191 hosts.
Checking host groups...
Checked 8 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Error: Service notification period 'xi_timeperiod_none' specified for contact 'xi_default_contact' is not defined anywhere!
Error: Host notification period 'xi_timeperiod_none' specified for contact 'xi_default_contact' is not defined anywhere!
Checked 160 contacts.
Checking contact groups...
Checked 121 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 75 commands.
Checking time periods...
Checked 39 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: 199
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: problem while doing check configuration in GUI

Post by ravish78 »

Got this one resolved by importing old timperiods.cfg from /usr/local/nagios/etc/cfgprep/orig to /usr/local/nagios/etc/cfgprep and then recompiling again.

Now getting problem with contacts file.
Error: Template '' specified in contact definition could not be not found (config file '/usr/local/nagios/etc/contacts.cfg', starting on line 1237)
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: problem while doing check configuration in GUI

Post by mguthrie »

Can you access the Core Config Manager->Contacts page, and click the download button and post the config that it's creating? (You may want to remove real email addresses).
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: problem while doing check configuration in GUI

Post by ravish78 »

It containg very hige contacts information
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: problem while doing check configuration in GUI

Post by ravish78 »

Date: 2012-08-30 17:33:18
# Version: Nagios 3.x config file
#
example of once conatct is as below


# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios QL will overwite all manual settings during the next update
#
###############################################################################

define contact {
contact_name aalthi
alias Anand chinni
host_notification_period 24x7
service_notification_period 24x7
host_notification_options d,r
service_notification_options c,r
host_notification_commands host-notify-by-email
service_notification_commands notify-by-email
email }
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: problem while doing check configuration in GUI

Post by scottwilkerson »

We will need the contact on line 1237 of that file.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked