Open hardcess opened 5 years ago
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
@waja can that hat 🎩 help you to produce PR? :)
@glensc unfortunately my perl skills are very limited til not existing. :(
probably the task is just to add another pattern and maybe add data for new test case.
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
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/, );
@Marvo2011 send a pull request, don't forget to include snapshot from your system for unit testing.
How can I create the unit tests / and get the snapshots?
How can I create the unit tests / and get the snapshots?
it's documented in the project CONTRIBUTING.md file
@knorrie if you can get this issue moving forward just go ahead and submit a pr.
Output of
check_raid -d
:Output of each command from
check_raid -d
(command being executed)
(second command being executed)
Additional environment details: Linux Debian 10