Giter Club home page Giter Club logo

Comments (2)

HHawk avatar HHawk commented on June 1, 2024

By the way, a small follow-up; I noticed all my drives are being displayed as /dev/sda. I understand this is caused by the way I use the plugin. For example:

command[check_smart_all]=sudo /usr/lib64/nagios/plugins/check_smart.pl -g /dev/sda -i "megaraid,[0-8]"

The reason for this, is that I only have /dev/sda, but no other drives being displayed like that?
For example from the command line, how I normally check the disks behind RAID is like this:

smartctl -a -d megaraid,1 /dev/sda               #For the 1st HDD
smartctl -a -d megaraid,2 /dev/sda               #For the 2nd HDD
smartctl -a -d megaraid,3 /dev/sda               #For the 3d HDD
etc.

If I use "smartctl -a -d megaraid,1 /dev/sdb" it will output: Smartctl open device: /dev/sdb [megaraid_disk_00] failed: No such device

Is this normal?

Update: I noticed another minor issue. It also checks the "backplane" as healthy.
Because I noticed in my Nagios GUI four (4) "disks" being healthy, though only 3 are installed.

Example:

smartctl -a -d megaraid,0 /dev/sda
<snip>
=== START OF INFORMATION SECTION ===
Vendor:               DP
Product:              BACKPLANE
Revision:             1.07
Device type:          enclosure
Local Time is:        Tue May 21 18:56:42 2019 CEST
SMART support is:     Unavailable - device lacks SMART capability.
<snip>

Anyone else having this as well? Or am I the only one. :S

Regards

from check_smart.

Napsty avatar Napsty commented on June 1, 2024

By the way, a small follow-up; I noticed all my drives are being displayed as /dev/sda. I understand this is caused by the way I use the plugin.

You're using a hardware raid controller. Each raid array is presented as a drive to the OS. Hence several drives can be behind /dev/sda. That's not the plugin.

Also using the -g parameter for hardware raids is not recommended because the positions in the raid array (whether this is cciss or megaraid or something else) might change after a reboot. So you should consider doing single drive checks. Example for your 1st HDD:

./check_smart.pl -d /dev/sda -i megaraid,1

Update: I noticed another minor issue. It also checks the "backplane" as healthy.

Again, that's how the OS implements the raid controller. One of the megaraid internal positions (usually position 0 but this may differ) is always the controller itself.

from check_smart.

Related Issues (20)

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.