Opened 5 years ago
Last modified 7 months ago
#215 new enhancement
Modify Regexp Count
| Reported by: | big-byrd | Owned by: | mickem |
|---|---|---|---|
| Priority: | 1 | Milestone: | 0.4.2 |
| Component: | CheckSystem | Version: | 0.3.9 |
| Severity: | Feature Requests | Keywords: | regexp count |
| Cc: | bigbyrd@… |
Description
mickem,
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.
-Mark
Change History (3)
comment:1 Changed 16 months ago by mickem
- Milestone set to 0.4.1
- Version set to 0.3.9
comment:2 Changed 16 months ago by mickem
- Component changed from check_nrpe to CheckSystem
comment:3 Changed 7 months ago by mickem
- Milestone changed from 0.4.1 to 0.4.2








