Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

%count% Is Broken In NSClient 0.5.x / CheckEventLog #781

Open
vmikhelson opened this issue Dec 24, 2022 · 0 comments
Open

%count% Is Broken In NSClient 0.5.x / CheckEventLog #781

vmikhelson opened this issue Dec 24, 2022 · 0 comments

Comments

@vmikhelson
Copy link

vmikhelson commented Dec 24, 2022

Issue and Steps to Reproduce

Variable "count" is not populated in CheckEventLog on Windows.

Run check_nrpe -H -c nrpe_CheckEventLog_userauth

NSXC.ini should have a line similar to the following:

;Eventlog Auth Failures
nrpe_CheckEventLog_userauth = CheckEventLog scan-range=-10m MaxWarn=1 MaxCrit=5 file=Security "filter=id=4625 and message not like 'Authz'"
unique=1 "syntax=^0%severity% ^1%source%^2(%count%)^4%message%"

Observe the "^2" tag always returns (0)


### Expected Behavior

Count should return the number of the message occurrences.

### Actual Behavior

Count always returns 0.

### Details

* Tried on NSClient++ versions: 0.5.2.10, 20, 35, 39, and 41
* OS and Version: Windows Server 2016
* Checking from: Nagios Core 4.4.7
* Checking with: check_nrpe
* 
### Additional Details

NSClient++ log:

Nothing relevant in the nsc.log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant