We have a check in place on an old Icinga1 server, using NSClient, that we are attempting to migrate over to Icinga2. This check monitors the windows event log for a specific pattern and flags when the criteria is met. This is how it looks on the command line:
./check_nrpe -2 -n -H HOSTNAME -t 60 -c checkeventlog -a file="application" MaxWarn=1 MaxCrit=1 "filter=generated > -10m AND id=17061" truncate=800 descriptions unique "syntax=%message%" OK: No entries found|'count'=0;1;1
So as you can see we have the check passing correctly from the command line. However I am struggling to configure this correctly within the Icinga2 config. Please could I have some assistance regarding how the check / service command should look?
Appreciate more information may be needed so please just let me know what I should provide to get this in place.