#215 new enhancement
Modify Regexp Count
|Reported by:||big-byrd||Owned by:||mickem|
|Severity:||Feature Requests||Keywords:||regexp count|
A few months ago, you helped me resolve a bug with regexp and it's been working great since. Thanks for all of your help.
I was wondering if I could make a request to modify the way NSCPP handles item counts when using regexp expressions.
Currently, if I run a Nagios command such as
check_nrpe!checkProcState -a match=regexp MinCritCount=2 ShowAll GICSInbound.*
to check for processes GICSInbound.exe and GICSInboundSOS.exe, NSCPP will return false critical since it is looking for two running instances of GICSInbound and GICSInboundSOS (when only one of each are running), instead of two instances of the regular expression GICSInbound.*
In my opinion, the count parameter should count regexp instance matches rather than apply the count to each regexp match.
Just a thought - this would help immensely since it works as a great shortcut if you have multiple processes with a similar prefix or suffix (don't need to make as many service object definitions in Nagios configuration). Also, regexp works as a good workaround for boxes which truncate process names with more than 15 characters due to NetBIOS limitation.
You do great work, much appreciated.