Changeset d4b2cd9cd6b21755d65fd9b41c4ad21e711d0de5
- Timestamp:
- 03/26/11 21:52:28
(2 years ago)
- Author:
- Theo Schlossnagle <jesus@omniti.com>
- git-committer:
- Theo Schlossnagle <jesus@omniti.com> 1301176348 +0000
- git-parent:
[95b66901b3f49ed5ae2b6563f0a84290f949c220]
- git-author:
- Theo Schlossnagle <jesus@omniti.com> 1301176348 +0000
- Message:
Arg! Poo-poo loosely typed languages! refactor failure. This fixes xml resmon checks
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rf510b1e |
rd4b2cd9 |
|
| 168 | 168 | check.metric_string(prefix .. "state", obj and obj:contents()) |
|---|
| 169 | 169 | end |
|---|
| 170 | | local metrics = 0 |
|---|
| | 170 | local metrics = 0 |
|---|
| 171 | 171 | for metric in doc:xpath("metric", result) do |
|---|
| 172 | 172 | metrics = metrics + 1 |
|---|
| 173 | 173 | local name = metric:attr("name") or "DUMMY" |
|---|
| 174 | 174 | local type = metric:attr("type") or "DUMMY" |
|---|
| 175 | | set_check_metric(prefix .. name, type, metric and metric:contents()) |
|---|
| | 175 | set_check_metric(check, prefix .. name, type, metric and metric:contents()) |
|---|
| 176 | 176 | end |
|---|
| 177 | 177 | if metrics == 0 then |
|---|