From 3374e943a17516e1e28339dc3df55c80b0ecf5ad Mon Sep 17 00:00:00 2001 From: Kanagaraj M Date: Wed, 9 Apr 2014 12:12:52 +0530 Subject: config: added passive checks for gluster processes/bricks Added passive check service entry for the following. Gluster Management Daemon Gluster NFS Daemon Gluster Self-Heal Daemon Brick Status And renamed the service_description of Brick Brick Utilization - host_ip:brick_dir Brick Status - host_ip:brick_dir display_name for host/service is not being used by nagios according to the documentation, so removed from the conf. Change-Id: Iab66c1a9a07a04ac4e8b8dac76cac30cd5b02365 Signed-off-by: Kanagaraj M --- config/glustercluster.cfg.sample | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'config/glustercluster.cfg.sample') diff --git a/config/glustercluster.cfg.sample b/config/glustercluster.cfg.sample index c03bb0a..81124d7 100644 --- a/config/glustercluster.cfg.sample +++ b/config/glustercluster.cfg.sample @@ -52,14 +52,26 @@ define host{ # Edit this sample # host_name = host the brick is on # service_description = brick name of form serverip:brickdir -# display_name = Name to be shown up on Nagios. # _BRICK_DIR = Path to brick on server ################################################################################ define service { use brick-service host_name host.ipaddress1 - service_description host.ipaddress1:/bricks/b1 - display_name Brick-host.ipaddress1:/bricks/b1 + service_description Brick Utilization - host.ipaddress1:/bricks/b1 + _BRICK_DIR /bricks/b1 ; MUST DECLARE the custom var _BRICK_DIR +} + +################################################################################ +# This defines a Brick Status service +# Edit this sample +# host_name = host the brick is on +# service_description = brick name of form serverip:brickdir +# _BRICK_DIR = Path to brick on server +################################################################################ +define service { + use brick-passive-service + host_name host.ipaddress1 + service_description Brick Status - host.ipaddress1:/bricks/b1 _BRICK_DIR /bricks/b1 ; MUST DECLARE the custom var _BRICK_DIR } -- cgit