Code Monkey home page Code Monkey logo

nagios-check_3par's Introduction

Nagios check_3par

Basic support for monitoring HP 3PAR arrays by Nagios

Usage

check_3par -h | -H <3PAR> [-d] [-u <username>] [-i <inform_cli> [-p <password_file>]] [-w <warning>] [-c <critical>] COMMAND [ arg [arg ...]]

Options:
    -h, --help 
                Print detailed help screen
    -H, --hostname=ADDRESS 
                3PAR controler
    -i, --inform-bin=PATH
                Path to 3PAR Inform CLI. Default connection method is SSH.
    -u, --username=USER
                3PAR username
    -p, --password-file=PATH
                Password file for 3PAR Inform CLI
    -w, --warning=TRESHOLD (default: 80)
                Warning treshold
    -c, --critical=TRESHOLD (default: 90)
                Critical treshold
    -d, --debug
                Turn on debugging

Supported commands


   check_pd :   Check status of physical disks
                   Degraded ->      Warning
                   Failed ->        Critical

   check_node :    Check status of controller nodes
                   Degraded ->      Warning
                   Failed ->        Critical

   check_ld :   Check status of logical disks
                   Degraded ->      Warning
                   Failed ->        Critical

   check_vv :   Check status of virtual volumes
                   Degraded ->      Warning
                   Failed ->        Critical

   check_port_fc : Check status of FC ports
                   loss_sync ->     Warning
                   config_wait ->   Warning
                   login_wait ->    Warning
                   non_participate ->   Warning
                   error ->         Critical

   check_cap_ssd : Check used SSD capacity
                   >= 80 ->         Warning
                   >= 90 ->         Critical

   check_cap_fc :   Check used FC capacity
                   >= 80 ->         Warning
                   >= 90 ->         Critical

   check_cap_nl : Check used NL capacity 
                   >= 80 ->         Warning
                   >= 90 ->         Critical

   check_ps_node : Check Power Supply Node
                   Degraded ->      Warning
                   Failed ->        Critical

   check_ps_cage : Check Power Supply Cage
                   Degraded ->      Warning
                   Failed ->        Critical

   check_volume <VOLUMENAME> : Check status of volume
                   Degraded ->      Warning
                   Failed ->        Critical

   check_qw <QWIP> : Check status of quorum witness
                   loss_sync ->     Critical
                   error ->         Critical
				   
   check_health :  Check overall state of the system
   
   check_alerts : Check status of system alerts
				   

Usage in Nagios

Copy file check_3par to Nagios plugins directory (for example /usr/lib/nagios/plugins/).

Copy file 3par.cfg to Nagios conf.d directory (for example /etc/nagios/conf.d).

Read 3par.cfg and adjust it to your needs and restart nagios service nagios restart

Testing

You can test check_3par while developing. Copy test.sh.templ to test.sh, edit it to meet your needs and enjoy happy testing ... ;-)

Links

Nagios plugin developement [https://nagios-plugins.org/doc/guidelines.html#PLUGOPTIONS]

nagios-check_3par's People

Contributors

grexaut avatar peter-hanraets avatar qaxi avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nagios-check_3par's Issues

HP PRIMERA & 3PAR operating system and tooling versions (showcage)

Hello!

on the HP PRIMERA arrays (showsys still prints "HPE_3PAR XXX" as model), there is newer OS version and different showcage command.

On our old 3PAR arrays, there is OS version (showversion) 3.3.2, but on PRIMERA, there is 4.5.0.

The new OS does not support the "-d" parameter for showcage command - so the check_ps_cage check does not work.

But on the other hand, showcage command now shows State column directly in the basic output, like this:

cli% showcage
Id Name  LoopA Pos.A LoopB Pos.B Drives Temp  RevA RevB Model FormFactor State
 0 cage0 0:0:4     0 1:0:4     0     20 28-29 0703 0703 DCN5  SFF        normal
 2 cage2 0:0:2     0 1:0:2     0     20 28-29 0703 0703 DCS12 SFF        normal

Some questions:

  1. would it be good if this check can also do the HP PRIMERA (except for the "cage" everything seems to work)?

  2. If we want to somehow branch (conditions) the check code for more HP array types, what is the best one? By OS version (showversion)? Any other trick?

Thanks for discussion and experiences with this HP arrays!

error on module check_health, if LD subtype of 3par report an 'total' message

Hi,
we had the following condition: the 3par controller report an error on type LD. This breaks the check_health module and report an error. The word "total" is 2 time available inside the internal variable TOTAL. This raise the error on line 620. I fixed the error with an exclusion on the other "total" word group.

Line 619 original:
TOTAL=$( echo "${TMPOUT}" | grep total | awk '{print $1}' )

Line 619 fixed:
TOTAL=$( echo "${TMPOUT}" | grep -v "total node" | grep total | awk '{print $1}' )

Kind regards,
Michael

Feature request - sync status

Hi!
This check is very good as it is.
But i have a feature request regarding checking if volumes are in sync.
We have had problems that rcopy groups are loosing sync.
it would be very nice if there where a option to monitor and check if the copygroups are in "synced" state and if not it would be a warning.

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.