Giter Club home page Giter Club logo

munin-php-apc's Introduction

Requirements

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/

Documentation

Project homepage: http://code.google.com/p/munin-php-apc/

Installation and Usage

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_files
  • php_apc_fragmentation
  • php_apc_hit_miss
  • php_apc_purge
  • php_apc_rates
  • php_apc_usage
  • php_apc_mem_size
  • php_apc_user_purge
  • php_apc_user_mem_size
  • php_apc_user_hit_miss
  • php_apc_user_entries
  • php_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.

Archive Contents

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.

Todo

  • Rewrite Munin plugin in PHP rather than Perl.

Licensing

php_apc_ is licensed under the MIT License.

munin-php-apc's People

Contributors

geerlingguy avatar matikij avatar mjrider avatar nahall avatar niteman avatar nsams avatar nuggie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

munin-php-apc's Issues

Configuring warning/critical thresholds

I was successfully able to setup php_apc_ even though I am running munin 2.0.25. At the moment I am only capturing usage data. Is it possible to define warning/critical thresholds for the 'used' and 'fragmented' monitors? It appears munin is using a new way of passing variables. I tried the following configuration - the env.url value is being passed but I do not see the other values reflected in the table below the graphs.

Thanks, Norbert

[php_apc_*]
user (username)
env.url http://(site)/apc_info.php?auto
env.used_warning 47185920
env.used_critical 57671680
env.fragmented_warning 5242880
env.fragmented_critical 10485760

Purge rate question

If purge rate exceeds 10%, it would be determined as warning.
My question is why purge so much cache is a problem?
It's about performance issue or something ?

Tip for quickly symlinking...

I did this to make all the symlinks:

for i in files fragmentation hit_miss purge rates usage mem_size user_hit_miss user_entries user_rates; do sudo ln -s /path/to/php_apc_ /etc/munin/plugins/php_apc_$i; done

You can just add and remove the graphs from the for params as needed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.