From 940eef887f5142d980c91e95193e102c41d18808 Mon Sep 17 00:00:00 2001 From: "Bala.FA" Date: Thu, 13 Mar 2014 17:01:12 +0530 Subject: all: import plugins/templates/config from github All plugins/templates/config are imported from https://github.com/gluster-rhsc/nagios-plugin.git Change-Id: Icbbf23c0595e2b36548015489341d9ff823bac50 Signed-off-by: Bala.FA Reviewed-on: https://cuckoo.blr.redhat.com:8443/6 --- config/gluster-commands.cfg | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 config/gluster-commands.cfg (limited to 'config/gluster-commands.cfg') diff --git a/config/gluster-commands.cfg b/config/gluster-commands.cfg new file mode 100644 index 0000000..5c335c7 --- /dev/null +++ b/config/gluster-commands.cfg @@ -0,0 +1,35 @@ +### gluster nagios template ### +define command { + command_name check_disk_and_inode + command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_disk_and_inode +} + +define command { + command_name check_cpu_multicore + command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_cpu_multicore +} + +define command { + command_name check_memory + command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_memory +} + +define command { + command_name check_swap_usage + command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_swap_usage +} + +define command { + command_name check_interfaces + command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_interfaces +} + +define command { + command_name check_remote_host + command_line $USER1$/check_remote_host.py -H $HOSTADDRESS$ +} + +define command { + command_name host_service_handler + command_line $USER1$/gluster_host_service_handler.py -s $SERVICESTATE$ -t $SERVICESTATETYPE$ -a $SERVICEATTEMPT$ -l $HOSTADDRESS$ -n $SERVICEDESC$ +} -- cgit