diff options
author | Kanagaraj M <kmayilsa@redhat.com> | 2014-04-09 12:12:52 +0530 |
---|---|---|
committer | Bala.FA <barumuga@redhat.com> | 2014-04-29 10:21:37 +0530 |
commit | 3374e943a17516e1e28339dc3df55c80b0ecf5ad (patch) | |
tree | b3ebe957ac66e3b204c30f6165498aabf57ede95 /config | |
parent | e45624a580ce809d0a51698a4b38d882a1e86640 (diff) |
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 <kmayilsa@redhat.com>
Diffstat (limited to 'config')
-rw-r--r-- | config/gluster-host-services.cfg | 23 | ||||
-rw-r--r-- | config/gluster-templates.cfg | 16 | ||||
-rw-r--r-- | config/glustercluster.cfg.sample | 18 | ||||
-rw-r--r-- | config/host-monitoring-services.in | 2 |
4 files changed, 55 insertions, 4 deletions
diff --git a/config/gluster-host-services.cfg b/config/gluster-host-services.cfg index 31f67b5..77c9b38 100644 --- a/config/gluster-host-services.cfg +++ b/config/gluster-host-services.cfg @@ -44,3 +44,26 @@ define service{ check_command check_nrpe!check_interfaces } +define service{ + use gluster-passive-service + hostgroup_name gluster_hosts + service_description Gluster Management Daemon + normal_check_interval 1 + event_handler host_service_handler +} + +define service{ + use gluster-passive-service + hostgroup_name gluster_hosts + service_description Glusterfs NFS Daemon + normal_check_interval 1 + event_handler host_service_handler +} + +define service{ + use gluster-passive-service + hostgroup_name gluster_hosts + service_description Glusterfs Self-Heal Daemon + normal_check_interval 1 + event_handler host_service_handler +} diff --git a/config/gluster-templates.cfg b/config/gluster-templates.cfg index 006d6e6..eaffcda 100644 --- a/config/gluster-templates.cfg +++ b/config/gluster-templates.cfg @@ -36,6 +36,22 @@ define service { } define service { + name gluster-passive-service + use gluster-service + register 0 + active_checks_enabled 0 + passive_checks_enabled 1 + check_command check_dummy!0 +} + +define service { + name gluster-brick-passive-service + use gluster-passive-service + register 0 + _GLUSTER_ENTITY Brick +} + +define service { name gluster-service-with-graph use gluster-service action_url /pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=$SERVICEDESC$' class='tips' rel='/pnp4nagios/index.php/popup?host=$HOSTNAME$&srv=$SERVICEDESC$ 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 } diff --git a/config/host-monitoring-services.in b/config/host-monitoring-services.in index 268721c..bd6d02f 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"]} +{"serviceList":["Cpu Utilization", "Disk Utilization", "Memory Utilization", "Network Utilization", "Swap Utilization", "Gluster Management Daemon", "Glusterfs NFS Daemon", "Glusterfs Self-Heal Daemon"]} |