mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Make the php_apc.php script's URL configurable
I've made the "URL" parameter look up if not already defined (in munin-node configuration file) before defaulting to http://localhost/php_apc.php.
This commit is contained in:
parent
be42c3894b
commit
c6bc5c7ce6
1 changed files with 11 additions and 5 deletions
|
@ -11,11 +11,13 @@
|
||||||
#
|
#
|
||||||
# Configuration section
|
# Configuration section
|
||||||
#
|
#
|
||||||
# URL to the script to check apc status
|
# Configuration example
|
||||||
URL=""
|
|
||||||
#URL="http://localhost/php_apc.php";
|
|
||||||
#
|
#
|
||||||
# php file included in package
|
# [php_apc_*]
|
||||||
|
# user root
|
||||||
|
# env.URL http://localhost/php_apc.php # URL to fetch APC status
|
||||||
|
#
|
||||||
|
# (php_apc.php file included in package)
|
||||||
#
|
#
|
||||||
#################################################################
|
#################################################################
|
||||||
#
|
#
|
||||||
|
@ -28,6 +30,10 @@ URL=""
|
||||||
#%# family=auto
|
#%# family=auto
|
||||||
#%# capabilities=autoconf suggest
|
#%# 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=`which wget`;
|
||||||
WGET_FLAGS="-Yoff"; # refer to wget manual, you may set extra parameters like disable proxy
|
WGET_FLAGS="-Yoff"; # refer to wget manual, you may set extra parameters like disable proxy
|
||||||
act=`basename $0 | sed 's/^php_apc_//g'`
|
act=`basename $0 | sed 's/^php_apc_//g'`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue