X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=charts.d%2Fload_average.chart.sh;h=70d3aec7a2dd2c086295f699780be9ae80f347fb;hb=b060bae83cc36fdc4f14120228e4c9b0d1ec42e8;hp=8cc5af6ec6c98895e69a4ffe851d362b5d034f77;hpb=7c0ba6a675cbca3a6fa1a0b79a37259ad4b52aee;p=netdata.git diff --git a/charts.d/load_average.chart.sh b/charts.d/load_average.chart.sh old mode 100755 new mode 100644 index 8cc5af6e..70d3aec7 --- a/charts.d/load_average.chart.sh +++ b/charts.d/load_average.chart.sh @@ -1,8 +1,20 @@ -#!/bin/sh +# no need for shebang - this file is loaded from charts.d.plugin + +# netdata +# real-time performance and health monitoring, done right! +# (C) 2016 Costa Tsaousis +# GPL v3+ +# load_average_update_every=5 load_priority=100 +# this is an example charts.d collector +# it is disabled by default. +# there is no point to enable it, since netdata already +# collects this information using its internal plugins. +load_average_enabled=0 + load_average_check() { # this should return: # - 0 to enable the chart @@ -15,13 +27,14 @@ load_average_check() { load_average_update_every=5 fi + [ ${load_average_enabled} -eq 0 ] && return 1 return 0 } load_average_create() { # create a chart with 3 dimensions cat <