mirror of https://github.com/zulip/zulip.git
nagios: Add remote disk and load checks.
(imported from commit 1f0a1f5540212357ac2ed0c8d50fb2291a1812ed)
This commit is contained in:
parent
5ec66f467b
commit
a0aa1b31c8
|
@ -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$'
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue