"Fossies" - the Fresh Open Source Software Archive

Member "munin-2.0.52/plugins/node.d.debug/warning_tester.in" (20 Nov 2019, 462 Bytes) of package /linux/misc/munin-2.0.52.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!@@BASH@@
    2 # -*- sh -*-
    3 
    4 #%# family=test
    5 
    6 do_ () {
    7     cat <<EOF
    8 one.value 6
    9 two.value 10
   10 three.value 24
   11 EOF
   12 }
   13 
   14 do_config () {
   15     cat <<'EOF'
   16 graph_title Made to send warnings
   17 graph_info Warnings and just warnings
   18 one.label Warning #1
   19 one.warning 0:5
   20 one.critical 0:9
   21 two.label Warning #2
   22 two.warning 0:7
   23 two.critical 0:9
   24 three.label No warning here
   25 three.warning 0:42
   26 three.critical 0:84
   27 EOF
   28 }
   29 
   30 "do_$1" 2>/dev/null || {
   31     echo "Do what now?">&2
   32     exit 1
   33 }