| 1 | # OK Merethis |
| 2 | [SunFire E4500/E5500] |
| 3 | system.match = ^System Configuration:.*Sun Enterprise E4500/E5500 |
| 4 | system.checks = Memory,Leds,Fans,Temperatures,PSU |
| 5 | |
| 6 | checks.Memory.description = memory banks status |
| 7 | checks.Memory.begin_match = ^=+ Memory |
| 8 | checks.Memory.end_match = ^= |
| 9 | checks.Memory.data_match = ^\s*(\d+)\s+(\d+)\s+\S+\s+(.*?)\s+(.*?)\s+ |
| 10 | checks.Memory.data_labels = Board,Bank,Status,Condition |
| 11 | checks.Memory.ok_condition = "%Condition%" eq "OK" |
| 12 | checks.Memory.output_string = Memory Board '%Board%' on bank '%Bank%' status is '%Condition%' |
| 13 | |
| 14 | checks.Leds.description = system leds status |
| 15 | checks.Leds.begin_match = ^System LED Status: |
| 16 | checks.Leds.end_match = :$ |
| 17 | checks.Leds.data_match = ^\S+\s+(\S+)\s+(\S+)\s+(\S+) |
| 18 | checks.Leds.data_labels = Power,Failure,Running |
| 19 | checks.Leds.ok_condition = "%Failure%" ne "ON" |
| 20 | checks.Leds.output_string = System failure led status is '%Failure%' |
| 21 | |
| 22 | checks.Fans.description = fans status |
| 23 | checks.Fans.begin_match = ^Fans: |
| 24 | checks.Fans.end_match = ^$ |
| 25 | checks.Fans.skip_match = ^(-+|Unit) |
| 26 | checks.Fans.data_match = ^(\S+)\s+(\S+) |
| 27 | checks.Fans.data_labels = Unit,Status |
| 28 | checks.Fans.ok_condition = "%Status%" eq "OK" |
| 29 | checks.Fans.output_string = Fan '%Unit%' status is '%Status%' |
| 30 | |
| 31 | checks.Temperatures.description = temperature sensors |
| 32 | checks.Temperatures.begin_match = ^System Temperatures |
| 33 | checks.Temperatures.end_match = :$ |
| 34 | checks.Temperatures.skip_match = ^(Brd|-+) |
| 35 | checks.Temperatures.data_match = ^\s*(\S+)\s+(\S+)\s+(\S+)\s+\S+\s+\S+\s+(.*?)$ |
| 36 | checks.Temperatures.data_labels = Location,State,Temperature,Trend |
| 37 | checks.Temperatures.ok_condition = "%Trend%" =~ m/^stable|rising|falling$/i |
| 38 | checks.Temperatures.output_string = Trend status '%Trend%' for temperature sensor '%Location%' (temp.: %Temperature% deg.) |
| 39 | |
| 40 | checks.PSU.description = power supplies status |
| 41 | checks.PSU.begin_match = ^Power Supplies: |
| 42 | checks.PSU.end_match = ^$ |
| 43 | checks.PSU.data_match = ^\s*(.*?)\s{2}\s+(.*?)$ |
| 44 | checks.PSU.skip_match = ^(Supply|-+) |
| 45 | checks.PSU.data_labels = Supply,Status |
| 46 | checks.PSU.ok_condition = "%Status%" eq "OK" |
| 47 | checks.PSU.output_string = Power supply '%Supply%' status is '%Status%' |
| 48 | |
| 49 | # OK Merethis (v1280) |
| 50 | [Netra-T12] |
| 51 | system.match = ^System Configuration:.*Sun Fire V1280 |
| 52 | system.checks = Memory,Fans,Temperatures,Voltages,FRU |
| 53 | |
| 54 | checks.Memory.description = memory module |
| 55 | checks.Memory.begin_match = ^Memory Module Groups: |
| 56 | checks.Memory.end_match = ^$ |
| 57 | checks.Memory.skip_match = ^(-+|ControllerID) |
| 58 | checks.Memory.data_match = ^(\S+)\s+(\S+)\s+(\S+)\s+(\S+) |
| 59 | checks.Memory.data_labels = ControllerID,GroupID,Labels,Status |
| 60 | checks.Memory.ok_condition = "%Status%" eq "okay" |
| 61 | checks.Memory.output_string = Memory Module '%ControllerID%' '%Labels%' status is '%Status%' |
| 62 | |
| 63 | checks.Fans.description = fan status |
| 64 | checks.Fans.begin_match = ^Fan (Status|Speeds): |
| 65 | checks.Fans.end_match = ^$|:$ |
| 66 | checks.Fans.skip_match = ^(-+|Location) |
| 67 | checks.Fans.data_match = ^(\S+)\s+(\S+)\s+(\S+) |
| 68 | checks.Fans.data_labels = Location,Sensor,Status |
| 69 | checks.Fans.ok_condition = "%Status%" =~ m/self-regulating|okay/i |
| 70 | checks.Fans.output_string = Fan '%Location%' status is '%Status%' |
| 71 | |
| 72 | checks.Temperatures.description = temperature sensors |
| 73 | checks.Temperatures.begin_match = ^Temperature sensors: |
| 74 | checks.Temperatures.end_match = :$ |
| 75 | checks.Temperatures.skip_match = ^(-+|Location) |
| 76 | checks.Temperatures.data_match = ^(\S+)\s+(\S+).*?(\S+)\s*$ |
| 77 | checks.Temperatures.data_labels = Location,Sensor,Status |
| 78 | checks.Temperatures.ok_condition = "%Status%" eq "okay" |
| 79 | checks.Temperatures.output_string = Temperature sensor '%Location%' status is '%Status%' |
| 80 | |
| 81 | checks.Voltages.description = voltages sensors |
| 82 | checks.Voltages.begin_match = ^Voltage sensors: |
| 83 | checks.Voltages.end_match = :$ |
| 84 | checks.Voltages.skip_match = ^(-+|Location|=+) |
| 85 | checks.Voltages.data_match = ^(\S+)\s+(\S+).*?(\S+)\s*$ |
| 86 | checks.Voltages.data_labels = Location,Sensor,Status |
| 87 | checks.Voltages.ok_condition = "%Status%" eq "okay" |
| 88 | checks.Voltages.output_string = Voltage sensor '%Location%' status is '%Status%' |
| 89 | |
| 90 | checks.FRU.description = FRU operational status |
| 91 | checks.FRU.begin_match = ^Fru Operational Status: |
| 92 | checks.FRU.end_match = ^$ |
| 93 | checks.FRU.skip_match = ^(-+|Location) |
| 94 | checks.FRU.data_match = ^(\S+)\s+(\S+) |
| 95 | checks.FRU.data_labels = Location,Status |
| 96 | checks.FRU.ok_condition = "%Status%" =~ m/^okay|online|ok$/i |
| 97 | checks.FRU.output_string = FRU '%Location%' operationnal status is '%Status%' |
| 98 | |
| 99 | [SunFire 280R] |
| 100 | system.match = ^System Configuration:.*Sun Fire 280R |
| 101 | system.checks = Leds,Fans,Disks,PSU,IO |
| 102 | |
| 103 | checks.Leds.description = system leds status |
| 104 | checks.Leds.begin_match = ^System LED Status:\s+ |
| 105 | checks.Leds.end_match = ^$ |
| 106 | checks.Leds.fetch_mode = linear |
| 107 | checks.Leds.data_match = ((?:\S+\s)*\S+),\[\s*(.*?)\s*\] |
| 108 | checks.Leds.data_labels = Location,Status |
| 109 | checks.Leds.ok_condition = not( ( "%Location%" =~ m/FAULT/i ) and ("%Status%" eq "ON") ) |
| 110 | checks.Leds.output_string = System LED '%Location%' status is '%Status%' |
| 111 | |
| 112 | checks.Fans.description = fans status |
| 113 | checks.Fans.begin_match = ^Fan Bank : |
| 114 | checks.Fans.end_match = ^= |
| 115 | checks.Fans.data_match = ^(\S+)\s+\[\s*(\S+)\s*\] |
| 116 | checks.Fans.data_labels = Bank,Status |
| 117 | checks.Fans.ok_condition = "%Status%" eq "NO_FAULT" |
| 118 | checks.Fans.output_string = Fan '%Bank%' status is '%Status%' |
| 119 | |
| 120 | checks.Disks.description = disks status |
| 121 | checks.Disks.begin_match = ^Disk Status: |
| 122 | checks.Disks.end_match = ^= |
| 123 | checks.Disks.data_match = ^(.*?\d+)(?:.*?)\[\s*(\S+)\s*\]\s*$ |
| 124 | checks.Disks.data_labels = Disk,Status |
| 125 | checks.Disks.ok_condition = "%Status%" eq "NO_FAULT" |
| 126 | checks.Disks.output_string = Disk '%Disk%' status is '%Status%' |
| 127 | |
| 128 | checks.PSU.description = power supplies status |
| 129 | checks.PSU.begin_match = ^Power Supplies: |
| 130 | checks.PSU.end_match = ^= |
| 131 | checks.PSU.data_match = ^(.*?\d+)\s+\[\s*(\S+)\s*\] |
| 132 | checks.PSU.data_labels = Supply,Status |
| 133 | checks.PSU.ok_condition = "%Status%" =~ m/^OK|NO_FAULT$/ |
| 134 | checks.PSU.output_string = Power supply '%Supply%' status is '%Status%' |
| 135 | |
| 136 | checks.IO.description = IO cards status |
| 137 | checks.IO.begin_match = ^=+\sIO Cards |
| 138 | checks.IO.end_match = ^= |
| 139 | checks.IO.skip_match = ^(-|Brd) |
| 140 | checks.IO.data_match = ^(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+) |
| 141 | checks.IO.data_labels = Brd,Type,ID,Side,Slot,BusFreq,MaxBus,DevFunc,State |
| 142 | checks.IO.ok_condition = "%States%" eq "ok" |
| 143 | checks.IO.output_string = IO Card '%Type%/%ID%/%Side%/%Slot%' state is '%State%' |
| 144 | |
| 145 | [Enterprise 150] |
| 146 | system.match = ^System Configuration:.*Sun Ultra 1 SBus |
| 147 | system.checks = Boards |
| 148 | |
| 149 | checks.Boards.description = IO cards status |
| 150 | checks.Boards.begin_match = ^=+\sIO Cards |
| 151 | checks.Boards.end_match = ^= |
| 152 | checks.Boards.data_match = ^(No failures found in System|(?:No|Detected) System Faults) |
| 153 | checks.Boards.data_labels = Diagnosis |
| 154 | checks.Boards.ok_condition = "%Diagnosis%" =~ m/^(No) / |
| 155 | checks.Boards.output_string = System diagnosis for IO cards is '%Diagnosis%' |
| 156 | |
| 157 | |
| 158 | [Enterprise 250] |
| 159 | system.match = ^System Configuration:.*Sun \(TM\) Enterprise 250 |
| 160 | system.checks = Memory,Leds,Disks,Fans,PSU,Boards |
| 161 | |
| 162 | checks.Memory.description = memory banks status |
| 163 | checks.Memory.begin_match = ^=+ Memory |
| 164 | checks.Memory.end_match = ^= |
| 165 | checks.Memory.data_match = ^\s*(\d+)\s+\S+\s+(.*?)\s+.*?(\S+)$ |
| 166 | checks.Memory.data_labels = Bank,Socket,Status |
| 167 | checks.Memory.ok_condition = "%Status%" eq "OK" |
| 168 | checks.Memory.output_string = Memory unit '%Socket%' on bank '%Bank%' status is '%Status%' |
| 169 | |
| 170 | checks.Leds.description = system leds status |
| 171 | checks.Leds.begin_match = ^System LED Status:\s+ |
| 172 | checks.Leds.end_match = ^$ |
| 173 | checks.Leds.fetch_mode = linear |
| 174 | checks.Leds.data_match = ((?:\S+\s)*\S+),\[\s*(.*?)\s*\] |
| 175 | checks.Leds.data_labels = Location,Status |
| 176 | checks.Leds.ok_condition = not( ( "%Location%" =~ m/ERROR/i ) and ("%Status%" eq "ON") ) |
| 177 | checks.Leds.output_string = System LED '%Location%' status is '%Status%' |
| 178 | |
| 179 | checks.Disks.description = disks status |
| 180 | checks.Disks.begin_match = ^Disk LED Status: |
| 181 | checks.Disks.end_match = ^= |
| 182 | checks.Disks.data_match = (DISK\s+\d+):\s+\[\s*(.*?)\s*\] |
| 183 | checks.Disks.data_labels = Disk,Status |
| 184 | checks.Disks.ok_condition = "%Status%" =~ m/^(OK|EMPTY)$/ |
| 185 | checks.Disks.output_string = Disk '%Disk%' status is '%Status%' |
| 186 | |
| 187 | checks.Fans.description = fans status |
| 188 | checks.Fans.begin_match = ^Fan Bank : |
| 189 | checks.Fans.end_match = ^= |
| 190 | checks.Fans.data_match = ^(\S+)\s+\d+\s+(\S+) |
| 191 | checks.Fans.data_labels = Bank,Status |
| 192 | checks.Fans.ok_condition = "%Status%" eq "OK" |
| 193 | checks.Fans.output_string = Fan '%Bank%' status is '%Status%' |
| 194 | |
| 195 | checks.PSU.description = power supplies status |
| 196 | checks.PSU.begin_match = ^Power Supplies: |
| 197 | checks.PSU.end_match = ^= |
| 198 | checks.PSU.data_match = ^\s*(\d+).*?(\S+)$ |
| 199 | checks.PSU.data_labels = Supply,Status |
| 200 | checks.PSU.ok_condition = "%Status%" eq "OK" |
| 201 | checks.PSU.output_string = Power supply '%Supply%' status is '%Status%' |
| 202 | |
| 203 | checks.Boards.description = IO cards status |
| 204 | checks.Boards.begin_match = ^=+\sIO Cards |
| 205 | checks.Boards.end_match = ^= |
| 206 | checks.Boards.data_match = ^(No failures found in System|(?:No|Detected) System Faults) |
| 207 | checks.Boards.data_labels = Diagnosis |
| 208 | checks.Boards.ok_condition = "%Diagnosis%" =~ m/^No / |
| 209 | checks.Boards.output_string = System diagnosis for IO cards is '%Diagnosis%' |
| 210 | |
| 211 | |
| 212 | [Enterprise 450] |
| 213 | system.match = ^System Configuration:.*Sun Enterprise 450 |
| 214 | system.checks = Memory,Leds,Disks,Fans,PSU,Boards |
| 215 | |
| 216 | checks.Memory.description = memory banks status |
| 217 | checks.Memory.begin_match = ^=+ Memory |
| 218 | checks.Memory.end_match = ^= |
| 219 | checks.Memory.data_match = ^\s*(\d+)\s+\S+\s+(.*?)\s+.*?(\S+)$ |
| 220 | checks.Memory.data_labels = Bank,Socket,Status |
| 221 | checks.Memory.ok_condition = "%Status%" eq "OK" |
| 222 | checks.Memory.output_string = Memory unit '%Socket%' on bank '%Bank%' status is '%Status%' |
| 223 | |
| 224 | checks.Leds.description = system leds status |
| 225 | checks.Leds.begin_match = ^System LED Status:\s+ |
| 226 | checks.Leds.end_match = ^$ |
| 227 | checks.Leds.fetch_mode = linear |
| 228 | checks.Leds.data_match = ((?:\S+\s)*\S+),\[\s*(.*?)\s*\] |
| 229 | checks.Leds.data_labels = Location,Status |
| 230 | checks.Leds.ok_condition = not( ( "%Location%" =~ m/ERROR/i ) and ("%Status%" eq "ON") ) |
| 231 | checks.Leds.output_string = System LED '%Location%' status is '%Status%' |
| 232 | |
| 233 | checks.Disks.description = disks status |
| 234 | checks.Disks.begin_match = ^Disk LED Status: |
| 235 | checks.Disks.end_match = ^= |
| 236 | checks.Disks.data_match = (DISK\s+\d+):\s+\[\s*(.*?)\s*\] |
| 237 | checks.Disks.data_labels = Disk,Status |
| 238 | checks.Disks.ok_condition = "%Status%" =~ m/^(OK|EMPTY)$/ |
| 239 | checks.Disks.output_string = Disk '%Disk%' status is '%Status%' |
| 240 | |
| 241 | checks.Fans.description = fans status |
| 242 | checks.Fans.begin_match = ^Fans: |
| 243 | checks.Fans.end_match = ^$ |
| 244 | checks.Fans.data_match = ^(\S+)\s+\d+\s+(\S+) |
| 245 | checks.Fans.data_labels = Bank,Status |
| 246 | checks.Fans.ok_condition = "%Status%" eq "OK" |
| 247 | checks.Fans.output_string = Fan '%Bank%' status is '%Status%' |
| 248 | |
| 249 | checks.PSU.description = power supplies status |
| 250 | checks.PSU.begin_match = ^Power Supplies: |
| 251 | checks.PSU.end_match = ^= |
| 252 | checks.PSU.data_match = ^\s*(\d+).*?(\S+)$ |
| 253 | checks.PSU.data_labels = Supply,Status |
| 254 | checks.PSU.ok_condition = "%Status%" eq "OK" |
| 255 | checks.PSU.output_string = Power supply '%Supply%' status is '%Status%' |
| 256 | |
| 257 | checks.Boards.description = IO cards status |
| 258 | checks.Boards.begin_match = ^=+\sIO Cards |
| 259 | checks.Boards.end_match = ^= |
| 260 | checks.Boards.data_match = ^(No failures found in System|(?:No|Detected) System Faults) |
| 261 | checks.Boards.data_labels = Diagnosis |
| 262 | checks.Boards.ok_condition = "%Diagnosis%" =~ m/^No / |
| 263 | checks.Boards.output_string = System diagnosis for IO cards is '%Diagnosis%' |
| 264 | |
| 265 | |
| 266 | [Enterprise 3000] |
| 267 | system.match = Sun Enterprise 3000$ |
| 268 | system.checks = Leds,Fans,Temperatures,PSU,Boards |
| 269 | |
| 270 | checks.Leds.description = system leds status |
| 271 | checks.Leds.begin_match = ^System LED Status: |
| 272 | checks.Leds.end_match = :$ |
| 273 | checks.Leds.data_match = ^\S+\s+(\S+)\s+(\S+)\s+(\S+) |
| 274 | checks.Leds.data_labels = Power,Failure,Running |
| 275 | checks.Leds.ok_condition = "%Failure%" ne "ON" |
| 276 | checks.Leds.output_string = System failure led status is '%Failure%' |
| 277 | |
| 278 | checks.Fans.description = fans status |
| 279 | checks.Fans.begin_match = ^Fans: |
| 280 | checks.Fans.end_match = ^$ |
| 281 | checks.Fans.skip_match = ^(-+|Unit) |
| 282 | checks.Fans.data_match = ^(\S+)\s+(\S+) |
| 283 | checks.Fans.data_labels = Unit,Status |
| 284 | checks.Fans.ok_condition = "%Status%" eq "OK" |
| 285 | checks.Fans.output_string = Fan '%Unit%' status is '%Status%' |
| 286 | |
| 287 | checks.Temperatures.description = temperature sensors |
| 288 | checks.Temperatures.begin_match = ^System Temperatures |
| 289 | checks.Temperatures.end_match = :$ |
| 290 | checks.Temperatures.skip_match = ^Location |
| 291 | checks.Temperatures.data_match = ^(\S+\s+\d+):\s+(.*?)\s+(\S+) |
| 292 | checks.Temperatures.data_labels = Location,Temperature,Trend |
| 293 | checks.Temperatures.ok_condition = ( "%Trend%" eq "stable" ) |
| 294 | checks.Temperatures.output_string = Trend status '%Trend%' for temperature sensor '%Location%' (temp.: %Temperature% deg.) |
| 295 | |
| 296 | checks.PSU.description = power supplies status |
| 297 | checks.PSU.begin_match = ^Power Supplies: |
| 298 | checks.PSU.end_match = ^$ |
| 299 | checks.PSU.data_match = ^((?:\S+\s)*\S+)\s+(\S+) |
| 300 | checks.PSU.skip_match = ^(Supply|-+) |
| 301 | checks.PSU.data_labels = Supply,Status |
| 302 | checks.PSU.ok_condition = "%Status%" eq "OK" |
| 303 | checks.PSU.output_string = Power supply '%Supply%' status is '%Status%' |
| 304 | |
| 305 | checks.Boards.description = IO cards status |
| 306 | checks.Boards.begin_match = ^=+(\sIO Cards|Cartes ES) |
| 307 | checks.Boards.end_match = ^=+\s\S+ |
| 308 | checks.Boards.data_match = ^(No failures found in System|(?:No|Detected) System Faults) |
| 309 | checks.Boards.data_labels = Diagnosis |
| 310 | checks.Boards.ok_condition = "%Diagnosis%" =~ m/^No / |
| 311 | checks.Boards.output_string = System diagnosis for IO cards is '%Diagnosis%' |
| 312 | |
| 313 | |
| 314 | [Ultra 10] |
| 315 | system.match = ^System Configuration:.*Sun Ultra 5\/10 UPA\/PCI |
| 316 | system.checks = Boards |
| 317 | |
| 318 | checks.Boards.description = IO cards status |
| 319 | checks.Boards.begin_match = ^=+\sIO Cards |
| 320 | checks.Boards.end_match = ^= |
| 321 | checks.Boards.data_match = ^(No failures found in System|(?:No|Detected) System Faults) |
| 322 | checks.Boards.data_labels = Diagnosis |
| 323 | checks.Boards.ok_condition = "%Diagnosis%" =~ m/^No / |
| 324 | checks.Boards.output_string = System diagnosis for IO cards is '%Diagnosis%' |
| 325 | |
| 326 | |
| 327 | [SunFire V120] |
| 328 | system.match = ^System Configuration:.*Sun Fire V120 |
| 329 | system.checks = Boards |
| 330 | |
| 331 | checks.Boards.description = IO cards status |
| 332 | checks.Boards.begin_match = ^=+\sIO Cards |
| 333 | checks.Boards.end_match = ^= |
| 334 | checks.Boards.data_match = ^(No failures found in System|(?:No|Detected) System Faults) |
| 335 | checks.Boards.data_labels = Diagnosis |
| 336 | checks.Boards.ok_condition = "%Diagnosis%" =~ m/^No / |
| 337 | checks.Boards.output_string = System diagnosis for IO cards is '%Diagnosis%' |
| 338 | |
| 339 | # OK Merethis |
| 340 | [UltraSPARCengine_CP-40] |
| 341 | system.match = ^System Configuration:.*sun4u SPARCengine CP2000 |
| 342 | system.checks = Boards |
| 343 | |
| 344 | checks.Boards.description = IO cards status |
| 345 | checks.Boards.begin_match = ^=+\sIO Cards |
| 346 | checks.Boards.end_match = ^= |
| 347 | checks.Boards.data_match = ^(No failures found in System|(?:No|Detected) System Faults) |
| 348 | checks.Boards.data_labels = Diagnosis |
| 349 | checks.Boards.ok_condition = "%Diagnosis%" =~ m/^No / |
| 350 | checks.Boards.output_string = System diagnosis for IO cards is '%Diagnosis%' |
| 351 | |
| 352 | # OK Merethis |
| 353 | [SunFire V240] |
| 354 | system.match = ^System Configuration:.*Sun Fire V240 |
| 355 | system.checks = Fans,Leds,Temperatures,Voltages,Current,FRU |
| 356 | |
| 357 | checks.Fans.description = fans status |
| 358 | checks.Fans.begin_match = ^Fan (Status|Speeds): |
| 359 | checks.Fans.end_match = :$ |
| 360 | checks.Fans.skip_match = ^Location |
| 361 | checks.Fans.data_match = ^\s*(\S+)\s+(\S+)\s+(\S+) |
| 362 | checks.Fans.data_labels = Location,Sensor,Status |
| 363 | checks.Fans.ok_condition = "%Status%" eq "okay" |
| 364 | checks.Fans.output_string = Fan '%Location%/%Sensor%' status is '%Status%' |
| 365 | |
| 366 | checks.Leds.description = system leds status |
| 367 | checks.Leds.begin_match = ^Led State: |
| 368 | checks.Leds.end_match = :$ |
| 369 | checks.Leds.data_match = ^(\S+)\s+(?:SERVICE)\s+(\S+) |
| 370 | checks.Leds.data_labels = Location,State |
| 371 | checks.Leds.ok_condition = "%State%" eq "off" |
| 372 | checks.Leds.output_string = Service indicator '%Location%' state is '%State%' |
| 373 | |
| 374 | checks.Temperatures.description = temperature sensors |
| 375 | checks.Temperatures.begin_match = ^Temperature sensors: |
| 376 | checks.Temperatures.end_match = :$ |
| 377 | checks.Temperatures.skip_match = ^Location |
| 378 | checks.Temperatures.data_match = ^(\S+)\s+(\S+).*?(\S+)$ |
| 379 | checks.Temperatures.data_labels = Location,Sensor,Status |
| 380 | checks.Temperatures.ok_condition = ( "%Status%" eq "okay" ) |
| 381 | checks.Temperatures.output_string = Temperature sensor '%Location%/%Sensor%' status is '%Status%' |
| 382 | |
| 383 | checks.Voltages.description = voltage sensors |
| 384 | checks.Voltages.begin_match = ^Voltage sensors: |
| 385 | checks.Voltages.end_match = :$ |
| 386 | checks.Voltages.skip_match = ^Location |
| 387 | checks.Voltages.data_match = ^(\S+)\s+(\S+).*?(\S+)$ |
| 388 | checks.Voltages.data_labels = Location,Sensor,Status |
| 389 | checks.Voltages.ok_condition = "%Status%" eq "okay" |
| 390 | checks.Voltages.output_string = Voltage sensor '%Location%/%Sensor%' status is '%Status%' |
| 391 | |
| 392 | checks.Current.description = current sensors |
| 393 | checks.Current.begin_match = ^Current sensors: |
| 394 | checks.Current.end_match = ^$ |
| 395 | checks.Current.skip_match = ^Location |
| 396 | checks.Current.data_match = ^(\S+)\s+(\S+).*?(\S+)$ |
| 397 | checks.Current.data_labels = Location,Sensor,Status |
| 398 | checks.Current.ok_condition = "%Status%" eq "okay" |
| 399 | checks.Current.output_string = Current sensor '%Location%/%Sensor%' status is '%Status%' |
| 400 | |
| 401 | checks.FRU.description = FRU operational status |
| 402 | checks.FRU.begin_match = ^Fru Operational Status: |
| 403 | checks.FRU.end_match = ^$ |
| 404 | checks.FRU.skip_match = ^Location |
| 405 | checks.FRU.data_match = ^(\S+)\s+(\S+) |
| 406 | checks.FRU.data_labels = Location,Status |
| 407 | checks.FRU.ok_condition = "%Status%" =~ m/present|okay/ |
| 408 | checks.FRU.output_string = FRU '%Location%' status is '%Status%' |
| 409 | |
| 410 | # OK Merethis |
| 411 | [SunFire V440] |
| 412 | system.match = ^System Configuration:.*Sun Fire V440 |
| 413 | system.checks = Fans,Leds,Temperatures,Voltages,Current,FRU |
| 414 | |
| 415 | checks.Fans.description = fans status |
| 416 | checks.Fans.begin_match = ^Fan Speeds: |
| 417 | checks.Fans.end_match = :$ |
| 418 | checks.Fans.data_match = ^(.*?\d+)\s+(\S+)\s+(\S+) |
| 419 | checks.Fans.data_labels = Location,Sensor,Status |
| 420 | checks.Fans.ok_condition = "%Status%" eq "okay" |
| 421 | checks.Fans.output_string = Fan '%Location%/%Sensor%' status is '%Status%' |
| 422 | |
| 423 | checks.Leds.description = system leds status |
| 424 | checks.Leds.begin_match = ^Led State: |
| 425 | checks.Leds.end_match = :$ |
| 426 | checks.Leds.data_match = ^(\S+)\s+(?:SERVICE)\s+(\S+) |
| 427 | checks.Leds.data_labels = Location,State |
| 428 | checks.Leds.ok_condition = "%State%" eq "off" |
| 429 | checks.Leds.output_string = Service indicator '%Location%' state is '%State%' |
| 430 | |
| 431 | checks.Temperatures.description = temperature sensors |
| 432 | checks.Temperatures.begin_match = ^Temperature sensors: |
| 433 | checks.Temperatures.end_match = :$ |
| 434 | checks.Temperatures.skip_match = ^Location |
| 435 | checks.Temperatures.data_match = ^(\S+)\s+(\S+)\s+(.*)$ |
| 436 | checks.Temperatures.data_labels = Location,Sensor,Status |
| 437 | checks.Temperatures.ok_condition = ( "%Status%" eq "okay" ) |
| 438 | checks.Temperatures.output_string = Temperature sensor '%Location%/%Sensor%' status is '%Status%' |
| 439 | |
| 440 | checks.Voltages.description = voltage sensors |
| 441 | checks.Voltages.begin_match = ^Voltage sensors: |
| 442 | checks.Voltages.end_match = :$ |
| 443 | checks.Voltages.skip_match = ^Location |
| 444 | checks.Voltages.data_match = ^(\S+)\s+(\S+).*?(\S+)$ |
| 445 | checks.Voltages.data_labels = Location,Sensor,Status |
| 446 | checks.Voltages.ok_condition = "%Status%" eq "okay" |
| 447 | checks.Voltages.output_string = Voltage sensor '%Location%/%Sensor%' status is '%Status%' |
| 448 | |
| 449 | checks.Current.description = current sensors |
| 450 | checks.Current.begin_match = ^Current sensors: |
| 451 | checks.Current.end_match = ^$ |
| 452 | checks.Current.skip_match = ^Location |
| 453 | checks.Current.data_match = ^(\S+)\s+(\S+).*?(\S+)$ |
| 454 | checks.Current.data_labels = Location,Sensor,Status |
| 455 | checks.Current.ok_condition = "%Status%" eq "okay" |
| 456 | checks.Current.output_string = Current sensor '%Location%/%Sensor%' status is '%Status%' |
| 457 | |
| 458 | checks.FRU.description = FRU operational status |
| 459 | checks.FRU.begin_match = ^Fru Operational Status: |
| 460 | checks.FRU.end_match = ^$ |
| 461 | checks.FRU.skip_match = ^Location |
| 462 | checks.FRU.data_match = ^(\S+)\s+(\S+)$ |
| 463 | checks.FRU.data_labels = Location,Status |
| 464 | checks.FRU.ok_condition = "%Status%" =~ m/present|okay/ |
| 465 | checks.FRU.output_string = FRU '%Location%' status is '%Status%' |
| 466 | |
| 467 | # Ok Merethis |
| 468 | [SunFire V490] |
| 469 | system.match = ^System Configuration:.*Sun Fire V490 |
| 470 | system.checks = Temperatures,Leds,Disks,Fans,PSU |
| 471 | |
| 472 | checks.Temperatures.description = temperature sensors |
| 473 | checks.Temperatures.begin_match = ^System Temperatures.*: |
| 474 | checks.Temperatures.end_match = ^$ |
| 475 | checks.Temperatures.skip_match = ^Device |
| 476 | checks.Temperatures.data_match = ^(\S+)\s+(\S+)\s+(\S+)$ |
| 477 | checks.Temperatures.data_labels = Sensor,Temperature,Status |
| 478 | checks.Temperatures.ok_condition = ( "%Status%" eq "OK" ) |
| 479 | checks.Temperatures.output_string = Temperature sensor '%Sensor%' status is '%Status%' (temp.: %Temperature% deg.) |
| 480 | |
| 481 | checks.Leds.description = system leds status |
| 482 | checks.Leds.begin_match = ^System LED Status: |
| 483 | checks.Leds.end_match = :$ |
| 484 | checks.Leds.data_match = ^\s+\[\s*(.*?)\s*\]\s+\[\s*(.*?)\s*\]\s+\[\s*(.*?)\s*\] |
| 485 | checks.Leds.data_labels = Location,Failure,Running |
| 486 | checks.Leds.ok_condition = "%Failure%" ne "ON" |
| 487 | checks.Leds.output_string = System failure led status is '%Failure%' |
| 488 | |
| 489 | checks.Disks.description = disks status |
| 490 | checks.Disks.begin_match = ^Disk Status: |
| 491 | checks.Disks.end_match = ^$ |
| 492 | checks.Disks.data_match = ^(.*?\d+)(?:.*?)\[\s*(\S+)\s*\]\s*$ |
| 493 | checks.Disks.data_labels = Disk,Status |
| 494 | checks.Disks.ok_condition = "%Status%" eq "NO_FAULT" |
| 495 | checks.Disks.output_string = Disk '%Disk%' status is '%Status%' |
| 496 | |
| 497 | checks.Fans.description = fans status |
| 498 | checks.Fans.begin_match = ^Fan Status: |
| 499 | checks.Fans.end_match = ^= |
| 500 | checks.Fans.data_match = ^(\S+)\s+(\S+)\s+(.*?)\s+\[\s*(\S+)\s*\] |
| 501 | checks.Fans.data_labels = Tray,Fan,Speed,Status |
| 502 | checks.Fans.ok_condition = "%Status%" eq "NO_FAULT" |
| 503 | checks.Fans.output_string = Fan '%Tray%/%Fan%' status is '%Status%' (speed: %Speed% rpm) |
| 504 | |
| 505 | checks.PSU.description = power supplies status |
| 506 | checks.PSU.begin_match = ^Power Supplies: |
| 507 | checks.PSU.end_match = ^= |
| 508 | checks.PSU.data_match = ^(.*?)\s+\[\s*(\S+)\s*\] |
| 509 | checks.PSU.data_labels = Supply,Status |
| 510 | checks.PSU.ok_condition = "%Status%" eq "NO_FAULT" |
| 511 | checks.PSU.output_string = Power supply '%Supply%' status is '%Status%' |
| 512 | |
| 513 | # Ok Merethis |
| 514 | [SunFire 480] |
| 515 | system.match = ^System Configuration:.*Sun Fire 480 |
| 516 | system.checks = Temperatures,Leds,Disks,Fans,PSU |
| 517 | |
| 518 | checks.Temperatures.description = temperature sensors |
| 519 | checks.Temperatures.begin_match = ^System Temperatures.*: |
| 520 | checks.Temperatures.end_match = ^$ |
| 521 | checks.Temperatures.skip_match = ^Device |
| 522 | checks.Temperatures.data_match = ^(\S+)\s+(\S+)\s+(\S+)$ |
| 523 | checks.Temperatures.data_labels = Sensor,Temperature,Status |
| 524 | checks.Temperatures.ok_condition = ( "%Status%" eq "OK" ) |
| 525 | checks.Temperatures.output_string = Temperature sensor '%Sensor%' status is '%Status%' (temp.: %Temperature% deg.) |
| 526 | |
| 527 | checks.Leds.description = system leds status |
| 528 | checks.Leds.begin_match = ^System LED Status: |
| 529 | checks.Leds.end_match = :$ |
| 530 | checks.Leds.data_match = ^\s+\[\s*(.*?)\s*\]\s+\[\s*(.*?)\s*\]\s+\[\s*(.*?)\s*\] |
| 531 | checks.Leds.data_labels = Location,Failure,Running |
| 532 | checks.Leds.ok_condition = "%Failure%" ne "ON" |
| 533 | checks.Leds.output_string = System failure led status is '%Failure%' |
| 534 | |
| 535 | checks.Disks.description = disks status |
| 536 | checks.Disks.begin_match = ^Disk Status: |
| 537 | checks.Disks.end_match = ^$ |
| 538 | checks.Disks.data_match = ^(.*?\d+)(?:.*?)\[\s*(\S+)\s*\]\s*$ |
| 539 | checks.Disks.data_labels = Disk,Status |
| 540 | checks.Disks.ok_condition = "%Status%" eq "NO_FAULT" |
| 541 | checks.Disks.output_string = Disk '%Disk%' status is '%Status%' |
| 542 | |
| 543 | checks.Fans.description = fans status |
| 544 | checks.Fans.begin_match = ^Fan Status: |
| 545 | checks.Fans.end_match = ^= |
| 546 | checks.Fans.data_match = ^(\S+)\s+(\S+)\s+(.*?)\s+\[\s*(\S+)\s*\] |
| 547 | checks.Fans.data_labels = Tray,Fan,Speed,Status |
| 548 | checks.Fans.ok_condition = "%Status%" eq "NO_FAULT" |
| 549 | checks.Fans.output_string = Fan '%Tray%/%Fan%' status is '%Status%' (speed: %Speed% rpm) |
| 550 | |
| 551 | checks.PSU.description = power supplies status |
| 552 | checks.PSU.begin_match = ^Power Supplies: |
| 553 | checks.PSU.end_match = ^= |
| 554 | checks.PSU.data_match = ^(.*?)\s+\[\s*(\S+)\s*\] |
| 555 | checks.PSU.data_labels = Supply,Status |
| 556 | checks.PSU.ok_condition = "%Status%" eq "NO_FAULT" |
| 557 | checks.PSU.output_string = Power supply '%Supply%' status is '%Status%' |
| 558 | |
| 559 | # OK Merethis |
| 560 | [SunFire 880] |
| 561 | system.match = ^System Configuration:.*Sun Fire 880 |
| 562 | system.checks = Boards,Temperatures,Leds,Disks,Fans,PSU |
| 563 | |
| 564 | checks.Boards.description = IO cards status |
| 565 | checks.Boards.begin_match = ^=+\sIO Cards |
| 566 | checks.Boards.end_match = ^= |
| 567 | checks.Boards.data_match = ^(No failures found in System|(?:No|Detected) System Faults) |
| 568 | checks.Boards.data_labels = Diagnosis |
| 569 | checks.Boards.ok_condition = "%Diagnosis%" =~ m/^No / |
| 570 | checks.Boards.output_string = System diagnosis for IO cards is '%Diagnosis%' |
| 571 | |
| 572 | checks.Temperatures.description = temperature sensors |
| 573 | checks.Temperatures.begin_match = ^System Temperatures |
| 574 | checks.Temperatures.end_match = ^$ |
| 575 | checks.Temperatures.skip_match = ^Device |
| 576 | checks.Temperatures.data_match = ^(\S+)\s+(.*?)\s+(\S+) |
| 577 | checks.Temperatures.data_labels = Device,Temperature,Status |
| 578 | checks.Temperatures.ok_condition = ( "%Status%" eq "OK" ) |
| 579 | checks.Temperatures.output_string = Temperature sensor '%Device%' status is '%Status%' (temp.: %Temperature% deg.) |
| 580 | |
| 581 | checks.Leds.description = system leds status |
| 582 | checks.Leds.begin_match = ^System LED Status: |
| 583 | checks.Leds.end_match = ^= |
| 584 | checks.Leds.skip_match = ^$ |
| 585 | checks.Leds.fetch_mode = linear |
| 586 | checks.Leds.data_match = ((?:\S+\s)*\S+),\[\s*(.*?)\s*\] |
| 587 | checks.Leds.data_labels = Location,Status |
| 588 | checks.Leds.ok_condition = not( ( "%Location%" =~ /FAULT/ ) and ("%Status%" eq "ON") ) |
| 589 | checks.Leds.output_string = System LED '%Location%' status is '%Status%' |
| 590 | |
| 591 | checks.Disks.description = disks status |
| 592 | checks.Disks.begin_match = ^Disk Status: |
| 593 | checks.Disks.end_match = ^$ |
| 594 | checks.Disks.data_match = ^(.*?\d+)(?:.*?)\[PRESENT\]\s+\[\s*(\S+)\s*\] |
| 595 | checks.Disks.data_labels = Disk,Fault |
| 596 | checks.Disks.ok_condition = "%Fault%" eq "OFF" |
| 597 | checks.Disks.output_string = Fault LED status '%Fault%' for disk '%Disk%' |
| 598 | |
| 599 | checks.Fans.description = fans status |
| 600 | checks.Fans.begin_match = ^Fan Bank : |
| 601 | checks.Fans.end_match = ^= |
| 602 | checks.Fans.data_match = ^(\S+)\s+(\d+)\s+\[ENABLED\]\s+(\S+) |
| 603 | checks.Fans.data_labels = Fan,Speed,Status |
| 604 | checks.Fans.ok_condition = "%Status%" eq "OK" |
| 605 | checks.Fans.output_string = Fan '%Fan%' status is '%Status%' (speed: %Speed% rpm) |
| 606 | |
| 607 | checks.PSU.description = power supplies status |
| 608 | checks.PSU.begin_match = ^Power Supplies: |
| 609 | checks.PSU.end_match = ^= |
| 610 | checks.PSU.data_match = ^(\S+\d+)\s+(\S+) |
| 611 | checks.PSU.data_labels = Supply,Status |
| 612 | checks.PSU.ok_condition = "%Status%" eq "GOOD" |
| 613 | checks.PSU.output_string = Power supply '%Supply%' status is '%Status%' |
| 614 | |
| 615 | [SPARC T3-4] |
| 616 | system.match = ^System Configuration:.*SPARC T3-4 |
| 617 | system.checks = CPU,Fans,Temperatures,Current,Voltages,FRU |
| 618 | |
| 619 | checks.CPU.description = Virtual CPUs |
| 620 | checks.CPU.begin_match = ^=+ Virtual CPUs = |
| 621 | checks.CPU.skip_match = ^$ |
| 622 | checks.CPU.end_match = ^==+ |
| 623 | checks.CPU.data_match = ^\s*(\d+)\s+(\d+)\s+(\S+)\s+(\S+)\s+(\S+)\s*$ |
| 624 | checks.CPU.data_labels = CPU,Frequence,Power,Implementation,Status |
| 625 | checks.CPU.ok_condition = "%Status%" eq "on-line" |
| 626 | checks.CPU.output_string = CPU%CPU% status is '%Status%' |
| 627 | |
| 628 | checks.Fans.description = fans status |
| 629 | checks.Fans.begin_match = ^Fan sensors: |
| 630 | checks.Fans.end_match = :$ |
| 631 | checks.Fans.skip_match = ^Location |
| 632 | checks.Fans.data_match = ^(\S+)\s+(\S+)\s+(\S+) |
| 633 | checks.Fans.data_labels = Location,Sensor,Status |
| 634 | checks.Fans.ok_condition = "%Status%" eq "ok" |
| 635 | checks.Fans.output_string = Fan '%Location%/%Sensor%' status is '%Status%' |
| 636 | |
| 637 | checks.Temperatures.description = temperature sensors |
| 638 | checks.Temperatures.begin_match = ^Temperature sensors: |
| 639 | checks.Temperatures.end_match = :$ |
| 640 | checks.Temperatures.skip_match = ^Location |
| 641 | checks.Temperatures.data_match = ^(\S+)\s+(\S+).*?(\S+)$ |
| 642 | checks.Temperatures.data_labels = Location,Sensor,Status |
| 643 | checks.Temperatures.ok_condition = ( "%Status%" eq "ok" ) |
| 644 | checks.Temperatures.output_string = Temperature sensor '%Location%/%Sensor%' status is '%Status%' |
| 645 | |
| 646 | checks.Voltages.description = voltage sensors |
| 647 | checks.Voltages.begin_match = ^Voltage sensors: |
| 648 | checks.Voltages.end_match = :$ |
| 649 | checks.Voltages.skip_match = ^Location |
| 650 | checks.Voltages.data_match = ^(\S+)\s+(\S+).*?(\S+)$ |
| 651 | checks.Voltages.data_labels = Location,Sensor,Status |
| 652 | checks.Voltages.ok_condition = "%Status%" eq "ok" |
| 653 | checks.Voltages.output_string = Voltage sensor '%Location%/%Sensor%' status is '%Status%' |
| 654 | |
| 655 | checks.Current.description = current indicators |
| 656 | checks.Current.begin_match = ^Current indicators: |
| 657 | checks.Current.end_match = :$ |
| 658 | checks.Current.skip_match = ^Location |
| 659 | checks.Current.data_match = ^(\S+)\s+(\S+).*?(\S+)$ |
| 660 | checks.Current.data_labels = Location,Indicator,Status |
| 661 | checks.Current.ok_condition = "%Status%" eq "ok" |
| 662 | checks.Current.output_string = Current indicator '%Location%/%Indicator%' status is '%Status%' |
| 663 | |
| 664 | checks.FRU.description = FRU operational status |
| 665 | checks.FRU.begin_match = ^Fru Operational Status: |
| 666 | checks.FRU.end_match = ^$ |
| 667 | checks.FRU.skip_match = ^Location |
| 668 | checks.FRU.data_match = ^(\S+)\s+(\S+)\s+(\S+) |
| 669 | checks.FRU.data_labels = Location,Name,Status |
| 670 | checks.FRU.ok_condition = "%Status%" =~ m/enabled/ |
| 671 | checks.FRU.output_string = FRU '%Location%/%Name%' status is '%Status%' |
| 672 | |
| 673 | [SunFire V210] |
| 674 | system.match = ^System Configuration:.*Sun Fire V210 |
| 675 | system.checks = CPU,Fans,Temperatures,Current,Voltages,Leds,FRU |
| 676 | |
| 677 | checks.CPU.description = CPU status |
| 678 | checks.CPU.begin_match = ^=+ CPUs = |
| 679 | checks.CPU.end_match = ^$ |
| 680 | checks.CPU.data_match = ^\s*(\d+)\s+(?:.*?)\s+(\S+)\s+(\S+)\s*$ |
| 681 | checks.CPU.data_labels = CPU,Status,Location |
| 682 | checks.CPU.ok_condition = "%Status%" eq "on-line" |
| 683 | checks.CPU.output_string = CPU%CPU% ('%Location%') status is '%Status%' |
| 684 | |
| 685 | checks.Fans.description = fans status |
| 686 | checks.Fans.begin_match = ^Fan Status: |
| 687 | checks.Fans.end_match = :$ |
| 688 | checks.Fans.skip_match = ^Location |
| 689 | checks.Fans.data_match = ^(\S+)\s+(\S+)\s+(\S+) |
| 690 | checks.Fans.data_labels = Location,Sensor,Status |
| 691 | checks.Fans.ok_condition = "%Status%" eq "okay" |
| 692 | checks.Fans.output_string = Fan '%Location%/%Sensor%' status is '%Status%' |
| 693 | |
| 694 | checks.Leds.description = system leds status |
| 695 | checks.Leds.begin_match = ^Led State: |
| 696 | checks.Leds.end_match = :$ |
| 697 | checks.Leds.data_match = ^(\S+)\s+(?:SERVICE)\s+(\S+) |
| 698 | checks.Leds.data_labels = Location,State |
| 699 | checks.Leds.ok_condition = "%State%" eq "off" |
| 700 | checks.Leds.output_string = Service indicator '%Location%' state is '%State%' |
| 701 | |
| 702 | checks.Temperatures.description = temperature sensors |
| 703 | checks.Temperatures.begin_match = ^Temperature sensors: |
| 704 | checks.Temperatures.end_match = :$ |
| 705 | checks.Temperatures.skip_match = ^Location |
| 706 | checks.Temperatures.data_match = ^(\S+)\s+(\S+).*?(\S+)$ |
| 707 | checks.Temperatures.data_labels = Location,Sensor,Status |
| 708 | checks.Temperatures.ok_condition = ( "%Status%" eq "okay" ) |
| 709 | checks.Temperatures.output_string = Temperature sensor '%Location%/%Sensor%' status is '%Status%' |
| 710 | |
| 711 | checks.Voltages.description = voltage sensors |
| 712 | checks.Voltages.begin_match = ^Voltage sensors: |
| 713 | checks.Voltages.end_match = :$ |
| 714 | checks.Voltages.skip_match = ^Location |
| 715 | checks.Voltages.data_match = ^(\S+)\s+(\S+).*?(\S+)$ |
| 716 | checks.Voltages.data_labels = Location,Sensor,Status |
| 717 | checks.Voltages.ok_condition = "%Status%" eq "okay" |
| 718 | checks.Voltages.output_string = Voltage sensor '%Location%/%Sensor%' status is '%Status%' |
| 719 | |
| 720 | checks.Current.description = current sensors |
| 721 | checks.Current.begin_match = ^Current sensors: |
| 722 | checks.Current.end_match = :$ |
| 723 | checks.Current.skip_match = ^Location |
| 724 | checks.Current.data_match = ^(\S+)\s+(\S+).*?(\S+)$ |
| 725 | checks.Current.data_labels = Location,Sensor,Status |
| 726 | checks.Current.ok_condition = "%Status%" eq "okay" |
| 727 | checks.Current.output_string = Current sensor '%Location%/%Sensor%' status is '%Status%' |
| 728 | |
| 729 | checks.FRU.description = FRU operational status |
| 730 | checks.FRU.begin_match = ^Fru Operational Status: |
| 731 | checks.FRU.end_match = ^$ |
| 732 | checks.FRU.skip_match = ^Location |
| 733 | checks.FRU.data_match = ^(\S+)\s+(\S+) |
| 734 | checks.FRU.data_labels = Location,Status |
| 735 | checks.FRU.ok_condition = "%Status%" =~ m/present|okay/ |
| 736 | checks.FRU.output_string = FRU '%Location%' status is '%Status%' |