[sheepdog] Exit status of node recovery
Valerio Pachera
sirio81 at gmail.com
Fri Aug 23 17:53:02 CEST 2013
Hi, I'm wondering if it could be good to have an exit status different
from 0 when there's a recovery running.
I wish to monitor if cluster is doing a recovery in nagios/icinga or
another application.
To get this info I have to "parse" the output of 'node recovery'
instead of the exit status.
lines=$(dog vdi recovery | wc -l)
if [ lines -ne 2 ]; then
echo "recovery is running"
fi
Instead of
dog vdi recovery > /dev/null
if [ $? -eq 1 ]; then
echo "recovery is running"
fi
What do you think?
More information about the sheepdog
mailing list