Debian Codegraph @

debian/aide.conf.d/31_aide_munin-nodes

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 #
3 # generate aide exclude patterns for all nodes listed in $MUNINCONF
4
5 MUNINCONF=/etc/munin/munin.confscip-shell filesystem . . `/etc/munin/munin.conf`.
6
7 [scip-shell system . . `[`. -e "${MUNINCONF}" ] || exit 0
8
9 HOSTS=$(grepscip-shell system . . grep. '^\[[[:alnum:]:.]\+\]' "${MUNINCONF}" | trscip-shell system . . tr. -d '[]')
10
11 escape_dotsscip-shell shell shell-project 0.0.0 escape_dots().()
12 {
13 echoscip-shell system . . echo. "$1" | sedscip-shell system . . sed. 's/\./\\\\./g'
14 }
15
16 for HOST in ${HOSTS}; do
17 DOMAIN=$(escape_dotsscip-shell shell shell-project 0.0.0 escape_dots(). "${HOST#*.}")
18 DHOST=$(escape_dotsscip-shell shell shell-project 0.0.0 escape_dots(). "${HOST}")
19
20 printfscip-shell system . . printf. "/var/cache/munin/www/%s/(index\\.html|%s/[-_[:alnum:]]+\\.(png|html))$ f VarFile\\n" "${DOMAIN}" "${DHOST}"
21 printfscip-shell system . . printf. "/var/lib/munin/%s/%s-.*\\.rrd$ f VarFile\\n" "${DOMAIN}" "${DHOST}"
22 printfscip-shell system . . printf. "/@@{RUN}/munin/munin-(update|datafile|%s-%s|limits)\\.lock$ f VarFile\\nscip-shell filesystem . . `/@@{RUN}/munin/munin-(update|datafile|%s-%s|limits)\\.lock$ f VarFile\\n`." "${DOMAIN}" "${DHOST}"
23 done