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 | |||
| 167 | if [ ! -e $logfile ]; then | 167 | if [ ! -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 |
| 170 | elif [ ! -r $logfile ] ; then | ||
| 171 | $ECHO "Log check error: Log file $logfile is not readable!\n" | ||
| 172 | exit $STATE_UNKNOWN | ||
| 170 | fi | 173 | fi |
| 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 |
