ERROR - getPlugins (minjson): exception

You may see this error in your agent logs followed by the agent crashing.

This article is for our v1 agent and will soon be deprecated.

main - ERROR - getPlugins (minjson): exception = Traceback (most recent call last): 
File "/usr/bin/sd-agent/checks.py", line 2206, in getPlugins 
pluginClass = getattr(importedPlugin, pluginName) 
AttributeError: 'module' object has no attribute 'minjson'
main - ERROR - getPlugins (plugins): exception = Traceback (most recent call last): 
File "/usr/bin/sd-agent/checks.py", line 2206, in getPlugins 
pluginClass = getattr(importedPlugin, pluginName) 
AttributeError: 'module' object has no attribute 'plugins'

This is caused by setting the plugin directory in your config.cfg file to the same directory as the agent files e.g. /usr/bin/sd-agent. To parse plugins, the agent loads every Python file within the directory you specify for plugins to see if it can execute the file. If you set it to the same directory as the agent files, it will be parsing itself, which causes this error.

To fix the problem, create a separate directory for your plugins and change the plugin_directory value to that location e.g. /usr/bin/sd-agent/plugins.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Monday  —  Friday.

10am  —  6pm UK.

Dedicated Support.