master
superq/goimports
superq/fs_include
superq/v2
superq/systemd_shutdown
mixin-fix-cpu-usage
release-1.8
superq/stylecheck
superq/refactor_kingpin
release-1.6
release-1.4
release-1.3
superq/os_collector
superq/replace_load_metric
release-1.2
fixpanic
release-1.1
aix-ppc64
security-dot-md
fish/remove-docker-hub-references
readme-remove-misleading-plugins
release-1.0
discordianfish-patch-1
revert-1677-expose-tls-copy
pgier/disable-default-collectors
superq/buildkite
release-0.18
superq/systemd_filter
superq/unit_type
release-0.17
bjk/fpm
release-0.16
release-0.15
v1.8.2
v1.8.1
v1.8.0
v1.7.0
v1.6.1
v1.6.0
v1.5.0
v1.4.1
v1.4.0
v1.4.0-rc.0
v1.3.1
v1.3.0
v1.2.2
v1.2.1
v1.2.0
v1.1.2
v1.1.1
v1.1.0
v1.0.1
v1.0.0
v1.0.0-rc.1
v1.0.0-rc.0
v0.18.1
v0.18.0
v0.17.0
v0.17.0-rc.0
v0.16.0
v0.16.0-rc.3
v0.16.0-rc.2
v0.16.0-rc.1
v0.16.0-rc.0
v0.15.2
v0.15.1
v0.15.0
0.12.0
0.12.0rc1
0.8.0
0.7.1
0.7.0
0.6.0
0.10.0
0.11.0
0.12.0rc2
0.12.0rc3
0.13.0-rc.2
0.8.1
0.9.0
v0.13.0
v0.13.0-rc.1
v0.13.0-rc.2
v0.14.0
v0.14.0-rc.1
v0.14.0-rc.2
${ noResults }
1 Commits (07c7ae733ad533d6b354fadb58bea03a647e0688)
Author | SHA1 | Message | Date |
---|---|---|---|
Matt Bostock | 2c02571040 |
Add StorCli text collector example script
Collect metrics from the StorCLI utility on the health of MegaRAID hardware RAID controllers and write them to stdout so that they can be used by the textfile collector. We parse the JSON output that StorCLI provides. Script must be run as root or with appropriate capabilities for storcli to access the RAID card. Designed to run under Python 2.7, using the system Python provided with many Linux distributions. The metrics look like this: mbostock@host:~$ sudo ./storcli.py megaraid_status_code 0 megaraid_controllers_count 1 megaraid_emergency_hot_spare{controller="0"} 1 megaraid_scheduled_patrol_read{controller="0"} 1 megaraid_virtual_drives{controller="0"} 1 megaraid_drive_groups{controller="0"} 1 megaraid_virtual_drives_optimal{controller="0"} 1 megaraid_degraded{controller="0"} 0 megaraid_battery_backup_healthy{controller="0"} 1 megaraid_ports{controller="0"} 8 megaraid_failed{controller="0"} 0 megaraid_drive_groups_optimal{controller="0"} 1 megaraid_healthy{controller="0"} 1 megaraid_physical_drives{controller="0"} 24 megaraid_controller_info{controller="0", model="AVAGOMegaRAIDSASPCIExpressROMB"} 1 mbostock@host:~$ |
8 years ago |