mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Merge pull request #159 from C-Duv/patch-1
Make the php_apc.php script's URL configurable
This commit is contained in:
commit
177cb87640
@ -10,12 +10,14 @@
|
||||
#################################################################
|
||||
#
|
||||
# Configuration section
|
||||
#
|
||||
# Configuration example
|
||||
#
|
||||
# [php_apc_*]
|
||||
# user root
|
||||
# env.URL http://localhost/php_apc.php # URL to fetch APC status
|
||||
#
|
||||
# URL to the script to check apc status
|
||||
URL=""
|
||||
#URL="http://localhost/php_apc.php";
|
||||
#
|
||||
# php file included in package
|
||||
# (php_apc.php file included in package)
|
||||
#
|
||||
#################################################################
|
||||
#
|
||||
@ -28,6 +30,10 @@ URL=""
|
||||
#%# family=auto
|
||||
#%# capabilities=autoconf suggest
|
||||
|
||||
# URL to the script to check APC status (defaults to
|
||||
# 'http://localhost/php_apc.php' if not configured)
|
||||
URL=${URL:-'http://localhost/php_apc.php'}
|
||||
|
||||
WGET=`which wget`;
|
||||
WGET_FLAGS="-Yoff"; # refer to wget manual, you may set extra parameters like disable proxy
|
||||
act=`basename $0 | sed 's/^php_apc_//g'`
|
||||
|
Loading…
Reference in New Issue
Block a user