Comments (10)
Hi there,
with my Debian Maintainers hat for nagios-plugins-contrib on, I can confirm this issue. Looks like the output of cciss_vol_status
has changed here. The following output is added to the "Cache status":
Total cache memory: 1816 MiB
Cache Ratio: 15% Read / 85% Write
from nagios-plugin-check_raid.
@waja can that hat 🎩 help you to produce PR? :)
from nagios-plugin-check_raid.
@glensc unfortunately my perl skills are very limited til not existing. :(
from nagios-plugin-check_raid.
probably the task is just to add another pattern and maybe add data for new test case.
from nagios-plugin-check_raid.
Anyway ... here is the output of /bin/cciss_vol_status -V /dev/sg0
:
Controller: Smart Array P440ar
Board ID: 0x21c0103c
Logical drives: 1
Running firmware: 6.60
ROM firmware: 6.60
/dev/sda: (Smart Array P440ar) RAID 6 Volume 0 status: OK. At least one spare drive designated. At least one spare drive remains available.
Physical drives: 8
connector 1I box 1 bay 1 HITACHI HUC109090CSS600 KXJYHXPX A5B0 OK
connector 1I box 1 bay 2 HITACHI HUC109090CSS600 W8JP195G A5B0 OK
connector 1I box 1 bay 3 HITACHI HUC109090CSS600 KVJZP54F A5B0 OK
connector 1I box 1 bay 4 HITACHI HUC109090CSS600 W8JP14JG A5B0 OK
connector 2I box 1 bay 5 HITACHI HUC109090CSS600 W8JPYSNG A5B0 OK
connector 2I box 1 bay 6 HITACHI HUC109090CSS600 W8JNH4VG A5B0 OK
connector 2I box 1 bay 7 HITACHI HUC109090CSS600 W8JP4BRG A5B0 OK
connector 2I box 1 bay 8 HITACHI HUC109090CSS600 W8JP74DG A5B0 OK
/dev/sg0(Smart Array P440ar:0): Non-Volatile Cache status:
Cache configured: Yes
Total cache memory: 1816 MiB
Cache Ratio: 15% Read / 85% Write
Read cache memory: 273 MiB
Write cache memory: 1543 MiB
Write cache enabled: Yes
Flash backed cache present
from nagios-plugin-check_raid.
Temporary fix:
Change block from:
my %map = (
configured => qr/Cache configured: (.+)/,
read_cache_memory => qr/Read cache memory: (.+)/,
write_cache_memory => qr/Write cache memory: (.+)/,
write_cache_enabled => qr/Write cache enabled: (.+)/,
flash_cache => qr/Flash backed cache present/,
disabled_temporarily => qr/Write cache temporarily disabled/,
disabled_permanently => qr/Write Cache permanently disabled/,
);
to:
my %map = (
configured => qr/Cache configured: (.+)/,
total_cache_memory => qr/Total cache memory: (.+)/,
cache_ratio => qr/Cache Ratio: (.+)/,
read_cache_memory => qr/Read cache memory: (.+)/,
write_cache_memory => qr/Write cache memory: (.+)/,
write_cache_enabled => qr/Write cache enabled: (.+)/,
flash_cache => qr/Flash backed cache present/,
disabled_temporarily => qr/Write cache temporarily disabled/,
disabled_permanently => qr/Write Cache permanently disabled/,
);
from nagios-plugin-check_raid.
@Marvo2011 send a pull request, don't forget to include snapshot from your system for unit testing.
from nagios-plugin-check_raid.
How can I create the unit tests / and get the snapshots?
from nagios-plugin-check_raid.
How can I create the unit tests / and get the snapshots?
it's documented in the project CONTRIBUTING.md file
from nagios-plugin-check_raid.
@knorrie if you can get this issue moving forward just go ahead and submit a pr.
from nagios-plugin-check_raid.
Related Issues (20)
- arcconf: bbu monitoring for flash+battery/supercap adaptec modules HOT 1
- arcconf: doesn't handle logical device status: Impacted (Build/Verify with fix : 90 %) HOT 2
- Allow to ignore plugins
- No remote servers RAID status: check_raid UNKNOWN HOT 16
- Possible to hide "OK" results or just showing "OK" and not all devices? HOT 4
- remote monitor HOT 1
- Use of StorCli instead of MegaCli HOT 5
- [bug] with parsing mdadm output => Unexpected parse
- Sudo error on centos
- WARNING: megacli:[Volumes(1): DISK0.0:Optimal, WriteCache:DISABLED HOT 2
- arcconf: parse error HOT 6
- Unexpected parse at ./check_raid.pl line 3578, <$fh> line 6. HOT 1
- HP ssacli - consider predictive failure information HOT 6
- HP ssacli - rebuilding shouldn't perhaps still be warning state? HOT 6
- HP ssacli -
- Error with P440AR RAID controller. How to solve, what to change? Please advice. HOT 6
- "NOT PARSED" and "Can't locate object method" errors HOT 2
- Feature Request mdstat: Warn when auto-read-only array detected
- "sudo: a password is required" on Ubuntu 20.0.4 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 nagios-plugin-check_raid.