]> arthur.barton.de Git - netdata.git/blobdiff - charts.d/mem_apps.chart.sh
rename chart fields to avoid conflicts with backends; fixes #1962
[netdata.git] / charts.d / mem_apps.chart.sh
old mode 100755 (executable)
new mode 100644 (file)
index 3afa4ad..3bc65fe
@@ -1,6 +1,12 @@
-#!/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 <costa@tsaousis.gr>
+# GPL v3+
+#
+
+mem_apps_apps=
 
 # these are required for computing memory in bytes and cpu in seconds
 #mem_apps_pagesize="`getconf PAGESIZE`"
@@ -15,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
@@ -25,7 +31,7 @@ mem_apps_bc_finalze=
 
 mem_apps_create() {
 
-       echo "CHART apps.mem '' 'Apps Memory' MB apps apps stacked 20000 $mem_apps_update_every"
+       echo "CHART chartsd_apps.mem '' 'Apps Memory' MB apps apps.mem stacked 20000 $mem_apps_update_every"
 
        local x=
        for x in $mem_apps_apps
@@ -44,7 +50,7 @@ mem_apps_update() {
        # for each dimension
        # remember: KEEP IT SIMPLE AND SHORT
 
-       echo "BEGIN apps.mem"
+       echo "BEGIN chartsd_apps.mem"
        ps -o comm,rss -C "$mem_apps_apps" |\
                grep -v "^COMMAND" |\
                (       sed -e "s/ \+/ /g" -e "s/ /+=/g";