Page 1 of 2

How to Setup check_winevent?

Posted: Thu May 28, 2015 9:54 am
by gdolidze
I wanna tryout check_winevent.
Can someone help me set it up.

Re: How to Setup check_winevent?

Posted: Thu May 28, 2015 12:42 pm
by jdalrymple
nsclient++ can run filters against windows event logs natively. Do you have a particular reason you wish to use this other plugin instead?

http://docs.nsclient.org/reference/CheckEventLog.html

Code: Select all

[jdalrymple@localhost libexec]$ ./check_nrpe -H <winhost> -c check_eventlog -a scan-range=-4800m file=System filter="level in ('warning', 'error') AND source = 'Service Control Manager'"
WARNING: 0/1 System Service Control Manager (The VMware Workstation Server service terminated unexpectedly. It has done this 1 time(s). The following corrective action will be taken in 60000 milliseconds: Restart the service.)|'count'=1;0;5

Re: How to Setup check_winevent?

Posted: Thu May 28, 2015 12:53 pm
by gdolidze
Someone suggested to use it.

How would you setup the windowslog?

Re: How to Setup check_winevent?

Posted: Thu May 28, 2015 1:05 pm
by jdalrymple
gdolidze wrote:How would you setup the windowslog?
I don't follow - what is the windowslog?

Note that I'm monitoring the Windows Event Log in the example I provided if that's what you're referring to.

Re: How to Setup check_winevent?

Posted: Thu May 28, 2015 1:06 pm
by gdolidze
Ohh I meant say Check event log.

Re: How to Setup check_winevent?

Posted: Thu May 28, 2015 1:12 pm
by jdalrymple
The documentation and an example are in my earlier post. What is it that you are seeking to achieve that my example doesn't give you enough information to work out? We can help, but we'd need more information I guess.

Re: How to Setup check_winevent?

Posted: Thu May 28, 2015 1:26 pm
by gdolidze
Is this the same thing as Windows event log from configuration wizard?

Re: How to Setup check_winevent?

Posted: Thu May 28, 2015 1:51 pm
by tgriep
No, they are different. Here is a link to the document that shows how to install and configure the Windows system to be used with the Windows Event Log Monitoring Wizard.
http://assets.nagios.com/downloads/nagi ... entLog.pdf

Re: How to Setup check_winevent?

Posted: Thu May 28, 2015 2:00 pm
by gdolidze
I get this error when trying to install the agent

Re: How to Setup check_winevent?

Posted: Thu May 28, 2015 2:31 pm
by lmiltchev
The agent will most probably work, despite of the error - you will need to click on the "OK" button 2-3 times to continue.

In regards to the error - this is from the developer:
The NagEvLog agent is 32bit and so does not appear to reliably install or run correctly under 2k8 64bit. Some people have recompiled in a 64bit environment - the 64bit binary (untested by me and without an install package around it) is available for download in the same place as the normal install package.

Until I get a 64bit MS Visual Studio development environment to compile and test with, I cannot provide a 64bit supported version.
http://www.steveshipway.org/forum/viewt ... 6f44f300b6