Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ps78674/zabbix-raidstat
Zabbix monitoring for Adaptec/arcconf, HP/ssacli, Marvell/mvcli (Template w/LLD)
https://github.com/ps78674/zabbix-raidstat
go golang raid-monitoring zabbix
Last synced: 2 months ago
JSON representation
Zabbix monitoring for Adaptec/arcconf, HP/ssacli, Marvell/mvcli (Template w/LLD)
- Host: GitHub
- URL: https://github.com/ps78674/zabbix-raidstat
- Owner: ps78674
- Created: 2019-09-20T13:31:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-12T06:58:53.000Z (over 1 year ago)
- Last Synced: 2024-08-03T23:19:48.054Z (6 months ago)
- Topics: go, golang, raid-monitoring, zabbix
- Language: Go
- Homepage:
- Size: 70.3 KB
- Stars: 15
- Watchers: 1
- Forks: 12
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-golang-repositories - zabbix-raidstat
README
### Zabbix RAID monitoring for Adaptec/Microsemi, HP Smart Array, Lenovo M.2 RAID (mvcli), LSI MegaRAID (megacli) and LSI (sas2ircu)
Simple parser for `arcconf`, `ssacli`, `mvcli`, `megacli` and sas2ircu written in Go.Zabbix template provides LLD for controllers, logical and physical drives.
![Discovery](https://user-images.githubusercontent.com/31385755/65332764-f9f3f380-dbc7-11e9-9d08-9a2e5bc236bf.png)Configured host must have macros {$RAID_VENDOR} (as value for cli option `-vendor`).
![Example host](https://user-images.githubusercontent.com/31385755/65949183-5cf54e00-e444-11e9-9070-ef570a53c7e4.png)```
raidstat: parse raid vendor tool output and format it as jsonUsage:
zabbix-raidstat (-v ) (-d | -s ) [-i ]Options:
-v, --vendor raid tool vendor, one of: adaptec | hp | marvell | megacli | sas2ircu
-d, --discover discovery option, one of: ct | ld | pd
-s, --status status option, one of: ct, | ld,, | pd,,
-i, --indent indent json output level [default: 0]-h, --help show this screen
```
Config file `config.json` is used for raid vendors -> tools configuration.
```
{
"vendors": {
"hp": "ssacli",
"vendor1": "/PATH/TO/BINARY1",
"vendor2": "/PATH/TO/BINARY2"
}
}
```
Vendor name is used as plugin name (like "hp.so").## Compilation:
Run `make` to compile all in build directory
Run `mnake tar` to get an archive## Installation:
1. Copy `raidstat/zabbix/raidstat.sudoers` to `/etc/sudoers.d/raidstat`
2. Copy `zabbix/userparameter_raidstat.conf` to `/etc/zabbix/zabbix_agentd.d`
3. Copy compiled binaries to `/opt/raidstat`
4. Import template`zabbix/zbx_raid_monitoring.xml`