Skip to main content

Sensors for munin

Project description

Intro

This is a suite of sensors (plugins) for munin. You can install one or all, as you wish.

Sensors available for:

  • Apache

  • Monit

  • Nginx

  • Processes (Plone, Zope, JBoss actually)

  • Repmgr

Requirements

  • Python >= 2.7

  • psutil for Python >= 2.0

  • Munin-node

Install

Install Egg

As usual, egg is installable using setuptools or pip, choice what you like. It is better and strongly suggested to use a virtualenv.

Setup plugins

The fast way to install, is using generate.py. To use, simply call generate script in bin directory.

$ <virtualenv_path>/bin/generate

It will test the environment and configure cache folders. For every sensor, it will ask a confirm. Every sensor creates in /etc/munin/plugin-conf.d a single configuration. If you want to check/change, that is the place.

Restart munin-node, munin-async (if you use that) and enjoy.

More details at

http://cippino.wordpress.com/tag/munin/ https://github.com/cippino/munin_plugins https://pypi.python.org/pypi/munin_plugins

Configure Nginx or Apache

Usually a manual configuration is not required, but in some case you have to modify some path or else. All munin plugins ask by they self during installation what they need, and they write in /etc/munin/plugin-conf.d. Keep attention if you reinstall using generate script because all setup will be overwriten.

For apache and nginx, you have to configure log file format using combined2:

Apache: LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" [[%D]]" combined2
Nginx: log_format combined2 '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" [[$request_time]]';

After combined2 definition, you have to change your virtualhost configuration using this format instead of usual “combined”.

Customize Setup

Every pluging you installed with “generate” script writes in /etc/munin/plugin-conf.d a specific config file. You can modify every option you find. It shouldn’t require munin-node reload.

Warning

Previous version of 4.3 are not complatible with 4.3 and later release, because some sensors are renamed/moved/merged, so apply an upgrade will lose all history informations.

Bugs Report and/or Collaboration

GitHub is the current store for sources:

https://github.com/cippino/munin_plugins

Any idea is welcome.

Changelog

  • 5.1
    • First snsr_errfiles working version

    • Changed cache path

    • Enhanced sensors info

  • 5.0.1
    • Fixed colorization of monit sensor

  • 5.0
    • Refactor to move all configurations in /etc/munin/plugin-conf.d files

  • 4.3
    • Merged plone_usage and java in processes_usage

  • 4.2:
    • Refactor setup and sensor using classes

  • 4.1.3
    • Fixed VAR folder creation

  • 4.1.2
    • Fixed Egg Configure Folders

  • 4.1.1
    • Fixed Documentation

  • 4.1
    • Refactor of env.py and configuration

    • Refactor of plone_usage from monolithic implementation to modular

    • Reduced number of Cache classes

  • 4.0
    • First Egg release

Known Problems

1 - Keep attection if you use SELinux or other kind of Security access framework, because you have to configure all rights correctly. Usually, my choice is to put down, because the call of monit get error about access denied.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

munin_plugins-5.1.tar.gz (20.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

munin_plugins-5.1-py2.7.egg (90.2 kB view details)

Uploaded Egg

File details

Details for the file munin_plugins-5.1.tar.gz.

File metadata

  • Download URL: munin_plugins-5.1.tar.gz
  • Upload date:
  • Size: 20.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for munin_plugins-5.1.tar.gz
Algorithm Hash digest
SHA256 837cc51db5b29f601f53b6eb46d6b3980cb5cc7a6077d8fb0c2c9c7e8c893115
MD5 b75b20cfb608e5c0e9b245289bfdc9bf
BLAKE2b-256 e1cfc1c022f84eb67da61468cd999b6b72331e43d7351ddf6a07135d4c1fec49

See more details on using hashes here.

File details

Details for the file munin_plugins-5.1-py2.7.egg.

File metadata

File hashes

Hashes for munin_plugins-5.1-py2.7.egg
Algorithm Hash digest
SHA256 578d38ebf4177e4b7ecf83fe1ed3c2de109e2fb6488dcc224526200867eddde3
MD5 99bfd423b848db49520adc9c68e2d764
BLAKE2b-256 e65cf22036632026e8fee6d9367b1f38ef0ea390d747953ee57b85a6849a988c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page