-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with external plugin #91
Comments
I compared the output of my plugin with yours and I noted two things. To make the plugin work in Windows, after doing my reasearch, I found out I had to output a dot as the last line, for both the config and the values output.
And that's for the output side of the plugin. For what regards configuring the plugin in munin-node's config file try these two things: a) To avoid problems I put the plugin code under munin-node's plugin folder, in my case it's C:\Program Files (x86)\Munin Node for Windows\plugin. Do this to avoid, you never know, permission or security problems arising by using other folders/drives. Obviously adapt the path to the one on your system, if you're not sure where munin-node is installed just open Services and you'll find the full path. b) Use a single command to declare your plugin in munin-node.ini. For e.g. I had problems passing parameters so I realized that I had to use a single command. This is my config:
In your case try changing your configuration line (Plugin01="python W:\sat2.py") to this (no double quotes):
and runSat2.bat will contain the following:
Be sure that python.exe is reachable by adding python's executable folder to the PATH environment and check it on the command line running the command SET PATH. Hope this helps. |
Hey there,
i have written a external Plugin to get some values of a Text file (BDADataEx logs in a txt file)
if i try to get the values from the file it looks like this:
For me it looks right. Maybe it isn't.
I tried to add the Plugin in the External Plugin section in the munin-node.ini file like this:
Plugin01="python W:\sat2.py"
then when i call munin-node.exe it gives this output:
Loaded plugin [class ExternalMuninNodePlugin - TBS_Signal]
when i add like described:
Plugin01=W:\sat2.py
i get
ERROR:Failed to load External plugin: W:\sat2.py
Even if it says its loaded, it wouldn't generate any graphs.
Maybe someone knows what i did wrong.
Python file:
The text was updated successfully, but these errors were encountered: