Skip to content

Commit 76875b5

Browse files
author
Carl Chang
committed
minor changes to config_default;
update readme;
1 parent e12ddc8 commit 76875b5

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ As one of my earliest Python projects, feel free to fork and make your own impro
5252

5353
To be used as a nagios plugin, do not specify the `-f` option so that the output is not embedded with the ANSI color codes. If the renderer does not support parsing the color codes, it will pollute the output.
5454

55+
The value in the parentheses (E.g. `OK (ok)`) is the raw value returned from snmpwalk command.
56+
5557
### Return Value
5658
Integer value that is inline with the Nagios exit codes.
5759

config_default.json

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,12 @@
4545
"description": "Virtual Disk Status",
4646
"oids": [
4747
{ "oid": "virtualDiskDisplayName", "type": "text" },
48-
{ "oid": "virtualDiskState", "type": "status" }
49-
]
48+
{ "oid": "virtualDiskLayout", "type": "text", "prefix": " - RAID Type: " },
49+
{ "oid": "virtualDiskMediaType", "type": "text", "prefix": " - Media: " },
50+
{ "oid": "virtualDiskState", "type": "status", "prefix": " - Health: " }
51+
],
52+
"list-bullet": " + ",
53+
"oid-separator": "\n"
5054
},
5155
"storageController": {
5256
"description": "Storage Controller Status",
@@ -122,9 +126,12 @@
122126
"virtualDisk": {
123127
"description": "Virtual Disk Status",
124128
"oids": [
125-
{ "oid": "cpqDaLogDrvCondition", "type": "status" },
126-
{ "oid": "cpqDaLogDrvStatus", "type": "text", "prefix": "Operation Status: " }
127-
]
129+
{ "oid": "cpqDaLogDrvFaultTol", "type": "text", "prefix": "RAID Type: " },
130+
{ "oid": "cpqDaLogDrvStatus", "type": "text", "prefix": " - Operation Status: " },
131+
{ "oid": "cpqDaLogDrvCondition", "type": "status", "prefix": " - Health: " }
132+
],
133+
"list-bullet": " + ",
134+
"oid-separator": "\n"
128135
},
129136
"storageController": {
130137
"description": "Storage Controller Status",

0 commit comments

Comments
 (0)