Bulk cloning wizard fails
Posted: Mon Aug 13, 2018 10:00 am
Hi
It seems the system will not let me use the bulk cloning wizard on hosts
I have a master host as a template and I use it to clone when i have multiple hosts
it's failing now with the error
Error: Invalid max_check_attempts value for host 'lvsprdvelapp01.gspt.net'
Error: Could not register host (config file '/usr/local/nagios/etc/hosts/lvsprdvelapp01.gspt.net.cfg', starting on line 16)
The thing is my template has all the needed entries
define host {
host_name aaa_redhat7_ssh_syslog_master
use xiwizard_ncpa_host
address 10.49.184.40
hostgroups Basic Linux Checks Redhat 7_rsyslogd_needs_ssh,Uptime 1
max_check_attempts 5
check_interval 5
retry_interval 1
active_checks_enabled 1
check_period xi_timeperiod_24x7
event_handler notify-host-by-email
process_perf_data 1
retain_status_information 1
contact_groups admins
notification_interval 60
notification_period xi_timeperiod_24x7
notification_options d,u,
notifications_enabled 1
icon_image ncpa.png
statusmap_image ncpa.png
_xiwizard ncpa
register 1
}
When I use the wizard, it only does a couple of lines
define host {
host_name prdvelapp01.xxxx.net
use generic-host
address 10.49.165.24
register 1
}
If i manually copy the template, and add the host by hand, everything works just fine
define host {
host_name prdvelapp01.xxxx.net
use xiwizard_ncpa_host
address 10.49.165.24
hostgroups Basic Linux Checks Redhat 7_rsyslogd_needs_ssh,Uptime 1
max_check_attempts 5
check_interval 5
retry_interval 1
active_checks_enabled 1
check_period xi_timeperiod_24x7
event_handler notify-host-by-email
process_perf_data 1
retain_status_information 1
contact_groups admins
notification_interval 60
notification_period xi_timeperiod_24x7
notification_options d,u,
notifications_enabled 1
icon_image ncpa.png
statusmap_image ncpa.png
_xiwizard ncpa
register 1
}
The problem comes from that i need to add 30 hosts for my one ticket
It seems the system will not let me use the bulk cloning wizard on hosts
I have a master host as a template and I use it to clone when i have multiple hosts
it's failing now with the error
Error: Invalid max_check_attempts value for host 'lvsprdvelapp01.gspt.net'
Error: Could not register host (config file '/usr/local/nagios/etc/hosts/lvsprdvelapp01.gspt.net.cfg', starting on line 16)
The thing is my template has all the needed entries
define host {
host_name aaa_redhat7_ssh_syslog_master
use xiwizard_ncpa_host
address 10.49.184.40
hostgroups Basic Linux Checks Redhat 7_rsyslogd_needs_ssh,Uptime 1
max_check_attempts 5
check_interval 5
retry_interval 1
active_checks_enabled 1
check_period xi_timeperiod_24x7
event_handler notify-host-by-email
process_perf_data 1
retain_status_information 1
contact_groups admins
notification_interval 60
notification_period xi_timeperiod_24x7
notification_options d,u,
notifications_enabled 1
icon_image ncpa.png
statusmap_image ncpa.png
_xiwizard ncpa
register 1
}
When I use the wizard, it only does a couple of lines
define host {
host_name prdvelapp01.xxxx.net
use generic-host
address 10.49.165.24
register 1
}
If i manually copy the template, and add the host by hand, everything works just fine
define host {
host_name prdvelapp01.xxxx.net
use xiwizard_ncpa_host
address 10.49.165.24
hostgroups Basic Linux Checks Redhat 7_rsyslogd_needs_ssh,Uptime 1
max_check_attempts 5
check_interval 5
retry_interval 1
active_checks_enabled 1
check_period xi_timeperiod_24x7
event_handler notify-host-by-email
process_perf_data 1
retain_status_information 1
contact_groups admins
notification_interval 60
notification_period xi_timeperiod_24x7
notification_options d,u,
notifications_enabled 1
icon_image ncpa.png
statusmap_image ncpa.png
_xiwizard ncpa
register 1
}
The problem comes from that i need to add 30 hosts for my one ticket