github.com/mackerelio/mackerel-agent-plugins@v0.89.3/mackerel-plugin-munin/README.md (about)

     1  mackerel-plugin-munin
     2  =======================
     3  
     4  munin (wrapper) custom metrics plugin for mackerel.io agent.
     5  
     6  ## Synopsis
     7  
     8  ```shell
     9  mackerel-plugin-munin -plugin=<munin-plugin-executable> [-plugin-conf-d=<munin-plugin-conf-dir>] [-name=<mackerel-metric-name>] [-tempfile=<tempfile>]
    10  ```
    11  
    12  * this executes the munin-plugin, first with an `config` argument so that this will get graph definitions, then with no argument so that this will get values.
    13  * when `-plugin-conf-d` specified, this reads `env.KEY VALUE` entries from files of the dir and set those as environment variables before plugin executions. (other kinds of plugin-conf-entry are not implemented)
    14  
    15  ## Example of mackerel-agent.conf
    16  
    17  ```
    18  [plugin.metrics.nfsd]
    19  command = "/path/to/mackerel-plugin-munin -plugin=/usr/share/munin/plugins/nfsd"
    20  ```
    21  
    22  ```
    23  [plugin.metrics.bind9]
    24  command = "/path/to/mackerel-plugin-munin -plugin=/etc/munin/plugins/bind9 -plugin-conf-d=/etc/munin/plugin-conf.d"
    25  ```
    26  
    27  ```
    28  [plugin.metrics.postfix]
    29  command = "MUNIN_LIBDIR=/usr/share/munin /path/to/mackerel-plugin-munin -plugin=/usr/share/munin/plugins/postfix_mailqueue -name=postfix.mailqueue"
    30  ```
    31  (some munin-plugins sources `$MUNIN_LIBDIR/plugins/plugin.sh`)