Page 1 of 2
Clone did not clone all services
Posted: Tue Apr 01, 2014 10:58 am
by dianeghir
Hi
I tried to clone an existing Host, selected all services but 2 services were not cloned. Before I ran the cloning wizzard, I noticed that most of the services were in Unconfigured Objects and then after I ran the clone I found that 2 additional services were in Unconfigured Objects.
Why didn't the cloning wizzard clone ALL services?
thanks
diane
Re: Clone did not clone all services
Posted: Tue Apr 01, 2014 12:38 pm
by slansing
Were some of those services passive ones? If so, this would make sense. I don't understand what you are talking about when mentioning Unconfigured Objects, you should really be cloning active checks, as passive checks are sent to nagios stamped with the host they came from, and the service information that would reside in that passive data, so cloning them to a completely different host won't likely work the way you want it to.
Re: Clone did not clone all services
Posted: Tue Apr 01, 2014 4:58 pm
by dianeghir
42 of 44 checks are PASSIVE. All checks were cloned except for 2 PASSIVE checks, so 40 were cloned correctly. This has happened with (I believe) every host we have added this way.
I want to be able to use the cloning wizard to clone services which have different settings for things like Notification Period, Notification Delay, Retry Interval and Max Check Attempts.
Just wondering why it would work for MOST, but not ALL.
thanks
diane
Re: Clone did not clone all services
Posted: Tue Apr 01, 2014 5:05 pm
by abrist
Any naming differences/anomalies with the 2 that did not clone? Are those cloned services not individually configured, but instead inherited checks?
Re: Clone did not clone all services
Posted: Wed Apr 02, 2014 9:44 am
by dianeghir
No naming diffs and not inherited checks. The only thing I've noticed is that the 2 checks that were not cloned have very similar names to ones that were cloned correctly.
cloned checks uncloned checks
/watchdog /watchdogNotify
TCP HTTP TCP HTTPS
These are the main 2 that don't get cloned but sometimes there is another one also.
Any ideas?
thanks
diane
Re: Clone did not clone all services
Posted: Wed Apr 02, 2014 4:07 pm
by scottwilkerson
Do these services have a different config name that the others?
Re: Clone did not clone all services
Posted: Thu Apr 03, 2014 11:20 am
by dianeghir
Not sure what you mean by 'different config' name. As far as I know they are all the same.
diane
Re: Clone did not clone all services
Posted: Thu Apr 03, 2014 1:35 pm
by sreinhardt
What he means, is that generally services that are applied to a host will keep the hostname for the config name in /usr/local/nagios/etc/services/. He wanted to know if the services that do not copy are separate or named differently from the config that contain the services that do copy.
Re: Clone did not clone all services
Posted: Tue Apr 08, 2014 10:27 am
by dianeghir
Here is the services file for the host I am cloning
Code: Select all
define service {
host_name hostname.net
service_description /watchdog
use a4_host_services
check_command check_dummy!2!"No messages received from watchdog in over 5 minutes"!!!!!!
is_volatile 0
initial_state o
max_check_attempts 1
check_interval 1
retry_interval 1
active_checks_enabled 0
passive_checks_enabled 1
check_period 24x7
obsess_over_service 0
check_freshness 1
freshness_threshold 300
event_handler_enabled 0
flap_detection_enabled 0
process_perf_data 0
retain_status_information 0
retain_nonstatus_information 0
notification_interval 5
first_notification_delay 0
notification_period 24x7
notification_options w,c,
notifications_enabled 1
contact_groups A4 Admin Group
_xiwizard passiveobject
register 1
}
define service {
host_name hostname.net
service_description /watchdogNotify
use a4_host_services
is_volatile 0
initial_state o
max_check_attempts 1
check_interval 1
retry_interval 1
active_checks_enabled 0
passive_checks_enabled 1
check_period 24x7
obsess_over_service 0
check_freshness 0
event_handler_enabled 0
flap_detection_enabled 0
process_perf_data 0
retain_status_information 0
retain_nonstatus_information 0
notification_interval 5
first_notification_delay 0
notification_period 24x7
notification_options w,c,
notifications_enabled 1
contact_groups A4 Admin Group,A4 Developers Group
_xiwizard passiveobject
register 1
}
define service {
host_name hostname.net
service_description TCP HTTP
use a4_host_services
is_volatile 0
initial_state o
max_check_attempts 5
check_interval 1
retry_interval 1
active_checks_enabled 0
passive_checks_enabled 1
check_period 24x7
obsess_over_service 0
check_freshness 0
event_handler_enabled 0
flap_detection_enabled 0
process_perf_data 1
retain_status_information 0
retain_nonstatus_information 0
notification_interval 60
first_notification_delay 5
notification_period 24x7
notification_options w,c,r,
notifications_enabled 1
contact_groups A4 Admin Group
_xiwizard passiveobject
register 1
}
define service {
host_name hostname.net
service_description TCP HTTPS
use a4_host_services
is_volatile 0
initial_state o
max_check_attempts 5
check_interval 1
retry_interval 1
active_checks_enabled 0
passive_checks_enabled 1
check_period 24x7
obsess_over_service 0
check_freshness 0
event_handler_enabled 0
flap_detection_enabled 0
process_perf_data 1
retain_status_information 0
retain_nonstatus_information 0
notification_interval 60
first_notification_delay 5
notification_period 24x7
notification_options w,c,r,
notifications_enabled 1
contact_groups A4 Admin Group
_xiwizard passiveobject
register 1
}
Re: Clone did not clone all services
Posted: Tue Apr 08, 2014 12:34 pm
by lmiltchev
Are you sure that you selected ALL of the "template" services step 3 of the Bulk Host Cloning and Import Monitoring Wizard?
I was not able to recreate the issue. I set up a dummy host to be used as a "template" host, added the same services you have, and cloned it. All of the "new" hosts have the same services as the original host.
Template Host:
example1.PNG
Cloned Hosts:
example2.PNG
example3.PNG