1
0
Fork 0
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:
Wilco de Boer 2021-07-14 23:48:41 +02:00
parent e2b04d0b46
commit 31149eb05d

View file

@ -92,55 +92,55 @@ 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
graph_vlabel number of CVE graph_vlabel number of CVE
graph_category system graph_category system
graph_period second graph_period second
graph_info This graph show the number of known ${TITLE_ADD}vulnerabilities present on your system. Use debsecan to see details. graph_info This graph show the number of known ${TITLE_ADD}vulnerabilities present on your system. Use debsecan to see details.
remote.label remote remote.label remote
remote.colour FF0000 remote.colour FF0000
remote.type GAUGE remote.type GAUGE
remote.draw AREASTACK remote.draw AREASTACK
remote.min 0 remote.min 0
remote.info The number of ${TITLE_ADD}remotely exploitable CVEs with any priority remote.info The number of ${TITLE_ADD}remotely exploitable CVEs with any priority
remote.warning ${REMOTEWARN} remote.warning ${REMOTEWARN}
remote.critical ${REMOTECRIT} remote.critical ${REMOTECRIT}
high.label high high.label high
high.colour DD2200 high.colour DD2200
high.type GAUGE high.type GAUGE
high.draw AREASTACK high.draw AREASTACK
high.min 0 high.min 0
high.info The number of ${TITLE_ADD}CVEs marked high priority high.info The number of ${TITLE_ADD}CVEs marked high priority
medium.label medium medium.label medium
medium.colour FFAA00 medium.colour FFAA00
medium.type GAUGE medium.type GAUGE
medium.draw AREASTACK medium.draw AREASTACK
medium.min 0 medium.min 0
medium.info The number of ${TITLE_ADD}CVEs marked medium priority medium.info The number of ${TITLE_ADD}CVEs marked medium priority
low.label low low.label low
low.colour 0000FF low.colour 0000FF
low.type GAUGE low.type GAUGE
low.draw AREASTACK low.draw AREASTACK
low.min 0 low.min 0
low.info The number of ${TITLE_ADD}CVEs marked low priority low.info The number of ${TITLE_ADD}CVEs marked low priority
other.label other other.label other
other.colour 00AAFF other.colour 00AAFF
other.type GAUGE other.type GAUGE
other.draw AREASTACK other.draw AREASTACK
other.min 0 other.min 0
other.info The number of ${TITLE_ADD}CVEs with unspecified priority other.info The number of ${TITLE_ADD}CVEs with unspecified priority
fixed.label fixed fixed.label fixed
fixed.type GAUGE fixed.type GAUGE
fixed.draw LINE2 fixed.draw LINE2
fixed.min 0 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,17 +182,17 @@ 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
high.extinfo $(printf '%s' "${HIGH}" | count_entries "${FIELD}" | sort -nr | sed "${CVECOUNTRE}" | xargs) high.extinfo $(printf '%s' "${HIGH}" | count_entries "${FIELD}" | sort -nr | sed "${CVECOUNTRE}" | xargs)
medium.value $medium_count medium.value $medium_count
medium.extinfo $(printf '%s' "${MEDIUM}" | count_entries "${FIELD}" | sort -nr | sed "${CVECOUNTRE}" | xargs) medium.extinfo $(printf '%s' "${MEDIUM}" | count_entries "${FIELD}" | sort -nr | sed "${CVECOUNTRE}" | xargs)
low.value $low_count low.value $low_count
low.extinfo $(printf '%s' "${LOW}" | count_entries "${FIELD}" | sort -nr | sed "${CVECOUNTRE}" | xargs) low.extinfo $(printf '%s' "${LOW}" | count_entries "${FIELD}" | sort -nr | sed "${CVECOUNTRE}" | xargs)
other.value $other_count other.value $other_count
other.extinfo $(printf '%s' "${OTHER}" | count_entries "${FIELD}" | sort -nr | sed "${CVECOUNTRE}" | xargs) other.extinfo $(printf '%s' "${OTHER}" | count_entries "${FIELD}" | sort -nr | sed "${CVECOUNTRE}" | xargs)
fixed.value $fixed_count fixed.value $fixed_count
fixed.extinfo $(printf '%s' "${FIXED}" | count_entries "${FIELD}" | sort -nr | sed "${CVECOUNTRE}" | xargs) fixed.extinfo $(printf '%s' "${FIXED}" | count_entries "${FIELD}" | sort -nr | sed "${CVECOUNTRE}" | xargs)
EOF EOF