Munin plugin for monitoring PHP OPcache
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Munin plugin for monitoring PHP OPcache


The php_opcache_ plugin is made for the Munin v1.4.0+ monitoring system.

The Munin homepage can be found at:


Project homepage:

Installation and Usage

Copy the file php_opcache.php to a location accessible to the web server, such as:

Add the following lines to the munin-node file, usually found in /etc/munin/plugin-conf.d/munin-node.

user root

(the uppercase for URL is important.)

There are 5 available graphs for this multi graph plugin:

  • php_opcache_memory
  • php_opcache_hitrate
  • php_opcache_hits
  • php_opcache_misses
  • php_opcache_keys

Each required graph should be added to the plugins directory, usually found in /etc/munin/plugins/.

The common approach is to copy the file php_opcache_ 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_opcache_ /etc/munin/plugins/php_opcache_memory
sudo ln -s /usr/share/munin/plugins/php_opcache_ /etc/munin/plugins/php_opcache_hitrate

After symlinking the files, restart munin-node ($ sudo service munin-node restart).

For more information regarding installation of Munin plugins, read the Munin documentation.

Archive Contents

The complete project archive contains the following files:

php_opcache_     - the php_opcache_ Munin plugin.
php_opcache.php  - the PHP script that is called by the plugin.        - this file.


php_opcache_ is licensed under the MIT License.