Windows events by source

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
vpg
Posts: 3
Joined: Mon Sep 30, 2013 9:41 am

Windows events by source

Post by vpg »

Hi everyone.

I would like to know if someone can help me. I need monitor Windows events by source that produce them. For example, if the source is Metaframe, i must know if, in a time period X, there were 1 or more errors or warnings for this source.

Sorry for my English.

Thanks in advance ;)
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Windows events by source

Post by slansing »

How are you currently monitoring your event logs?
vpg
Posts: 3
Joined: Mon Sep 30, 2013 9:41 am

Re: Windows events by source

Post by vpg »

Hi.

i´m using nagios´ plugin "check_wmi_plus". With this plugin i only can get the number of errors or warnings in the Windows log.

Best regards
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Windows events by source

Post by slansing »

Though we do not often recommend it due to installation issues in the past you could try using:

http://assets.nagios.com/downloads/nagi ... entLog.pdf
vpg
Posts: 3
Joined: Mon Sep 30, 2013 9:41 am

Re: Windows events by source

Post by vpg »

Thanks for your recommendation but I can´t install the agent in the Windows Machine. I have to use WMI...
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Windows events by source

Post by sreinhardt »

If that is the case, I do not know of a plugin that will do what you need. You certainly can modify the check_wmi_plus script to your liking though! I think if you added a second filter for application name or something along those lines and counted the time period from there it should meet your needs.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
mickem
Posts: 16
Joined: Tue Oct 08, 2013 2:17 am
Location: Stockholm, SWEDEN
Contact:

Re: Windows events by source

Post by mickem »

Just for completion NSClient++ can do this very easily but requires an agent to be installed as well (which was not possible in your case).

Code: Select all

check_eventlog log=Application "filter=source='my program'" "crit=count > 0"
// Michael Medin
// Michael Medin @mickem, blog.medin.name

Author of NSClient++ - http://nsclient.org
NSClient++ 0.4.2 Documentation: http://docs.nsclient.org
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Windows events by source

Post by sreinhardt »

thanks for the additional info. Locking as this is a week plus old with no replies from the original poster.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked