Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install gocept.munin

How to install gocept.munin

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install gocept.munin
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.1 Available View build log
Windows (64-bit)
0.1 Available View build log
Mac OS X (10.5+)
0.1 Available View build log
Linux (32-bit)
0.1 Available View build log
Linux (64-bit)
0.1 Available View build log
 
License
ZPL 2.1
Dependencies
Imports
Lastest release
version 0.1 on Jan 5th, 2011

This package provides base classes for defining Munin graphs and a main function to handle munin-typical symlinked scripts.

Munin plugin scripts

A single plugin file defines (multiple) graphs by subclassing the bases as mentioned in the next section. The main function uses the called script's filename to determine which of the defined graphs is relevant.

Data for each graph is determined by retrieving a text file from a URL (with possibly given basic authentication data).

The format for the data is plain/text wich each line having key/value pairs split by ':'. The values are expected to be floats.

All graph bases expect two environment variables to be set:

URL The URL at which to retrieve data from. Must include a '%s' which encodes the graph name. AUTH HTTP basic authentication information. Either empty or in the form of 'username:password'.

The environment variables can be configured using munin's plugin-conf.d like this:

The plugin is called prefix_something_1:

[prefix_*]

System Message: ERROR/3 (<string>, line 36)

Inconsistent literal block quoting.

env.URL http://foo:8900/myapp/munin?data=%s env.AUTH admin:admin

Graph bases

The following base classes are currently defined:

SimpleGraph A simple graph with a single value that is plotted as an absolute value.

SimpleMultiGraph Multiple absolute values plotted on the same graph and scale.

more bases will be added as needed.

Main function

The main function handles munin-typical type_option_index symlink scripts by looking at the name from which the main script was called.

Example script

Here's a sample script that you could symlink into the plugins directory:

System Message: WARNING/2 (<string>, line 63)

Literal block expected; none found.

from gocept.munin.client import SimpleGraph, main

class people(SimpleGraph): name = key = 'people' title = 'How many people are there?' category = 'Office'

main()

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.