Page 1 of 2

problem while doing check configuration in GUI

Posted: Thu Aug 16, 2012 10:08 am
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

Re: problem while doing check configuration in GUI

Posted: Thu Aug 16, 2012 10:11 am
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

Re: problem while doing check configuration in GUI

Posted: Thu Aug 16, 2012 10:16 am
by ravish78
Thanks for your responce.

Can i delete them though command line.Since gui is not responding properly.

Re: problem while doing check configuration in GUI

Posted: Thu Aug 16, 2012 10:20 am
by scottwilkerson
You could use the method outlined in page 3 of this document

http://library.nagios.com/library/produ ... -nagios-xi

Re: problem while doing check configuration in GUI

Posted: Fri Aug 17, 2012 8:51 am
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

Re: problem while doing check configuration in GUI

Posted: Fri Aug 17, 2012 9:19 am
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)

Re: problem while doing check configuration in GUI

Posted: Fri Aug 17, 2012 9:26 am
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).

Re: problem while doing check configuration in GUI

Posted: Thu Aug 30, 2012 12:34 pm
by ravish78
It containg very hige contacts information

Re: problem while doing check configuration in GUI

Posted: Thu Aug 30, 2012 12:35 pm
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 }

Re: problem while doing check configuration in GUI

Posted: Thu Aug 30, 2012 1:46 pm
by scottwilkerson
We will need the contact on line 1237 of that file.