Custom OneAgent healthcheck plugin | oneagentctl --healthcheck

Hello everyone!

Maybe this plugin will be useful, especially in large organizations when the right hand does not know what the left hand is doing.  At the same time monitoring is critical too.

Great use case: when somebody from the security team or the Ops team changes the capabilities and rights to the Dynatrace OneAgent folder without having any idea - how it will affect the system, just execute his own internal instructions & restrictions.

custom_healthcheck_plugin

Plugin uses oneagentctl healthcheck command.

Plugin uses status metrics. Consumes only one metric.

default path to oneagentctl: /opt/dynatrace/oneagent/agent/tools/oneagentctl

default path to logs: /var/log/dynatrace/oneagent/

recommended path to healthcheck file: /var/log/dynatrace/oneagent/healthcheck

mode - 0 - execution in minutes (00, 15, 30, 45) mode - 1 - execution every minute

Detects:

FAILURE_user_and_group

FAILURE_file_structure

FAILURE_file_capabilities

FAILURE_file_checksum

FAILURE_selinux

FAILURE_apparmor

FAILURE_installer_logs

FAILURE_watchdog_logs

Plugin works only on linux.

Regards,

Alex Romanenkov

11 Likes

Very good job.

Is this developed by Dynatrace or customer?  Located on https://www.dynatrace.com/hub/?filter=all?

Great:) Very good manual!

Thank you @Romanenkov_Al3x

Thanks. This is developed by me.

It was an interesting task. I’m glad to be able to share some results here.

To post in the hub, I think I need to finish windows, but unfortunately, I have a huge number of projects and other work.

Regards,

Alex Romanenkov

Thanks

@Romanenkov_Al3x looks amazing, I will use this plugin. Thanks a lot for building this.

Thanks,

Tijust