diff --git a/plugins/logs/service_events b/plugins/logs/service_events index a4dbba76..3f08b88a 100755 --- a/plugins/logs/service_events +++ b/plugins/logs/service_events @@ -329,6 +329,13 @@ function fetch() { continue fi + # Make sure the logfile exists + if [ ! -e "$logfile" ]; then + >&2 echo "Logfile '$logfile' doesn't exist. Skipping." + n=$((n+1)) + continue + fi + # Find which service this logfile is associated with service= while read -u 4 -r svc; do