Nagios check_logfiles can control EventID Error codes?

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.
feltham99
Posts: 9
Joined: Wed Apr 02, 2014 9:32 am

Nagios check_logfiles can control EventID Error codes?

Post by feltham99 »

Hi guys, someone can help me to control EventID error codes with Nagios check_logfiles plugin? there is a way to exlude 4 example only some Error Codes of eventID 1058?
Thanks

Daniele
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios check_logfiles can control EventID Error codes?

Post by abrist »

Possibly, Could you link the url to the plugin and post some example of the checks you are currently running?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
feltham99
Posts: 9
Joined: Wed Apr 02, 2014 9:32 am

Re: Nagios check_logfiles can control EventID Error codes?

Post by feltham99 »

4 example:

@searches = ({
tag => 'System',
type => 'eventlog',
options => 'eventlogformat="%w src:%s id:%i %m",nosavethresholdcount',
eventlog => {
eventlog => 'System',
include => {
eventtype => 'error',
eventid => '1058',
operation => 'and',
},
},
criticalthreshold => 6,
criticalpatterns => '.*'
})
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios check_logfiles can control EventID Error codes?

Post by tmcdonald »

I think abrist wanted you to show the actual command you would run from the command line, with the output you receive. Also if you could link to the URL of the exact plugin you are using, wherever you downloaded it from.
Former Nagios employee
feltham99
Posts: 9
Joined: Wed Apr 02, 2014 9:32 am

Re: Nagios check_logfiles can control EventID Error codes?

Post by feltham99 »

Sorry 4 my limited knowledge & my poor English language..... i would like to know if there is a way to filter errorcodes of EventID from MS Event Viewer, above i posted a current nagios.cfg files from a host monitored with check_logfiles plugin. (C:\Program Files\NSClientNME64\plugins\check_logfiles)

Someone can tell me if is possible exclude this errocode frome EventID 1058?:

SupportInfo1 4
SupportInfo2 840
ProcessingMode 0
ProcessingTimeInMilliseconds 2325
ErrorCode 1330
ErrorDescription Logon failure: the specified account password has expired.

Thanks a lot.

Daniele.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Nagios check_logfiles can control EventID Error codes?

Post by sreinhardt »

Could you post a link to where you found this plugin? Then we can take a look at it and actually try filtering out events and let you know if it is possible.
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.
feltham99
Posts: 9
Joined: Wed Apr 02, 2014 9:32 am

Re: Nagios check_logfiles can control EventID Error codes?

Post by feltham99 »

sreinhardt wrote:Could you post a link to where you found this plugin? Then we can take a look at it and actually try filtering out events and let you know if it is possible.
Here:

https://labs.consol.de/repo/stable/#_centos_redhat

Thanks
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Nagios check_logfiles can control EventID Error codes?

Post by sreinhardt »

That is a linux based set of repo lists, how does this apply to something you have running on a windows machine?
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.
feltham99
Posts: 9
Joined: Wed Apr 02, 2014 9:32 am

Re: Nagios check_logfiles can control EventID Error codes?

Post by feltham99 »

sorry Nagios infrastructure has installed on Linux Centos servers & Microsoft WMI Proxy, & monitoring Micorsoft hosts also with NSCLient++
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios check_logfiles can control EventID Error codes?

Post by slansing »

That still does not tell us what need to know, sreinhardt asked you for a link to where you got the plugin, you send us a list of *nix repos.
Locked