From 2bcf1219e5fdf50064e9ff8a9aaf8902df900337 Mon Sep 17 00:00:00 2001 From: Daniel Scott Date: Sun, 12 Dec 2010 12:00:04 -0800 Subject: [PATCH] Check in /usr/sbin for vos as well In Fedora, the OpenAFS 'vos' binary is stored under: /usr/sbin and so I have added that directory to the search path in check_afs_quotas and check_afs_space. --- check_afs_quotas | 2 +- check_afs_space | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/check_afs_quotas b/check_afs_quotas index 4a403f8..6d63039 100755 --- a/check_afs_quotas +++ b/check_afs_quotas @@ -50,7 +50,7 @@ our $TIMEOUT = 300; # The full path to vos. Make sure that this is on local disk so that # monitoring doesn't have an AFS dependency. -our ($VOS) = grep { -x $_ } qw(/usr/bin/vos /usr/local/bin/vos); +our ($VOS) = grep { -x $_ } qw(/usr/bin/vos /usr/local/bin/vos /usr/sbin/vos); $VOS ||= '/usr/bin/vos'; ############################################################################## diff --git a/check_afs_space b/check_afs_space index afc9e02..495d53b 100755 --- a/check_afs_space +++ b/check_afs_space @@ -49,7 +49,7 @@ our $TIMEOUT = 300; # The full path to vos. Make sure that this is on local disk so that # monitoring doesn't have an AFS dependency. -our ($VOS) = grep { -x $_ } qw(/usr/bin/vos /usr/local/bin/vos); +our ($VOS) = grep { -x $_ } qw(/usr/bin/vos /usr/local/bin/vos /usr/sbin/vos); $VOS ||= '/usr/bin/vos'; ############################################################################## -- 2.39.5