[Check_mk (english)] Special Agents

Hello there,

I have been thoroughly reading the checkmk documentation which is great. However, I am struggling with creating a special agent. The goal is to use the python request library to query various api. For example, a CheckPoint Security Management appliance. I was wondering if you could help get me started for example, how to create a very basic special agent?

Any help would be much appreciated, thanks.

···

Sent from my iPhone

Hi Robert,

a special agent consists of two parts minimal.

First part is the special agent producing and formatting the raw data.

The second part is the check who is then transforming your data to check results.

A good and small example is the Fritzbox routers. agent_fritzbox

The check for the output of this special agent is then the “fritz” check.

Best regards

Andreas

PS: new location for all CheckMK questions and requests - https://forum.checkmk.com

···

Am Fr., 6. Dez. 2019 um 17:47 Uhr schrieb Robert Knox robk86@hotmail.co.uk:

Hello there,

I have been thoroughly reading the checkmk documentation which is great. However, I am struggling with creating a special agent. The goal is to use the python request library to query various api. For example, a CheckPoint Security Management appliance. I was wondering if you could help get me started for example, how to create a very basic special agent?

Any help would be much appreciated, thanks.

Sent from my iPhone


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

Manage your subscription or unsubscribe

https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/checkmk-en

Hi Andreas,

That’s great, thanks for the guidance. I will look into this today.

Thanks

Robert

···

Sent from my iPhone

On 8 Dec 2019, at 19:49, Andreas Döhler andreas.doehler@gmail.com wrote:

Hi Robert,

a special agent consists of two parts minimal.

First part is the special agent producing and formatting the raw data.

The second part is the check who is then transforming your data to check results.

A good and small example is the Fritzbox routers. agent_fritzbox

The check for the output of this special agent is then the “fritz” check.

Best regards

Andreas

PS: new location for all CheckMK questions and requests -
https://forum.checkmk.com

Am Fr., 6. Dez. 2019 um 17:47 Uhr schrieb Robert Knox robk86@hotmail.co.uk:

Hello there,

I have been thoroughly reading the checkmk documentation which is great. However, I am struggling with creating a special agent. The goal is to use the python request library to query various api. For example, a CheckPoint Security Management appliance. I was
wondering if you could help get me started for example, how to create a very basic special agent?

Any help would be much appreciated, thanks.

Sent from my iPhone


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

Manage your subscription or unsubscribe

https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/checkmk-en

Hi Andreas,

I have created a special agent along with a check and places inside the following locations:

Local/share/check_mk/agents/special

Local/share/check_mk/checks

However, I cannot see this in the webgui wato under host and service parameters->datasource programs

How do I enable it and how do I tell a host to use it?

Thanks

Robert

···

Sent from my iPhone

On 8 Dec 2019, at 19:49, Andreas Döhler andreas.doehler@gmail.com wrote:

Hi Robert,

a special agent consists of two parts minimal.

First part is the special agent producing and formatting the raw data.

The second part is the check who is then transforming your data to check results.

A good and small example is the Fritzbox routers. agent_fritzbox

The check for the output of this special agent is then the “fritz” check.

Best regards

Andreas

PS: new location for all CheckMK questions and requests -
https://forum.checkmk.com

Am Fr., 6. Dez. 2019 um 17:47 Uhr schrieb Robert Knox robk86@hotmail.co.uk:

Hello there,

I have been thoroughly reading the checkmk documentation which is great. However, I am struggling with creating a special agent. The goal is to use the python request library to query various api. For example, a CheckPoint Security Management appliance. I was
wondering if you could help get me started for example, how to create a very basic special agent?

Any help would be much appreciated, thanks.

Sent from my iPhone


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

Manage your subscription or unsubscribe

https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/checkmk-en

Hi Andreas,

I have created a special agent along with a check and places inside the
following locations:

Local/share/check_mk/agents/special
Local/share/check_mk/checks

However, I cannot see this in the webgui wato under host and service
parameters->datasource programs

How do I enable it and how do I tell a host to use it?

Thanks

Robert

Sent from my iPhone

Hi Robert,

a special agent consists of two parts minimal.
First part is the special agent producing and formatting the raw data.
The second part is the check who is then transforming your data to check
results.

A good and small example is the Fritzbox routers. agent_fritzbox
The check for the output of this special agent is then the "fritz" check.

Best regards
Andreas

PS: new location for all CheckMK questions and requests -
https://forum.checkmk.com

<robk86@hotmail.co.uk<mailto:robk86@hotmail.co.uk>>:

Hello there,

I have been thoroughly reading the checkmk documentation which is great.
However, I am struggling with creating a special agent. The goal is to use
the python request library to query various api. For example, a CheckPoint
Security Management appliance. I was wondering if you could help get me
started for example, how to create a very basic special agent?

This is what the "Individual program call instead of agent access" is for I
think. Just put in /path/to/your/program and maybe some arguments like
hostname or what have you.

Any help would be much appreciated, thanks.

Sent from my iPhone
_______________________________________________
checkmk-en mailing list
checkmk-en@lists.mathias-kettner.de<mailto:checkmk-en@lists.mathias-kettner.
>

Manage your subscription or unsubscribe

···

On Wednesday, 11 December 2019 4:31:51 AM AEDT Robert Knox wrote:

On 8 Dec 2019, at 19:49, Andreas Döhler <andreas.doehler@gmail.com> wrote:
Am Fr., 6. Dez. 2019 um 17:47 Uhr schrieb Robert Knox
https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/checkmk-en

Richard is right.
I would then do the next steps on the command line, after configuring the “Individual program call instead of agent access”.

Do a “cmk --debug -vvI hostname” to check if something can be get from your target host.

Then you will see if this data is usable for your own checks.

Best regards

Andreas

···

Am Mi., 11. Dez. 2019 um 04:53 Uhr schrieb Richard James Salts checkmk@spectralmud.org:

On Wednesday, 11 December 2019 4:31:51 AM AEDT Robert Knox wrote:

Hi Andreas,

I have created a special agent along with a check and places inside the

following locations:

Local/share/check_mk/agents/special

Local/share/check_mk/checks

However, I cannot see this in the webgui wato under host and service

parameters->datasource programs

How do I enable it and how do I tell a host to use it?

Thanks

Robert

Sent from my iPhone

On 8 Dec 2019, at 19:49, Andreas Döhler andreas.doehler@gmail.com wrote:

Hi Robert,

a special agent consists of two parts minimal.

First part is the special agent producing and formatting the raw data.

The second part is the check who is then transforming your data to check

results.

A good and small example is the Fritzbox routers. agent_fritzbox

The check for the output of this special agent is then the “fritz” check.

Best regards

Andreas

PS: new location for all CheckMK questions and requests -

https://forum.checkmk.com

Am Fr., 6. Dez. 2019 um 17:47 Uhr schrieb Robert Knox >
<robk86@hotmail.co.ukmailto:robk86@hotmail.co.uk>:

Hello there,

I have been thoroughly reading the checkmk documentation which is great.

However, I am struggling with creating a special agent. The goal is to use

the python request library to query various api. For example, a CheckPoint

Security Management appliance. I was wondering if you could help get me

started for example, how to create a very basic special agent?

This is what the “Individual program call instead of agent access” is for I

think. Just put in /path/to/your/program and maybe some arguments like

hostname or what have you.

Any help would be much appreciated, thanks.

Sent from my iPhone


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de<mailto:checkmk-en@lists.mathias-kettner.

Manage your subscription or unsubscribe

https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/checkmk-en


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

Manage your subscription or unsubscribe

https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/checkmk-en