I try to rewrite a own developed 2.1 plugin to 2.3. Thanks to Andreas Redfish source, I can migrate the ruleset und the server_side parts. When try a discovery, CheckMK cannot find the special agent for this plugin.
I put my special agent under “cmk_addons/plugins/solidfire/special_agents/”
Is this path correct? Or is there another path to put the special agent into?
yes, this is correct.
There are two pitfalls I ran into :
The file name of the special agent has to match the name in ther server_side_call specification with agent_ prefixed and the .py extension.
So if the name is solidfire you need agent_solidfire.py
For changed rulesets you need at least to reload the site apache or do an omd restart
I was try several things, but CheckMK cannot find the Special_Agent.
Do I have to “register” the agent itself? I was hoping I can reuse the old python special agent.
There is no error when execute ‘cmk-update-config’
The error message in the CheckMK GUI:
‘[special_solidfire]: Program ‘agent_solidfire’ not found (exit code 127)’
Important a two files - one inside “libexec” folder and the special agent itself inside “special_agents”.
The “server_side_calls” files must also be in the right syntax.
My Redfish package you can use as an example.
If only the call of the special agent is the problem then you should solve it with the information from this package.
Many thanks Andreas. That was the missing piece of the puzzle. Now CheckMK also recognizes my Special Agent.
I saw the libexec directory in your Redfish plugin, but thought it was something special that I didn’t need myself.
I have a (probably stupid) question about this: Why the “detour” via the libexec folder?
The files in there call the special agent in “special_agent”-folder. Can’t the special agent be placed directly in the libexec folder?