How to write a special agent

Is there any more documentation about writing a special agent beside:

https://checkmk.com/cms_datasource_programs.html#specialagents
https://checkmk.com/cms_legacy_devel_agentbased.html

thanks, Manuel

If you can read German (I suppose you do) then you might want to read Wie schreibt man an besten einen Check für eine REST API Abfrage.

2 Likes

Hallo Dirk

Danke für den Hinweis, ich schaue mir das gleich mal an.

Manuel

A special agent is just a program that outputs agent data on stdout which can be consumed by the check engine.
Agent data is anything that is separated by agent section headers.

1 Like

Yes I wrote one for the Infinidat storage systems we have. It’s not too much different from writing a local agent-based check. Maybe have a look at the existing ones like Netapp API to give you a few pointers.

I had done it the same way like most others here. Take one of the existing special agents and modify it for the new type of device or service.
Over the years there are some special agents created.

3 Likes