zabbix-agent2-plugin-mdraid

command module
v0.0.0-...-0b4bebc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

README

MDRaid Plugin for Zabbix Agent 2

Description

mdadm monitoring plugin for zabbix-agent2. plugin read the data from sysfs, instead of parsing "/proc/mdstat" and "mdadm -D".

Building

go build ./zabbix-agent2-plugin-mdraid.go

Installation

Copy the binary to /usr/sbin/zabbix-agent2-plugin/. Copy the configuration file to /etc/zabbix/zabbix_agent2.d/plugins.d/ and restart the agent.

Supported items

  • mdraid.dev.discovery - List of known MD devices in LLD format
    • {#DEVICE}
  • mdraid.dev.get[<device>] - The state of a device as a json object
    • Device - Device name
    • Level - The raid level (e.g. raid0, raid1, raid5, linear, multipath, faulty).
    • ArrayState- Describes the current state of the array.
    • RaidDisks - The number of devices in a fully functional array.
    • DegradedDisks - Contains a count of the number of devices by which the arrays is degraded.
    • SyncAction
    • SyncCompleted

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL