####### # the following variables are used within our definitions # they are defined in recource.cfg like this: # # $USER9$=full.qualified.domain.name.of.my.vmware.server # $USER10$=my1st-vmware # $USER11$=my2nd-vmware # $USER12$=/usr/local/nagios/libexec # ####### # check VMWARE via perl API # command definition define command { command_name check_vmware3 command_line $USER1$/check_vmware3.pl $ARG1$ } # check VMWARE via perl API # command definition for remote check via ssh define command { command_name check_ssh_vmware3 command_line $USER1$/check_by_ssh -t 60 -H $HOSTADDRESS$ -C "$USER12$/check_vmware3.pl $ARG1$" } ## check VMWARE via perl API ## service definition to check the VMware Host #define service { # use generic-service # host_name vmware-server # service_description generic vmware host # check_command check_vmware3!--server $HOSTADDRESS$ --username nagios-ro --password nagios-ro --protocol https --portnumber 8333 --host $USER9$ --ignore . --ensure $USER10$,$USER11$ #} # ## check VMWARE via perl API ## service definition to check the VMware Guest #define service { # use generic-service # host_name vmware-server # service_description vm one-specific-virtual-machine # check_command check_vmware3!--server $HOSTADDRESS$ --username nagios-ro --password nagios-ro --protocol https --portnumber 8333 --host $USER9$ --vmname $USER10$ #} # check VMWARE via perl API # service definition to check the VMware Host remote via ssh define service { use generic-service host_name vmware-server service_description generic vmware host check_command check_ssh_vmware3!--server $HOSTADDRESS$ --username nagios-ro --password nagios-ro --protocol https --portnumber 8333 --host $USER9$ --ignore . --ensure one_not_existing_vm,$USER10$,$USER11$ } # check VMWARE via perl API # service definition to check the VMware Guest remote via ssh define service { use generic-service host_name vmware-server service_description vm one-specific-virtual-machine check_command check_ssh_vmware3!--server $HOSTADDRESS$ --username nagios-ro --password nagios-ro --protocol https --portnumber 8333 --host $USER9$ --vmname $USER10$ }