File: plugin-brokenconfig

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 (27 lines) | stat: -rwxr-xr-x 448 bytes parent folder | download | duplicates (11)
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
#!/bin/sh

# To test munin-gather/update: This plugin emits broken
# configuration when run with "config".

do_autoconf () {
    echo no
    exit 1
}

do_config () {
    # Missing graph_title - this is the indicator used by munin if the
    # graph is configured.
    echo graph_args -l 0
    echo graph_info Floppa
    echo test.label Test series - will be 5
}

do_ () {
    # Fetch - emit valid data
    echo test.value 5
}

eval do_$1

exit 0