1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 02:51:03 +00:00

Added check for logfile existence at top of loop

This commit is contained in:
Kael Shipman 2018-11-18 18:08:44 -06:00
parent 00737cf2fc
commit 1d418a1e3a

View file

@ -329,6 +329,13 @@ function fetch() {
continue continue
fi 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 # Find which service this logfile is associated with
service= service=
while read -u 4 -r svc; do while read -u 4 -r svc; do