Event handler for Windows

I’m looking to set up an event handler for Windows hosts. The idea is that when an event is triggered on the checkmk server, the server will respond by telling the Windows machine to execute a certain local script.

We are running the raw edition. According to:

Alert handlers - Responding to problems automatically

this means that we need to use Nagios Event Handlers as described in:

https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/3/en/eventhandlers.html

Unfortunately, the example on this page is for Linux.

Can somebody share a simple example with me of how they set this up for a Windows host?

It seems to be necessary to install NSClient++ on the Windows hosts, right? Is this necessary so that the checkmk server can tell the client to execute the script?

I’m curious as to how the enterprise edition achieves this? Does it maybe install something on the Windows hosts that does the same thing as NSClient++?

In

@r.sander says it’s also necessary to add ‘a snippet in extra_server_conf[“event_handler”]’ and then shares a link to the mail archives, but the link no longer points to an active page. Can someone point me to the original content of this link?

Thanks,
Matthew

This is because a Nagios event handler is always a script that runs on the Linux monitoring server.
What you do inside your script is up to you. This also means you have to solve the “issue” of connecting to your Windows host from the Linux monitoring server.

1 Like

Hello,

For security reasons it is not recommended to give monitoring server access to the monitored hosts.
Nevertheless, what you are looking for is winrm. On Linux that should help you:

regards

Michael

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.