MOON
Server: Apache/2.2.31 (Unix) mod_ssl/2.2.31 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4
System: Linux csr818.wilogic.com 2.6.18-419.el5xen #1 SMP Fri Feb 24 22:50:37 UTC 2017 x86_64
User: digitals (531)
PHP: 5.4.45
Disabled: NONE
Upload Files
File: //usr/local/ssl/share/munin/plugins/warning_tester
#!/bin/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
}