Comments (2)
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.
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)
- status line 2000GB Gigabyte AORUS M.2 2280 PCIe 4.0 x4 NVMe HOT 4
- Warning thresholds does NOT give the expected result. HOT 2
- Add attribute 188 Command_Timeout to raw check list HOT 1
- Handling dots in attribute names HOT 1
- add aacraid HOT 5
- Request: Auto detect and count all drive on system
- Add special monitoring on SSD attribute 202 (Percent_Lifetime_Remain) HOT 1
- Prioritise output by criticality HOT 14
- Wear_Leveling_Count is not reported as CRIT when disk is almost dead HOT 7
- No performance data on NVMe drive HOT 2
- 6.12.0 regression: invalid interface
- megaraid,N not work with 6.12 HOT 2
- Add TBW calculations for end of life prediction in SSDs HOT 1
- Percent_Lifetime_Remain usage HOT 5
- flag to disable temperature check HOT 2
- Intel ssd wearout not reported when almost dead HOT 9
- check_smart.pl very slow on Almalinux 8 HOT 1
- Percent_Lifetime_Remain threshold unset with -w HOT 19
- No output after pipe HOT 4
- Kingston ssd wearout not detected HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from check_smart.