X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=charts.d%2Fmem_apps.chart.sh;h=3bc65fe24004c9af4e71ebcd88b764f38e5b16eb;hb=9dccc16d3763392f0b13349de18c3a838a667653;hp=cd04672165a1139fda8286e806b9747ebcc485ab;hpb=5ca16e50c378b7e79455dc9ec97620e33e5f330d;p=netdata.git diff --git a/charts.d/mem_apps.chart.sh b/charts.d/mem_apps.chart.sh old mode 100755 new mode 100644 index cd046721..3bc65fe2 --- a/charts.d/mem_apps.chart.sh +++ b/charts.d/mem_apps.chart.sh @@ -1,11 +1,19 @@ -#!/bin/sh +# no need for shebang - this file is loaded from charts.d.plugin -mem_apps_apps="netdata asterisk squid apache2 mysqld dovecot cupsd sshd named clamd smbd" +# netdata +# real-time performance and health monitoring, done right! +# (C) 2016 Costa Tsaousis +# GPL v3+ +# + +mem_apps_apps= # these are required for computing memory in bytes and cpu in seconds #mem_apps_pagesize="`getconf PAGESIZE`" #mem_apps_clockticks="`getconf CLK_TCK`" +mem_apps_update_every= + mem_apps_check() { # this should return: # - 0 to enable the chart @@ -13,7 +21,7 @@ mem_apps_check() { if [ -z "$mem_apps_apps" ] then - echo >&2 "mem_apps: Please set mem_apps_apps='command1 command2 ...' in $confd/mem_apps_apps.conf" + error "manual configuration required: please set mem_apps_apps='command1 command2 ...' in $confd/mem_apps_apps.conf" return 1 fi return 0 @@ -23,17 +31,13 @@ mem_apps_bc_finalze= mem_apps_create() { - cat <