Skip to content
Snippets Groups Projects
Commit e0d756fd authored by Dennis Ahrens's avatar Dennis Ahrens
Browse files

gluster metrics - only expose the heal count, no limits

parent 4c6d8034
No related branches found
No related tags found
No related merge requests found
...@@ -18,10 +18,6 @@ ...@@ -18,10 +18,6 @@
# [...] # [...]
hostname=$(hostname) hostname=$(hostname)
entries_warn=500
entries_crit=1000
entries_min=0
entries_max=2000
# iterate over all available volumns # iterate over all available volumns
for volume in $(gluster volume list) for volume in $(gluster volume list)
...@@ -51,7 +47,7 @@ do ...@@ -51,7 +47,7 @@ do
Connected) chmk_status=0 ;; # Online means OK Connected) chmk_status=0 ;; # Online means OK
*) chmk_status=3 ;; # everything else we don't know... *) chmk_status=3 ;; # everything else we don't know...
esac esac
metrics="healing_entries=$entries;$entries_warn;$entries_crit;$entries_min;$entries_max" metrics="healing_entries=$entries"
msg="Online status of volume '$volume' brick '$brick' is: '$heal_status'" msg="Online status of volume '$volume' brick '$brick' is: '$heal_status'"
# echo chmk local check output # echo chmk local check output
echo "$chmk_status gluster_volume:$volume $metrics $msg" echo "$chmk_status gluster_volume:$volume $metrics $msg"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment