Couple of simple steps to debug munin plugins
First check if munin recognize the plugin.
Execute munin plugin in regular mode:
munin-run plugin_nameyou will get output in format of:
some.value XX
then execute munin plugin in configuration mode:
munin-run plugin_name configyou will get output in format of:
graph_title Great Plugin
graph_args --upper-limit 100 -l 0
graph_vlabel %
graph_category some_category
graph_info This is the best munin plugin ever.
something.label LABEL
If you have any problems they can be related to the plugin having a permission problem.
Next step is to test the plugin connection via port 4949
Run a telnet on munin node port 4949
telnet munin-node.example.com 4949You will get output in format of:
Trying munin-node.example.com...
Connected to munin-node.example.com.
Escape character is '^]'.
# munin node at munin-node.example.com
then type in console:
fetch plugin_nameor
fetch plugin_name configIt will output something similar to
munin-run.
Then plugin works with
munin-run command but not through telnet execution, you most likely to have a local
PATH problem. Tip: Set env.PATH for the plugin in the plugin's environment file.
Provided by:
SiQ systems,
Cloud experts