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
problem while doing check configuration in GUI
-
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
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
Configure -> CCM -> Services
and then
Configure -> CCM -> Hosts
then
Apply Configuration
Re: problem while doing check configuration in GUI
Thanks for your responce.
Can i delete them though command line.Since gui is not responding properly.
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
You could use the method outlined in page 3 of this document
http://library.nagios.com/library/produ ... -nagios-xi
http://library.nagios.com/library/produ ... -nagios-xi
Re: problem while doing check configuration in GUI
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
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
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)
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
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
It containg very hige contacts information
Re: problem while doing check configuration in GUI
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 }
# 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
We will need the contact on line 1237 of that file.