PDA

View Full Version : regexp


bobrivers
24-02-2010, 18:41
I'm trying to use windows eventlog monitoring with 1.8.1.

If I specify something like eventlog[System,,Error], it works. But, I would like to filter it. I would like that zabbix could retry just a small set of the errors.

So, I think, this is way zabbix team implemented regex support (eventlog[name<,regexp><,severity><,source><,eventid><,maxlines><,mode>]).

I'm not an expert in regular expression, far from that. I googled and I found lot's of controversy about negate strings. The most common solution that I found is to use something like ^(?!.*bar).*$ (in my case I don't want events related with "printer", so, I created a item:

eventlog[System,^(?!.*printer).*$,Error]

But, this isn't working. Nothing is retrieved.

Does someone has any idea how to do that?

TIA,

Bob

Obs.: this site has good information http://wiki.tcl.tk/989

bobrivers
26-02-2010, 18:04
up!

I exchange this help with one that I have in order to integrate zabbix with microsoft baseline security analyzer!!!

bobrivers
01-03-2010, 18:36
Nobody replied, but anyway, I posted in the cookbook section how I did the integration between zabbix and mbsa.

Jun.Liu
03-03-2010, 00:13
it's a good idea. :)