Documentation for special agents

Hi,

I want to create a special agent for our ERP system. Is there already a documentation for special agents available for the new check-api in version 2.0? (I only found this one: https://checkmk.de/cms_devel_check_specialagent.html :smiley: )

Hi Christoph,

as this question was asked several times, I will link two very good examples:

and

Have fun :grin:

@fayepal maybe some input for our manual?

4 Likes

Credits to @Dirk and @gcp

1 Like

Thanks!
Is it possible to create piggyback data for other hosts with my special agent?

Hi Christoph,

it is possible. The special agent for vsphere is returning piggyback data as well.

BR

Anastasios

2 Likes

Are there already examples (or migrated agents) for the new 2.0.0i version?

Normally you don’t have to change much.
If it is a python script you have only to change the header from “#!/usr/bin/env python” to “#!/usr/bin/env python3”
That was the only change if had done for my special agents.

2 Likes

Ok but later they should be changed to use the new CheckApi (or am i wrong?)

The special agent itself is only producing data output. Later the processing of this output will be done with the checks you wrote. These checks can then use the new CheckAPI. The old / classic checks should also work without bigger problems. I had only to modify the old “includes” to the normal “from … import *” like you have it in normal python scripts.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.