summaryrefslogtreecommitdiffstats
path: root/plugins-scripts
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2005-02-03 23:51:35 +0000
committerTon Voon <tonvoon@users.sourceforge.net>2005-02-03 23:51:35 +0000
commiteff6bae7ed30f6f262670736cc94700e91dcdc75 (patch)
treecd14c345fadbb868636d20aea981c528221b3429 /plugins-scripts
parent227c04a6886b708ce23cb9fd97e49b000228b1cb (diff)
downloadmonitoring-plugins-eff6bae7ed30f6f262670736cc94700e91dcdc75.tar.gz
Check for log file readability
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1129 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins-scripts')
-rwxr-xr-xplugins-scripts/check_log.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins-scripts/check_log.sh b/plugins-scripts/check_log.sh
index 355bd01e..0da732d2 100755
--- a/plugins-scripts/check_log.sh
+++ b/plugins-scripts/check_log.sh
@@ -167,6 +167,9 @@ done
167if [ ! -e $logfile ]; then 167if [ ! -e $logfile ]; then
168 $ECHO "Log check error: Log file $logfile does not exist!\n" 168 $ECHO "Log check error: Log file $logfile does not exist!\n"
169 exit $STATE_UNKNOWN 169 exit $STATE_UNKNOWN
170elif [ ! -r $logfile ] ; then
171 $ECHO "Log check error: Log file $logfile is not readable!\n"
172 exit $STATE_UNKNOWN
170fi 173fi
171 174
172# If the old log file doesn't exist, this must be the first time 175# If the old log file doesn't exist, this must be the first time