nagios: Add remote disk and load checks.

(imported from commit 1f0a1f5540212357ac2ed0c8d50fb2291a1812ed)
This commit is contained in:
Jessica McKellar 2012-11-16 10:42:52 -05:00
parent 5ec66f467b
commit a0aa1b31c8
2 changed files with 22 additions and 0 deletions

View File

@ -49,4 +49,12 @@ define command{
command_line /usr/bin/printf "%b" "$LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$SERVICESTATETYPE$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n" >> /var/lib/nagios3/service-perfdata.out
}
define command{
command_name check_remote_disk
command_line /usr/lib/nagios/plugins/check_by_ssh -p $ARG1$ -l nagios -t 30 -o StrictHostKeyChecking=no -i /var/lib/nagios/.ssh/id_rsa -H $HOSTADDRESS$ -C '/usr/lib/nagios/plugins/check_disk -w $ARG2$ -c $ARG3$ -p $ARG4$'
}
define command{
command_name check_remote_load
command_line /usr/lib/nagios/plugins/check_by_ssh -p $ARG1$ -l nagios -t 30 -o StrictHostKeyChecking=no -i /var/lib/nagios/.ssh/id_rsa -H $HOSTADDRESS$ -C '/usr/lib/nagios/plugins/check_load -w $ARG2$ -c $ARG3$'
}

View File

@ -11,3 +11,17 @@ define service {
service_description SSH
check_command check_ssh
}
define service {
use generic-service
hostgroup_name ssh_checks
service_description remote disk
check_command check_remote_disk!22!20%!10%!/
}
define service {
use generic-service
hostgroup_name ssh_checks
service_description remote load
check_command check_remote_load!22!5.0,4.0,3.0!10.0,6.0,4.0
}