3
# A small plugin for testing .negative. Currently exposes issues with
4
# .negative and field names longer than 15 characters. This also fails if a
5
# CDEF is included, but it's hard to tell if fixing negative to handle
6
# shortened field names properly would also happen to fix the CDEF brokenness.
8
test "$1" = "config" && cat <<EOF
9
graph_title negative_test widgets per second
10
graph_args --base 1000
11
graph_vlabel widgets per second
12
graph_category testing
14
negative_test_in.label negative_test
15
negative_test_in.type GAUGE
16
negative_test_in.min 0
17
negative_test_in.graph no
18
out.label negative_test
21
out.negative negative_test_in
24
test "$1" = "" && cat <<EOF
26
negative_test_in.value $RANDOM