Clone did not clone all services
Clone did not clone all services
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
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
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Clone did not clone all services
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
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
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
Any naming differences/anomalies with the 2 that did not clone? Are those cloned services not individually configured, but instead inherited checks?
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.
"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.
Re: Clone did not clone all services
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
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
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Clone did not clone all services
Do these services have a different config name that the others?
Re: Clone did not clone all services
Not sure what you mean by 'different config' name. As far as I know they are all the same.
diane
diane
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Clone did not clone all services
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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: Clone did not clone all services
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
}
Last edited by abrist on Tue Apr 08, 2014 10:36 am, edited 1 time in total.
Reason: code wraps save scroll wheels :)
Reason: code wraps save scroll wheels :)
Re: Clone did not clone all services
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:
Cloned Hosts:
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:
Cloned Hosts:
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!