diff options
-rwxr-xr-x | plugins-scripts/check_log.sh | 3 |
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 if [ ! -e $logfile ]; then $ECHO "Log check error: Log file $logfile does not exist!\n" exit $STATE_UNKNOWN +elif [ ! -r $logfile ] ; then + $ECHO "Log check error: Log file $logfile is not readable!\n" + exit $STATE_UNKNOWN fi # If the old log file doesn't exist, this must be the first time |