File: warning_tester.in

package info (click to toggle)
munin 2.0.76-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,064 kB
  • sloc: perl: 11,684; java: 1,924; sh: 1,632; makefile: 636; javascript: 365; python: 267
file content (33 lines) | stat: -rw-r--r-- 462 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!@@BASH@@
# -*- sh -*-

#%# family=test

do_ () {
    cat <<EOF
one.value 6
two.value 10
three.value 24
EOF
}

do_config () {
    cat <<'EOF'
graph_title Made to send warnings
graph_info Warnings and just warnings
one.label Warning #1
one.warning 0:5
one.critical 0:9
two.label Warning #2
two.warning 0:7
two.critical 0:9
three.label No warning here
three.warning 0:42
three.critical 0:84
EOF
}

"do_$1" 2>/dev/null || {
    echo "Do what now?">&2
    exit 1
}