How to Setup check_winevent?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
gdolidze
Posts: 154
Joined: Tue Apr 07, 2015 10:07 am

How to Setup check_winevent?

Post by gdolidze »

I wanna tryout check_winevent.
Can someone help me set it up.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: How to Setup check_winevent?

Post 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
gdolidze
Posts: 154
Joined: Tue Apr 07, 2015 10:07 am

Re: How to Setup check_winevent?

Post by gdolidze »

Someone suggested to use it.

How would you setup the windowslog?
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: How to Setup check_winevent?

Post 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.
gdolidze
Posts: 154
Joined: Tue Apr 07, 2015 10:07 am

Re: How to Setup check_winevent?

Post by gdolidze »

Ohh I meant say Check event log.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: How to Setup check_winevent?

Post 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.
gdolidze
Posts: 154
Joined: Tue Apr 07, 2015 10:07 am

Re: How to Setup check_winevent?

Post by gdolidze »

Is this the same thing as Windows event log from configuration wizard?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: How to Setup check_winevent?

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
gdolidze
Posts: 154
Joined: Tue Apr 07, 2015 10:07 am

Re: How to Setup check_winevent?

Post by gdolidze »

I get this error when trying to install the agent
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: How to Setup check_winevent?

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked