From edb4e1e81b3a4888925df8b510f116a7720f375a Mon Sep 17 00:00:00 2001 From: Lars Kruse Date: Tue, 21 Apr 2020 19:38:52 +0200 Subject: [PATCH] Plugin apache_memory: specify common default values Previously the plugin did not work without configuration. Now it should work on many systems out of the box. --- plugins/apache/apache_memmory | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/apache/apache_memmory b/plugins/apache/apache_memmory index 4e829191..f754e00f 100755 --- a/plugins/apache/apache_memmory +++ b/plugins/apache/apache_memmory @@ -10,8 +10,8 @@ apache_memmory -Indicate the medium size of all the apache child process =head1 CONFIGURATION [apache_*] -env.apuser user_running_apache -env.binname apache_binary_name +env.apuser user_running_apache (default: "www-data") +env.binname apache_binary_name (default: "apache2") =head1 AUTHOR @@ -31,8 +31,8 @@ GPLv2 . $MUNIN_LIBDIR/plugins/plugin.sh -USR=$apuser -PROCS=$binname +USR=${apuser:-www-data} +PROCS=${binname:-apache2} if [ "$1" = "autoconf" ]; then