GithubHelp home page GithubHelp logo

mfrank2016 / zabbix-raidstat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ps78674/zabbix-raidstat

0.0 1.0 0.0 56 KB

Zabbix monitoring for Adaptec/arcconf, HP/ssacli, Marvell/mvcli (Template w/LLD)

Go 96.09% Makefile 3.91%

zabbix-raidstat's Introduction

Zabbix RAID monitoring for Adaptec/Microsemi, HP Smart Array and Lenovo M.2 RAID (mvcli)

Simple parser for arcconf, ssacli and mvcli written in Go.

Zabbix template provides LLD for controllers, logical and physical drives. Discovery

Configured host must have macros {$RAID_VENDOR} (as value for cli option -vendor). Example host

raidstat: parse raid vendor tool output and format it as json

Usage:
  zabbix-raidstat (-v <VENDOR>) (-d <OPTION> | -s <OPTION>) [-i <INT>]

Options:
  -v, --vendor <VENDOR>    raid tool vendor, one of: adaptec | hp | marvell
  -d, --discover <OPTION>  discovery option, one of: ct | ld | pd
  -s, --status <OPTION>    status option, one of: ct,<CONTROLLER_ID> | ld,<CONTROLLER_ID>,<LD_ID> | pd,<CONTROLLER_ID>,<PD_ID>
  -i, --indent <INT>       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").

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 templatezabbix/zbx_raid_monitoring.xml

zabbix-raidstat's People

Contributors

ps78674 avatar qw5kcmv5 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.