[Check_mk (english)] Check MK and Puppet API

Hi Community

Did any of you had a chance or an use case where in a service ‘x’ goes down in check mk console and as a part of auto healing process , check mk should send contact puppet to do the auto healing of the service which was down.(I also understand that check mk has event handling capability too but however we wanted to leverage puppet as well in auto handling scenario .

All I need to know is can check mk invokes puppet to perform some action .

If yes do we have an api where in check mk talks to puppet ?

Thanks

There is a generic mechanism in Check_MK for executing tasks.

In the raw edition it's called Nagios event handlers, they have to be
configured in the Nagios config files in ~/etc/nagios/conf.d:
https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/3/en/eventhandlers.html
and a snippet in extra_service_conf["event_handler"]:
https://www.mail-archive.com/checkmk-en@lists.mathias-kettner.de/msg02235.html

The enterprise edition features alert handlers:
https://mathias-kettner.com/cms_alert_handlers.html

You can call anything from these scripts.

Regards

···

On 21.01.19 20:51, Nagios CMK wrote:

All I need to know is can check mk invokes puppet to perform some action .

--
Robert Sander
Heinlein Support GmbH
Schwedter Str. 8/9b, 10119 Berlin

Tel: 030 / 405051-43
Fax: 030 / 405051-19

Amtsgericht Berlin-Charlottenburg - HRB 93818 B
Geschäftsführer: Peer Heinlein - Sitz: Berlin

Hallo,
auto healing can cause problems.
So please ensure that you get informations when an action is triggered.

Ralf

···

Am 21.01.2019 um 20:51 schrieb Nagios CMK:

Hi Community

Did any of you had a chance or an use case where in a service 'x' goes down in check mk console and as a part of auto healing process , check mk should send contact puppet to do the auto healing of the service which was down.(I also understand that check mk has event handling capability too but however we wanted to leverage puppet as well in auto handling scenario .

All I need to know is can check mk invokes puppet to perform some action .
If yes do we have an api where in check mk talks to puppet ?