diff options
author | Shubhendu Tripathi <shtripat@redhat.com> | 2014-05-29 12:49:52 +0530 |
---|---|---|
committer | Timothy Asir <tim.gluster@gmail.com> | 2014-05-30 01:18:08 -0700 |
commit | 870e96472f2b3f8a258b781210c25cb365980067 (patch) | |
tree | d810e4a2b7f4cf1a85b4e39f083c8af8c5d2630d /config | |
parent | 45502497df037e8a145ae8dc92c0b4ef378c537c (diff) |
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 <shtripat@redhat.com>
Reviewed-on: http://review.gluster.org/7923
Reviewed-by: Ramesh N <rnachimu@redhat.com>
Reviewed-by: Kanagaraj M <kmayilsa@redhat.com>
Reviewed-by: Timothy Asir <tim.gluster@gmail.com>
Diffstat (limited to 'config')
-rw-r--r-- | config/gluster-commands.cfg | 5 | ||||
-rw-r--r-- | config/gluster-templates.cfg | 1 | ||||
-rw-r--r-- | config/host-monitoring-services.in | 2 |
3 files changed, 7 insertions, 1 deletions
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 @@ -25,6 +25,11 @@ define command { } 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":[]} |