File: use.rst

package info (click to toggle)
munin 2.0.76-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,064 kB
  • sloc: perl: 11,684; java: 1,924; sh: 1,632; makefile: 636; javascript: 365; python: 267
file content (97 lines) | stat: -rw-r--r-- 2,325 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
.. _plugin-use:

=====================
 Using munin plugins
=====================

.. index::
   pair: plugin; installing

Installing
==========

The default plugin directory is /etc/munin/plugins/.

To install a plugin, place it in the plugin directory, and make it
executable.

You can also place the plugin elsewhere, and install a symbolic link
in the plugin directory. All the plugins provided with munin are
installed in this way.

.. index::
   pair: plugin; configuration

Configuring
===========

The plugin configuration directory is /etc/munin/plugin-conf.d/. The
syntax is:

user <username>
  The user the plugin will run as.

  Default: munin

group <groupname>
  The group the plugin will run as

  Default: munin

env.variablename <variable content>
  Defines and exports an environment variable called "variablename"
  with the content set to <variable content>.

  There is no need to quote the variable content.

.. note::

   When configuring a munin plugin, add the least amount of extra
   privileges needed to run the plugin. For instance, do not run a
   plugin with "user root" to read syslogs, when it may be sufficient
   to set "group adm" instead.

Example:

.. index::
   triple: example; plugin; configuration

::

   [pluginname]
   user             username
   group            groupname
   env.variablename some content for the variable
   env.critical     92
   env.warning      95

Plugin configuration is optional.

.. index::
   pair: plugin; testing

Testing
=======

To test if the plugin works when executed by munin, you can use the
:ref:`munin-run` command.

.. code-block:: bash

   # munin-run myplugin config

   # munin-run myplugin


Download munin plugins
======================

The munin project maintains a set of core plugins that are distributed in munin's releases.
Additionally the munin project maintains the
`contrib <https://github.com/munin-monitoring/contrib>`_ repository. It contains more than a
thousand plugins contributed by a wide range of people.
In order to use these plugins they can either be downloaded manually or managed via the
:ref:`munin-get` plugin tool.

Additionally the munin plugins in the `contrib <https://github.com/munin-monitoring/contrib>`_
repository can be browsed via the `Munin Plugin Gallery <http://gallery.munin-monitoring.org>`_.