Skip to content

acrollet/nagios-glusterfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

About

Fork of glfs-health.sh 1 with changes for improved option handling and username/password support.

Usage

With a substantial debt to Ian Rogers 2

You will need to define check commands similar to the following: define command { command_name check_gluster_authed command_line sudo /usr/local/bin/glfs-health.sh -h $HOSTADDRESS$ -p 6996 -t tcp -n $ARG1$ -u $ARG2$ -p $ARG3$ } define command { command_name check_gluster command_line sudo /usr/local/bin/glfs-health.sh -h $HOSTADDRESS$ -p 6996 -t tcp -n $ARG1$ }

glfs-health.sh needs to run as root, hence the sudo - run visudo and add a line like this: echo "nagios ALL=(ALL) NOPASSWD: /usr/local/bin/glfs-health.sh" >> /etc/sudoers

Then define a service using your check command: define service { hostgroup_name gluster-servers service_description glusterfsd check_command check_gluster_authed!fsname!username!password use generic-service }

More info is available in the Nagios Documentation. 3

About

Nagios glusterfs health check script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages