Giter Site home page Giter Site logo

Comments (10)

waja avatar waja commented on August 25, 2024

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.

glensc avatar glensc commented on August 25, 2024

@waja can that hat 🎩 help you to produce PR? :)

from nagios-plugin-check_raid.

waja avatar waja commented on August 25, 2024

@glensc unfortunately my perl skills are very limited til not existing. :(

from nagios-plugin-check_raid.

glensc avatar glensc commented on August 25, 2024

probably the task is just to add another pattern and maybe add data for new test case.

from nagios-plugin-check_raid.

waja avatar waja commented on August 25, 2024

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.

Marvo2011 avatar Marvo2011 commented on August 25, 2024

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.

glensc avatar glensc commented on August 25, 2024

@Marvo2011 send a pull request, don't forget to include snapshot from your system for unit testing.

from nagios-plugin-check_raid.

Marvo2011 avatar Marvo2011 commented on August 25, 2024

How can I create the unit tests / and get the snapshots?

from nagios-plugin-check_raid.

glensc avatar glensc commented on August 25, 2024

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.

glensc avatar glensc commented on August 25, 2024

@knorrie if you can get this issue moving forward just go ahead and submit a pr.

from nagios-plugin-check_raid.

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.