first commit
This commit is contained in:
15
scripts/gluster_checks/check_gluster_pod.sh
Normal file
15
scripts/gluster_checks/check_gluster_pod.sh
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
#Roy Cohen :roy@wondercohen.nl
|
||||
#objective :Gluster check from within a pod server heal for Nagios
|
||||
#First line of code :15/01/2019
|
||||
#last update :24/01/2019
|
||||
#version :1.0
|
||||
|
||||
######START OF SCRIPT#######
|
||||
gluster volume status all > /brick_status
|
||||
|
||||
for volume in $(gluster volume info all | grep "Volume Name:"| cut -d ":" -f2)
|
||||
do
|
||||
echo "volume, $volume"
|
||||
gluster v heal $volume info |grep entries|cut -d ":" -f2
|
||||
done > /gluster_monitoring_heal
|
Reference in New Issue
Block a user