Results of ansible job

Use case: I want to send the result of ansible job to checkmk.

I thought I might do this with a webhook. But this seems to be impossible. Legacy solutions such as sending snmptraps are not desired.

Do you see any other possiblities?

Hi Markus,

one possibilty could be to write a spool file at the end of the Ansible playbook that contains local check output, which checkmk then uses to create a Service.
E.g.

/var/lib/check_mk_agent/spool/ansible.txt

<<<local>>>
0 "Ansible-Playbook-ABC" - Run was successfull

This is described here:

Another Option could be pushing the data in a syslog compliant form into the Event Console.

The spool option fits perfectly my use case, as I do have agents on my systems.

1 Like

Can you please mark the answer as the solution if it solved your problem?