NagEventLog is a windows agent that examines the EventLog, filters it, and forwards passive alerts to Nagios via NSCA. Now with encryption support! Supports Windows 2000 and later.
More information can be found here:
NagEventLog allows you to have windows event log entries filtered and passed back to your Nagios server. Two methods I have used are:
When you have alot of Windows Servers and would like to add an EventID to the Filter, it is a real pain to update on a server by server basis. So using a GPO object, you can control the filters directly from a policy without having to manually update each individual server.
Create a custom administrative policy template. Below is the "nageventlog.adm" file I used to filter out select Event IDs.
; nageventlog.adm
;;;;;;;;;;;;;;;;;;;;;
CLASS MACHINE ;;;;;;
;;;;;;;;;;;;;;;;;;;;;
CATEGORY !!nagiosfilter
KEYNAME "SOFTWARE\Wow6432Node\Cheshire Cat\Nagios\Filter0"
POLICY !!changenagiosfilter
PART !!NotEventID CHECKBOX
VALUENAME "notID"
VALUEON NUMERIC 1
VALUEOFF NUMERIC 0
END PART
PART !!ChangeFilter0IDs EDITTEXT REQUIRED
VALUENAME "ID"
DEFAULT !!filterdefault
END PART
PART !!changefilter0IDstext TEXT END PART
END POLICY
END CATEGORY
[STRINGS]
nagiosfilter="Nagios Filtering"
changenagiosfilter="Change Nagios Filter0"
ChangeFilter0IDs="Event IDs that are ignored by Nagios"
changefilter0IDstext="Comma seperated list of Event IDs to exclude"
filterdefault="21293,21248,26020,26009"
You can use the technique above to do a variety of things and tweak things from a central location across the domain environment.
While the 64bit version of NagEventLog v1.9.1 installed on my 64bit Windows 2008 server, I was unable to use the GUI to configure the filters. However if you visit Steve Shipway's NagEventLog site directly, you can download replacement executables that allow it to properly run in Server2008. I replaced the files, restarted the service and then GUI tool worked correctly.