Opened 6 years ago
Closed 6 years ago
#50 closed defect (fixed)
Counters using Colons become truncated at colon
| Reported by: | Rich | Owned by: | mickem |
|---|---|---|---|
| Priority: | 1 | Milestone: | 0.3.0 |
| Component: | CheckSystem | Version: | 0.2.6 |
| Severity: | Bugs | Keywords: | |
| Cc: |
Description
Currently, the behaviour of a counter (using check_nrpe) is to truncate at a colon, even if the colon is specifically escaped.
The command:
check_nrpe -H soupdragon -p 5666 -c CheckCounter '
PhysicalDisk?(1 C: S: D: E:)
Avg. Disk Read Queue Length' -a ShowAll MaxWarn=10% MaxCrit=70%
Gives rise to the log entry:
2007-04-13 11:01:33: debug:.\NSClient++.cpp:370: Injecting: CheckCounter:
PhysicalDisk?(1 C: S: D: E:)
Avg. Disk Read Queue Length, MaxWarn=10%, MaxCrit=70%
2007-04-13 11:01:33: debug:.\NSClient++.cpp:390: Injected Result: UNKNOWN -- Unknown argument:
PhysicalDisk?(1 C
2007-04-13 11:01:33: debug:.\NSClient++.cpp:391: Injected Performance Result:
All counters I have tried have given the same problem. Is there any way to allow the colon to be escaped, and parsed correctly as a component of the counter, and not a delimiter?
Change History (1)
comment:1 Changed 6 years ago by mickem
- Resolution set to fixed
- Status changed from new to closed
- testcase_result set to pass









Fixed in the latest nightly (out in secs).
This is a "design issue" really, since the syntax is: [<alias>:]<counter> thus if you just enter a counter with colon it is hard to discern if it is an alias or not. What I do now is anything starting with a \ is a counter (not that unreasonable) so alias cannot contain \...
This ought to work now (havent tried that specific counter as I don't have an English XP at the moment.
MickeM