Page 1 of 1

Bulk Host Cloning wizard wigging out on me!

Posted: Tue Jul 29, 2014 2:06 pm
by BanditBBS
Ok, so using the bulk host cloning wizard like I have many many times before.

I select the host and then all services, paste the csv, hit next then finish. The new hosts are created as well as all the services. However, it fills nothing out for the check command and ARGs. None of them are filled out and the apply config fails.

Re: Bulk Host Cloning wizard wigging out on me!

Posted: Tue Jul 29, 2014 2:58 pm
by lmiltchev
What type of host are you cloning? Can you post the config of the host, that you use as a "template" for the bulk host cloning wizard?

Re: Bulk Host Cloning wizard wigging out on me!

Posted: Tue Jul 29, 2014 3:37 pm
by BanditBBS
Host:

Code: Select all

define host {
        host_name                       CDM Checks - Linux
        use                             generic-host
        alias                           Template for new linux sevrers
        address                         localhost
        register                        1
        }
Services:

Code: Select all

define service {
        host_name                       CDM Checks - Linux
        service_description             CPU
        use                             generic-service
        check_command                   check_by_ssh_cpu!90,70,70!95,80,80!!!!!!
        check_period                    xi_timeperiod_24x7
        notification_interval           60
        notification_period             xi_timeperiod_24x7
        _xiwizard                       sshproxy
        register                        1
        }

define service {
        host_name                       CDM Checks - Linux
        service_description             Cron Scheduler
        use                             generic-service
        check_command                   check_by_ssh_init_service!crond!!!!!!!
        check_period                    xi_timeperiod_24x7
        notification_interval           60
        notification_period             xi_timeperiod_24x7
        _xiwizard                       sshproxy
        register                        1
        }

define service {
        host_name                       CDM Checks - Linux
        service_description             Disk
        use                             generic-service
        check_command                   check_by_ssh_disk!10%!5%!-e!!!!!
        check_period                    xi_timeperiod_24x7
        notification_interval           60
        notification_period             xi_timeperiod_24x7
        _xiwizard                       sshproxy
        register                        1
        }

define service {
        host_name                       CDM Checks - Linux
        service_description             Load
        use                             generic-service
        check_command                   check_by_ssh_load!35,30,25!43,38,33!!!!!!
        check_period                    xi_timeperiod_24x7
        notification_interval           60
        notification_period             xi_timeperiod_24x7
        _xiwizard                       sshproxy
        register                        1
        }

define service {
        host_name                       CDM Checks - Linux
        service_description             Log File
        use                             generic-service
        check_command                   check_by_ssh_log!/var/log/messages!Error!most_recent!!!!!
        check_period                    xi_timeperiod_24x7
        notification_interval           60
        notification_period             xi_timeperiod_24x7
        _xiwizard                       sshproxy
        register                        1
        }

define service {
        host_name                       CDM Checks - Linux
        service_description             Memory
        use                             generic-service
        check_command                   check_by_ssh_memory!10!5!!!!!!
        check_period                    xi_timeperiod_24x7
        notification_interval           60
        notification_period             xi_timeperiod_24x7
        _xiwizard                       sshproxy
        register                        1
        }

define service {
        host_name                       CDM Checks - Linux
        service_description             NFS
        use                             generic-service
        check_command                   check_by_ssh_nfs!!!!!!!!
        check_period                    xi_timeperiod_24x7
        notification_interval           60
        notification_period             xi_timeperiod_24x7
        _xiwizard                       sshproxy
        register                        1
        }

define service {
        host_name                       CDM Checks - Linux
        service_description             Read-Only File System
        use                             generic-service
        check_command                   check_by_ssh_rofs!!!!!!!!
        check_period                    xi_timeperiod_24x7
        notification_interval           60
        notification_period             xi_timeperiod_24x7
        _xiwizard                       sshproxy
        register                        1
        }

define service {
        host_name                       CDM Checks - Linux
        service_description             Swap
        use                             generic-service
        check_command                   check_by_ssh_swap!80%!70%!!!!!!
        check_period                    xi_timeperiod_24x7
        notification_interval           60
        notification_period             xi_timeperiod_24x7
        _xiwizard                       sshproxy
        register                        1
        }

define service {
        host_name                       CDM Checks - Linux
        service_description             Total Processes
        use                             generic-service
        check_command                   check_by_ssh_procs!2900!3200!!!!!!
        check_period                    xi_timeperiod_24x7
        notification_interval           60
        notification_period             xi_timeperiod_24x7
        _xiwizard                       sshproxy
        register                        1
        }

define service {
        host_name                       CDM Checks - Linux
        service_description             VNC 01
        use                             generic-service
        check_command                   check_vnc!01!!!!!!!
        check_period                    xi_timeperiod_24x7
        notification_interval           60
        notification_period             xi_timeperiod_24x7
        _xiwizard                       sshproxy
        register                        1
        }

define service {
        host_name                       CDM Checks - Linux
        service_description             Zombie Processes
        use                             generic-service
        check_command                   check_by_ssh_procs!5!10!-s Z!!!!!
        check_period                    xi_timeperiod_24x7
        notification_interval           60
        notification_period             xi_timeperiod_24x7
        _xiwizard                       sshproxy
        register                        1
        }
More Testing - It is something on the services that is doing it. I can copy another host and services. I can also copy this host with no service. Still investigating

Re: Bulk Host Cloning wizard wigging out on me!

Posted: Wed Jul 30, 2014 8:09 am
by WillemDH
Bandit,

I had a similar issue with the bulk host cloning wizard. Seems it had also something to do with one service that was connected to a source host. After recreating this source host with it's services, it worked normally again.

Grtz

Re: Bulk Host Cloning wizard wigging out on me!

Posted: Wed Jul 30, 2014 8:36 am
by BanditBBS
Thanks Willem. I just deleted the host as I had it setup just for a template and then re-wrote the directions for my team to use a different "real" host. I spent nearly all day yesterday trying to troubleshoot this to find the root cause and just couldn't. I made it identical to other hosts that I could copy and nothing, just nuts!

As I am typing this, I do recall, I used the renaming tool on the host, I wonder if that was the cause of the issue! Someone at nagios should test that :) !


Feel free to lock this up!

Re: Bulk Host Cloning wizard wigging out on me!

Posted: Wed Jul 30, 2014 11:46 am
by tmcdonald
BanditBBS wrote:As I am typing this, I do recall, I used the renaming tool on the host, I wonder if that was the cause of the issue! Someone at nagios should test that :)
Impossible! We never make mistakes!

I'll take a look. Closing thread now.