object CheckCommand "cs-nagios_check_systemvm-memory" { import "plugin-check-command" command = [ "<%= bin_path -%>cs-nagios check system_vm memory" ] arguments = { "-H" = "$address$" "-w" = "80" "-c" = "90" "--ssh-key" = "<%= ssh_key %>" "--ssh-port" = "<%= ssh_port %>" "--config" = "<%= config_file %>" } } object CheckCommand "cs-nagios_check_systemvm-cpu" { import "plugin-check-command" command = [ "<%= bin_path -%>cs-nagios check system_vm cpu" ] arguments = { "-H" = "$address$" "-w" = "80" "-c" = "90" "--ssh-key" = "<%= ssh_key %>" "--ssh-port" = "<%= ssh_port %>" "--config" = "<%= config_file %>" } } object CheckCommand "cs-nagios_check_systemvm-network" { import "plugin-check-command" command = [ "<%= bin_path -%>cs-nagios check system_vm network" ] arguments = { "-H" = "$address$" "-w" = "80" "-c" = "90" "--if-speed" = "<%= if_speed %>" "--ssh-key" = "<%= ssh_key %>" "--ssh-port" = "<%= ssh_port %>" "--config" = "<%= config_file %>" } } object CheckCommand "cs-nagios_check_systemvm-fsrw" { import "plugin-check-command" command = [ "<%= bin_path -%>cs-nagios check system_vm fs_rw" ] arguments = { "-H" = "$address$" "-w" = "80" "-c" = "90" "--ssh-key" = "<%= ssh_key %>" "--ssh-port" = "<%= ssh_port %>" "--config" = "<%= config_file %>" } } object CheckCommand "cs-nagios_check_systemvm-diskusage" { import "plugin-check-command" command = [ "<%= bin_path -%>cs-nagios check system_vm disk_usage" ] arguments = { "-H" = "$address$" "-w" = "80" "-c" = "90" "-P" = "/var/" "--ssh-key" = "<%= ssh_key %>" "--ssh-port" = "<%= ssh_port %>" "--config" = "<%= config_file %>" } } object CheckCommand "cs-nagios_check_systemvm-secstorrw" { import "plugin-check-command" command = [ "<%= bin_path -%>cs-nagios check system_vm secstor_rw" ] arguments = { "-H" = "$address$" "-w" = "80" "-c" = "90" "-P" = "/var/" "--ssh-key" = "<%= ssh_key %>" "--ssh-port" = "<%= ssh_port %>" "--config" = "<%= config_file %>" } } apply Service "Cloudstack System VM Memory" { import "generic-service-pnp" check_command = "cs-nagios_check_systemvm-memory" assign where "CloudstackSystemVm" in host.groups } apply Service "Cloudstack System VM CPU" { import "generic-service-pnp" check_command = "cs-nagios_check_systemvm-cpu" assign where "CloudstackSystemVm" in host.groups } apply Service "Cloudstack System VM Network" { import "generic-service-pnp" check_command = "cs-nagios_check_systemvm-network" assign where "CloudstackSystemVm" in host.groups } apply Service "Cloudstack System VM FS r/w" { import "generic-service-pnp" check_command = "cs-nagios_check_systemvm-fsrw" assign where "CloudstackSystemVm" in host.groups } apply Service "Cloudstack System VM DiskUsageRoot" { import "generic-service-pnp" check_command = "cs-nagios_check_systemvm-diskusage" assign where "CloudstackSystemVm" in host.groups } apply Service "Cloudstack System VM DiskUsageVar" { import "generic-service-pnp" check_command = "cs-nagios_check_systemvm-diskusage" assign where "CloudstackSystemVm" in host.groups } apply Service "Cloudstack SSVM SecondaryStorageRW" { import "generic-service-pnp" check_command = "cs-nagios_check_systemvm-secstorrw" assign where "CloudstackSystemVm" in host.groups }