]> arthur.barton.de Git - netdata.git/blobdiff - charts.d/example.chart.sh
fixed phpfpm
[netdata.git] / charts.d / example.chart.sh
index ad205046219dfb6994fc2c11c6b90418ba6c20b9..b20740e862ef67180f1e798d9103e7a95196bfa2 100755 (executable)
@@ -7,14 +7,21 @@
 # between the calls of the _update() function
 example_update_every=
 
+# the priority is used to sort the charts on the dashboard
+# 1 = the first chart
 example_priority=150000
 
+# to enable this chart, you have to set this to 12345
+# (just a demonstration for something that needs to be checked)
+example_magic_number=
+
 # _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
 
+       [ "${example_magic_number}" != "12345" ] && return 1
        return 0
 }