############################################################################### # # Service configuration file # # Created by: cloudstack-nagios # Date: <%= date %> # Version: Nagios 3.x config file # # --- DO NOT EDIT THIS FILE BY HAND --- # cloudstack-nagios will overwite all manual settings during the next update # ############################################################################### define command { command_name cs-nagios_check-memory command_line <%= bin_path -%>cs-nagios check router memory -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ --config <%= config_file %> register 1 } define command { command_name cs-nagios_check-cpu command_line <%= bin_path -%>cs-nagios check router cpu -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ --config <%= config_file %> register 1 } define command { command_name cs-nagios_check-network command_line <%= bin_path -%>cs-nagios check router network -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ --config <%= config_file %> register 1 } define command { command_name cs-nagios_check-rootfsrw command_line <%= bin_path -%>cs-nagios check router rootfs_rw -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ --config <%= config_file %> register 1 } define command { command_name cs-nagios_check-diskusage command_line <%= bin_path -%>cs-nagios check router disk_usage -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ --config <%= config_file %> register 1 } define service { hostgroup_name Cloudstack-SystemVM service_description Memory display_name Memory use Generic-Service,service-pnp check_command cs-nagios_check-memory!80!90 register 1 } define service { hostgroup_name Cloudstack-SystemVM service_description CPU display_name CPU use Generic-Service,service-pnp check_command cs-nagios_check-cpu!80!90 register 1 } define service { hostgroup_name Cloudstack-SystemVM service_description Network display_name Network use Generic-Service,service-pnp check_command cs-nagios_check-network!80!90 register 1 } define service { hostgroup_name Cloudstack-SystemVM service_description RootFS rw display_name RootFS rw use Generic-Service,service-pnp check_command cs-nagios_check-rootfsrw!80!90 register 1 } define service { hostgroup_name Cloudstack-SystemVM service_description DiskUsage display_name DiskUsage use Generic-Service,service-pnp check_command cs-nagios_check-diskusage!80!90 register 1 } ############################################################################### # # Service configuration file # # END OF FILE # ###############################################################################