Code Monkey home page Code Monkey logo

check_adaptec_raid's Introduction

check_adaptec_raid - Nagios/Icinga plugin to check Adaptec Raid Controller status

General

  • The Adaptec RAID Monitoring Plugin is a Nagios/Icinga to check the Adaptec RAID Controller for warnings or critical errors.
  • It is written in Perl and uses the arcconf command line tool to interact with the RAID Controller.

Current Version

Further information

Mailing List

Functionalities

  • Controller Status
    • Temperature
    • Defunct drives
    • Failed/Degrade drives
  • Logical Device Status
    • State
    • Failed Stripes
  • Physical Device Status
    • State
    • SMART alert flag
    • SMART warnings
    • Drive Power State
    • Failed Segments
  • If ZMM is present (unless disabled)
  • ZMM (if available)
    • Backup Unit Status
    • Non-Volatile Storage Status
    • Supercap Status
    • Temperature
    • Voltage present
    • Health

Used arcconf commands

  • arcconf GETVERSION 1
  • arcconf GETCONFIG 1 AD
  • arcconf GETCONFIG 1 LD
  • arcconf GETCONFIG 1 PD

Installation Requirements

  • libfile-which-perl
  • arcconf

Requirements for Icinga/Nagios

  • On the system to be monitored:
    • check_adaptec_raid plugin
    • arcconf
    • sudoers entry for user nagios and arcconf (example: nagios ALL=(root) NOPASSWD:/sbin/arcconf If --ld-library-path is used, then the SETENV: flag must be added)
  • NRPE (optional): command definition
  • On the Icinga-server:
    • command definition
    • service definition

Parameter usage (example)

./check_adaptec_raid -Tw 40 -Tc 50 -LD 0,1 -PD 1 -z 0

License

Copyright (C) 2019 Thomas-Krenn.AG

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses/.

check_adaptec_raid's People

Contributors

cmitasch avatar fnemeth avatar gschoenberger avatar ipcjk avatar lausser avatar ls-initiatives avatar ohitz avatar t1m07hy avatar tniedermeier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

check_adaptec_raid's Issues

Invalid Physical Devices

Error:
Using arcconf v.2.05.22932 on a Windows 2012r2 Server and the check_adaptec_raid script from #3 results in an error 'Invalid physical device(s) specified!' when trying to run "check_adaptec_raid -PD 0".
Same behaviour when using the original script.

When running check_adaptec_raid with defaults and -vvv option the section 'PD' is empty.
Logical Devices seem to work after using the updated script from the pull request.

Logical device not detected

Hi,

on a Windows Server 2019 an existing Logicat Device is not detected.

In line 293 of check_adaptec_raid we search for "^Logical device number ([0-9]+)$"

arcconf (Version 3.03.00 (23668) ) outputs:

    ----------------------------------------------------------------------
    Logical device information
    ----------------------------------------------------------------------
    Logical Device number 0
    ...

Caused by case sensitive pattern matching no "Logical device number" is found

May be a better attempt would be to search case insensitive:
if($line =~ /^Logical device number ([0-9]+)$/**i**){

Best regards,
Edgar

Use of uninitialized value $lineVals[1]

Hello,

Thank you very much for creating this check.

Upon installing and configuring it as described in the documentation, we are receiving the following error on line 422:

./check_adaptec_raid

Use of uninitialized value $lineVals[1] in substitution (s///) at ./check_adaptec_raid line 422.
OK (CTR, LD, PD, ZMM)|CTR_Temperature=45;80;90

Does anyone know a way to fix it? Thanks in advance.

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.