check_glusterfs
$Revision: 491 $
check_glusterfs [-H HOST] [-p] [-f] [-l VOLUME]
[-w DISKWARN] [-c DISKCRIT]
[-W INODEWARN] [-C INODECRIT]
H
Optional. Dummy for compatibility with Nagios.
p,perfdata
Optional. Print perfdata of all or the specified volume. Warning: depending on how many volumes and bricks you have, this may result in a lot of data.
f,warnonfailedheal
Optional. Warn if the heal-failed log contains entries. The log can be cleared by restarting glusterd
.
l,volume
Optional. Only check the specified VOLUME. If --volume is not set, all volumes are checked.
w,diskwarn
Optional. Warn if disk usage is above DISKWARN. Defaults to 90 (percent).
c,diskcrit
Optional. Return a critical error if disk usage is above DISKCRIT. Defaults to 95 (percent).
W,inodewarn
Optional. Warn if inode usage is above DISKWARN. Defaults to 90 (percent).
C,inodcrit
Optional. Return a critical error if inode usage is above DISKCRIT. Defaults to 95 (percent).
This nagios/icinga check script checks the glusterfs volumes, their bricks and the heal logs. If enabled, it returns the per-brick perfdata split-brain, heal-failed, healed, disk used and inodes used.
Do NOT run multiple copies of check_glusterfs
simultanously in a cluster. All bricks will appear offline.
Getopt::Long
pod::Usage
gluster