mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Properly indent heredocs
This commit is contained in:
parent
e2b04d0b46
commit
31149eb05d
1 changed files with 62 additions and 62 deletions
|
@ -93,7 +93,7 @@ case "${MODE}" in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ "$1" = "config" ]; then
|
if [ "$1" = "config" ]; then
|
||||||
cat <<EOF_
|
cat <<- EOF
|
||||||
graph_title DebSecan: ${TITLE_ADD}vulnerabilities
|
graph_title DebSecan: ${TITLE_ADD}vulnerabilities
|
||||||
graph_info ${TITLE_ADD}vulnerabilities for ${SUITE}
|
graph_info ${TITLE_ADD}vulnerabilities for ${SUITE}
|
||||||
graph_args -l 0 --base 1000
|
graph_args -l 0 --base 1000
|
||||||
|
@ -140,7 +140,7 @@ fixed.min 0
|
||||||
fixed.info The number of ${TITLE_ADD}CVEs fixed by available updates
|
fixed.info The number of ${TITLE_ADD}CVEs fixed by available updates
|
||||||
fixed.warning ${FIXEDWARN}
|
fixed.warning ${FIXEDWARN}
|
||||||
fixed.critical ${FIXEDCRIT}
|
fixed.critical ${FIXEDCRIT}
|
||||||
EOF_
|
EOF
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -182,7 +182,7 @@ esac
|
||||||
# Reformat the output of the cut|sort|uniq... to a more human-friendly "item (count)" format
|
# Reformat the output of the cut|sort|uniq... to a more human-friendly "item (count)" format
|
||||||
CVECOUNTRE='s/^ *\([0-9]\+\) \+\([^ ]\+\)/\2 (\1)/'
|
CVECOUNTRE='s/^ *\([0-9]\+\) \+\([^ ]\+\)/\2 (\1)/'
|
||||||
|
|
||||||
cat <<EOF
|
cat <<- EOF
|
||||||
remote.value $remote_count
|
remote.value $remote_count
|
||||||
remote.extinfo $(printf '%s' "${REMOTE}" | count_entries "${FIELD}" | sort -nr | sed "${CVECOUNTRE}" | xargs)
|
remote.extinfo $(printf '%s' "${REMOTE}" | count_entries "${FIELD}" | sort -nr | sed "${CVECOUNTRE}" | xargs)
|
||||||
high.value $high_count
|
high.value $high_count
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue