---
title: "How to monitor a specific Microsoft windows eventid"
description: "Monitoring a specific Microsoft Windows event ID with OP5 Monitor uses the NSClient++ check_eventlog function. This allows creating a service that alerts when the specified event ID occurs within the last 24 hours."
url: "https://docs.itrsgroup.com/docs/faq/op5/360020053814-op5-monitor-how-to-monitor-a-specific-microsoft-windows-eventid/index.html"
---
## Question

---

How to monitor a specific Microsoft windows eventid with OP5 Monitor?

## Answer

---

You can use a function builtin to NSClient. The function is called check\_eventlog. Download the latest version of NSClient++ from this page:

When you have installed the NSClient agent on the Windows host. create a new check command on the OP5 server with the following definition:

```
$USER1$/check_nrpe -H $HOSTADDRESS$ -c check_eventlog -a "filter=id=$ARG1$"
```

Create a service that uses the check command above and set the following parameter:

**check\_command\_args:** 903

Newer versions of NSClient and OP5 Monitor also have an out of the box check called **check\_nrpe\_win\_eventlog** that is defined as:

```
$USER1$/check_nrpe -s -H $HOSTADDRESS$ -c CheckEventLog -a "$ARG1$"
```

In this case, the service's parameter will be:

**check\_command\_args:** filter=id=903

![Screenshot](https://docscdn.itrsgroup.com/faq/images/op5/360020053814-inline-1-mceclip0.png)

This service will now check for event-id 903 in the and warn you if it finds any events with that id during the latest 24 hours.

The complete documentation for check\_eventlog can be found here:

<https://docs.nsclient.org/reference/windows/CheckEventLog/>

It's highly recommended that you read through the official NSClient++ documentation above and build your own check command based on the official documentation and your own needs. Many advanced options are available.


