mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Added check for logfile existence at top of loop
This commit is contained in:
parent
00737cf2fc
commit
1d418a1e3a
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue