summaryrefslogtreecommitdiffstats
path: root/plugins-scripts
diff options
context:
space:
mode:
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