Skip to content

Instantly share code, notes, and snippets.

@jfrost
Created February 11, 2009 19:43
Show Gist options
  • Save jfrost/62200 to your computer and use it in GitHub Desktop.
Save jfrost/62200 to your computer and use it in GitHub Desktop.
command[check_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
define command{
command_name check_nrpe_disk
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_disk -a $ARG1$ $ARG2$ $ARG3$
}
define service {
contact_groups admins
retry_check_interval 1
hostgroup_name all-servers
max_check_attempts 4
check_period 24x7
check_command check_nrpe_disk!25%!10%!/var
normal_check_interval 5
notification_interval 1440
notification_period 24x7
_naginator_name diskspace_var
use generic-service
service_description diskspace_var
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment