mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-09-19 09:03:20 +00:00
Added some basic checks to lvm_
This commit is contained in:
parent
4bcd18fe59
commit
da50b3f8cc
1 changed files with 8 additions and 2 deletions
|
@ -24,8 +24,14 @@
|
||||||
#%# capabilities=autoconf suggest
|
#%# capabilities=autoconf suggest
|
||||||
|
|
||||||
if [ "$1" = "autoconf" ]; then
|
if [ "$1" = "autoconf" ]; then
|
||||||
echo yes
|
if ! which lvs 2>/dev/null; then
|
||||||
exit 0
|
echo "no (lvs not found)"
|
||||||
|
elif ! which vgs 2>/dev/null; then
|
||||||
|
echo "no (vgs not found)"
|
||||||
|
else
|
||||||
|
echo "yes"
|
||||||
|
fi
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$1" = "suggest" ]; then
|
if [ "$1" = "suggest" ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue