lausser / check_logfiles

A plugin (monitoring-plugin, not nagios-plugin, see also http://is.gd/PP1330) which scans logfiles for patterns.
https://omd.consol.de/docs/plugins/check_logfiles/
GNU General Public License v2.0
46 stars 27 forks source link

It needs to be able to do a multiline regex match or force a match of all the patterns #79

Open manoflinux opened 1 year ago

manoflinux commented 1 year ago

It needs to be able to do a multiline regex match or force a match of all the patterns. Because that way it would have much more precise matching, I tried making two patterns and requiring two matches, which does work, but will also react if instead of having both patterns it has one of them twice. If I could do a multiline regex match or require all regex patterns of the same level(ie two critical patterns or two warning patterns) to be included to react. Example if I had two or more critical patterns, lets say aaa and bbb, and you added an additional parameter I assume to tell it to match all then when I had aaa twice in the log output instead of aaa and bbb it would not react, but if it had aaa and bbb, then check_logfiles would react.