diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2015-11-20 01:19:29 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2015-11-20 01:19:29 +0200 |
commit | f86722e7a092f5d1c6c7815499bd61866c75045c (patch) | |
tree | 1449a86a8220a42909192ba1508c9d31bfe2b3c1 /charts.d/cpu_apps.chart.sh | |
parent | 93921bbb7cd15c3f3a4e4f52386cf3611eadd8d0 (diff) |
normalized all charts.d plugins
Diffstat (limited to 'charts.d/cpu_apps.chart.sh')
-rwxr-xr-x | charts.d/cpu_apps.chart.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/charts.d/cpu_apps.chart.sh b/charts.d/cpu_apps.chart.sh index 5f36e86582..d0165ad331 100755 --- a/charts.d/cpu_apps.chart.sh +++ b/charts.d/cpu_apps.chart.sh @@ -1,10 +1,14 @@ #!/bin/sh -cpu_apps_apps="netdata asterisk squid apache2 mysqld dovecot cupsd sshd named clamd smbd" +# THIS PLUGIN IS OBSOLETE +# USE apps.plugin INSTEAD + +# a space separated list of command to monitor +cpu_apps_apps= # these are required for computing memory in bytes and cpu in seconds #cpu_apps_pagesize="`getconf PAGESIZE`" -cpu_apps_clockticks="`getconf CLK_TCK`" +cpu_apps_clockticks="$(getconf CLK_TCK)" cpu_apps_update_every=60 @@ -15,7 +19,7 @@ cpu_apps_check() { if [ -z "$cpu_apps_apps" ] then - echo >&2 "cpu_apps: Please set cpu_apps_apps='command1 command2 ...' in $confd/cpu_apps_apps.conf" + echo >&2 "$PROGRAM_NAME: cpu_apps: Please set cpu_apps_apps='command1 command2 ...' in $confd/cpu_apps_apps.conf" return 1 fi return 0 |