~ubuntu-branches/ubuntu/saucy/munin/saucy

« back to all changes in this revision

Viewing changes to plugins/node.d.debug/negative_tester

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2012-06-11 12:54:28 UTC
  • mfrom: (8.1.30 sid)
  • Revision ID: package-import@ubuntu.com-20120611125428-k8z25s77rp755vxe
Tags: 2.0.0-1ubuntu1
* Resync with Debian unstable.
* d/munin-node.upstart,munin.upstart: Add upstart configurations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
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.
 
7
 
 
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
 
13
 
 
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
 
19
out.type GAUGE
 
20
out.min 0
 
21
out.negative negative_test_in
 
22
EOF
 
23
 
 
24
test "$1" = "" && cat <<EOF
 
25
out.value $RANDOM
 
26
negative_test_in.value $RANDOM
 
27
EOF
 
28
 
 
29
exit 0