Révision c6bc5c7c
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.
| plugins/php/php_apc_ | ||
|---|---|---|
| 10 | 10 |
################################################################# |
| 11 | 11 |
# |
| 12 | 12 |
# Configuration section |
| 13 |
# |
|
| 14 |
# Configuration example |
|
| 15 |
# |
|
| 16 |
# [php_apc_*] |
|
| 17 |
# user root |
|
| 18 |
# env.URL http://localhost/php_apc.php # URL to fetch APC status |
|
| 13 | 19 |
# |
| 14 |
# URL to the script to check apc status |
|
| 15 |
URL="" |
|
| 16 |
#URL="http://localhost/php_apc.php"; |
|
| 17 |
# |
|
| 18 |
# php file included in package |
|
| 20 |
# (php_apc.php file included in package) |
|
| 19 | 21 |
# |
| 20 | 22 |
################################################################# |
| 21 | 23 |
# |
| ... | ... | |
| 28 | 30 |
#%# family=auto |
| 29 | 31 |
#%# capabilities=autoconf suggest |
| 30 | 32 |
|
| 33 |
# URL to the script to check APC status (defaults to |
|
| 34 |
# 'http://localhost/php_apc.php' if not configured) |
|
| 35 |
URL=${URL:-'http://localhost/php_apc.php'}
|
|
| 36 |
|
|
| 31 | 37 |
WGET=`which wget`; |
| 32 | 38 |
WGET_FLAGS="-Yoff"; # refer to wget manual, you may set extra parameters like disable proxy |
| 33 | 39 |
act=`basename $0 | sed 's/^php_apc_//g'` |
Formats disponibles : Unified diff