mirror of https://github.com/Icinga/icinga2.git
28 lines
516 B
Plaintext
28 lines
516 B
Plaintext
object Host "6968-server" {
|
|
import "test-generic-host"
|
|
address = "127.0.0.1"
|
|
}
|
|
|
|
object Service "6968-test" {
|
|
import "test-generic-service"
|
|
|
|
host_name = "6968-server"
|
|
check_command = "6968-check_vmware"
|
|
vars.vmware_check = "vCenter_License_Status"
|
|
}
|
|
|
|
object CheckCommand "6968-check_vmware" {
|
|
command = [ PluginDir + "/check_vmware.pl" ]
|
|
|
|
arguments = {
|
|
"--server" = "$address$"
|
|
"--username" = "***"
|
|
"--password" = "***"
|
|
"--check" = {
|
|
set_if = "$vmware_check$"
|
|
}
|
|
}
|
|
}
|
|
|
|
|