From 870e96472f2b3f8a258b781210c25cb365980067 Mon Sep 17 00:00:00 2001 From: Shubhendu Tripathi Date: Thu, 29 May 2014 12:49:52 +0530 Subject: nagios-server-addons: Check hosts status using NRPE Enabled to execute check_nrpe for a given host to check its status. Change-Id: I938b78fcbf52cd46f4f493e2c2b8b927614834eb Bug-URL: https://bugzilla.redhat.com/show_bug.cgi?id=1102506 Signed-off-by: Shubhendu Tripathi Reviewed-on: http://review.gluster.org/7923 Reviewed-by: Ramesh N Reviewed-by: Kanagaraj M Reviewed-by: Timothy Asir --- config/gluster-commands.cfg | 5 +++++ config/gluster-templates.cfg | 1 + config/host-monitoring-services.in | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/gluster-commands.cfg b/config/gluster-commands.cfg index d2ebdce..ac61fc5 100644 --- a/config/gluster-commands.cfg +++ b/config/gluster-commands.cfg @@ -24,6 +24,11 @@ define command { command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_interfaces } +define command { + command_name check_remote_host + command_line $USER1$/gluster/check_remote_host.py -H $HOSTADDRESS$ +} + define command { command_name host_service_handler command_line $USER1$/gluster/gluster_host_service_handler.py -s $SERVICESTATE$ -t $SERVICESTATETYPE$ -a $SERVICEATTEMPT$ -l $HOSTADDRESS$ -n "$SERVICEDESC$" diff --git a/config/gluster-templates.cfg b/config/gluster-templates.cfg index b8b47bc..6f968ca 100644 --- a/config/gluster-templates.cfg +++ b/config/gluster-templates.cfg @@ -12,6 +12,7 @@ define host{ define host { name gluster-host use gluster-generic-host + check_command check_remote_host register 0 _gluster_entity Host } diff --git a/config/host-monitoring-services.in b/config/host-monitoring-services.in index 788e9e7..1ccbcb7 100644 --- a/config/host-monitoring-services.in +++ b/config/host-monitoring-services.in @@ -1 +1 @@ -{"serviceList":["Cpu Utilization", "Disk Utilization", "Memory Utilization", "Network Utilization", "Swap Utilization", "Gluster Management", "Quota", "NFS", "Self-Heal", "SMB", "CTDB"]} +{"serviceList":[]} -- cgit