#!/bin/sh # if this chart is called X.chart.sh, then all functions and global variables # must start with X_ # _update_every is a special variable - it holds the number of seconds # between the calls of the _update() function example_update_every= example_priority=150000 # _check is called once, to find out if this chart should be enabled or not example_check() { # this should return: # - 0 to enable the chart # - 1 to disable the chart return 0 } # _create is called once, to create the charts example_create() { # create the chart with 3 dimensions cat <&2 "example_count = $example_count value = $value4" return 0 }