The php_apc_ plugin is made for the Munin v1.4.0+ monitoring system.
The Munin homepage can be found at: http://munin-monitoring.org/
Project homepage: http://code.google.com/p/munin-php-apc/
Copy the file apc_info.php to a location accessible to the web server, such as:
www.example.com/apc_info.php
Add the following lines to the munin-node file, usually found in
/etc/munin/plugin-conf.d/munin-node.
[php_apc_*]
user root
env.url http://www.example.com/apc_info.php?auto
There are 12 available graphs for this multi graph plugin:
php_apc_filesphp_apc_fragmentationphp_apc_hit_missphp_apc_purgephp_apc_ratesphp_apc_usagephp_apc_mem_sizephp_apc_user_purgephp_apc_user_mem_sizephp_apc_user_hit_missphp_apc_user_entriesphp_apc_user_rates
Each required graph should be added to the plugins directory, usually found in
/etc/munin/plugins/.
The common approach is to copy the file apc_php_ to the directory /usr/share/munin/plugins/
and then add a symbolic link to it from /etc/munin/plugins/.
For example:
sudo ln -s /usr/share/munin/plugins/php_apc_ /etc/munin/plugins/php_apc_files
sudo ln -s /usr/share/munin/plugins/php_apc_ /etc/munin/plugins/php_apc_fragmentation
..
After symlinking the files, restart munin-node ($ sudo service munin-node restart).
For more information regarding installation of Munin plugins, read the Munin documentation.
The complete project archive contains the following files:
php_apc_ - the php_apc_ Munin plugin.
apc_info.php - the PHP script that is called by the plugin.
CHANGELOG.txt - a list of changes made to the project.
README.txt - this file.
- Rewrite Munin plugin in PHP rather than Perl.
php_apc_ is licensed under the MIT License.