object CheckCommand "cs-nagios_check-memory" { import "plugin-check-command" command = [ "<%= bin_path -%>cs-nagios", "check", "router" ,"memory" ] arguments = { "-H" = "$address$" "-w" = "80" "-c" = "90" "--ssh_key" = "<%= ssh_key %>" "--ssh-port" = "<%= ssh_port %>" "--config" = "<%= config_file %>" } } object CheckCommand "cs-nagios_check-cpu" { import "plugin-check-command" command = [ "<%= bin_path -%>cs-nagios", "check", "router", "cpu" ] arguments = { "-H" = "$address$" "-w" = "80" "-c" = "90" "--ssh_key" = "<%= ssh_key %>" "--ssh-port" = "<%= ssh_port %>" "--config" = "<%= config_file %>" } } object CheckCommand "cs-nagios_check-network" { import "plugin-check-command" command = [ "<%= bin_path -%>cs-nagios", "check", "router", "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-rootfsrw" { import "plugin-check-command" command = [ "<%= bin_path -%>cs-nagios", "check", "router", "rootfs_rw" ] arguments = { "-H" = "$address$" "-w" = "80" "-c" = "90" "--ssh_key" = "<%= ssh_key %>" "--ssh-port" = "<%= ssh_port %>" "--config" = "<%= config_file %>" } } object CheckCommand "cs-nagios_check-diskusage" { import "plugin-check-command" command = [ "<%= bin_path -%>cs-nagios", "check", "router", "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-conntrack_connections" { import "plugin-check-command" command = [ "<%= bin_path -%>cs-nagios", "check", "router", "conntrack_connections" ] arguments = { "-H" = "$address$" "-w" = "80" "-c" = "90" "--ssh_key" = "<%= ssh_key %>" "--ssh-port" = "<%= ssh_port %>" "--config" = "<%= config_file %>" } } object CheckCommand "cs-nagios_check-active_ftp" { import "plugin-check-command" command = [ "<%= bin_path -%>cs-nagios", "check", "router", "active_ftp" ] arguments = { "-H" = "$address$" "-w" = "80" "-c" = "90" "--ssh_key" = "<%= ssh_key %>" "--ssh-port" = "<%= ssh_port %>" "--config" = "<%= config_file %>" } } apply Service "Cloudstack Virtual Router Memory" { import "generic-service-pnp" check_command = "cs-nagios_check-memory" assign where "CloudstackRouter" in host.groups } apply Service "Cloudstack Virtual Router CPU" { import "generic-service-pnp" check_command = "cs-nagios_check-cpu" assign where "CloudstackRouter" in host.groups } apply Service "Cloudstack Virtual Router Network" { import "generic-service-pnp" check_command = "cs-nagios_check-network" assign where "CloudstackRouter" in host.groups } apply Service "Cloudstack Virtual Router RootFS r/w" { import "generic-service-pnp" check_command = "cs-nagios_check-rootfsrw" assign where "CloudstackRouter" in host.groups } apply Service "Cloudstack Virtual Router DiskUsageRoot" { import "generic-service-pnp" check_command = "cs-nagios_check-diskusage" assign where "CloudstackRouter" in host.groups } apply Service "Cloudstack Virtual Router DiskUsageVar" { import "generic-service-pnp" check_command = "cs-nagios_check-diskusage" assign where "CloudstackRouter" in host.groups } apply Service "Cloudstack Virtual Router ConntrackConnections" { import "generic-service-pnp" check_command = "cs-nagios_check-conntrack_connections" assign where "CloudstackRouter" in host.groups } apply Service "Cloudstack Virtual Router ActiveFTP" { import "generic-service-pnp" check_command = "cs-nagios_check-active_ftp" assign where "CloudstackRouter" in host.groups }