File: negative_tester

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 (29 lines) | stat: -rw-r--r-- 756 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
#!@@BASH@@

# A small plugin for testing .negative.  Currently exposes issues with
# .negative and field names longer than 15 characters.  This also fails if a
# CDEF is included, but it's hard to tell if fixing negative to handle
# shortened field names properly would also happen to fix the CDEF brokenness.

test "$1" = "config" && cat <<EOF
graph_title negative_test widgets per second
graph_args --base 1000
graph_vlabel widgets per second
graph_category testing

negative_test_in.label negative_test
negative_test_in.type GAUGE
negative_test_in.min 0
negative_test_in.graph no
out.label negative_test
out.type GAUGE
out.min 0
out.negative negative_test_in
EOF

test "$1" = "" && cat <<EOF
out.value $RANDOM
negative_test_in.value $RANDOM
EOF

exit 0