Giter Site home page Giter Site logo

Comments (6)

Napsty avatar Napsty commented on August 25, 2024

I have to add, that this warning feature worked well in a previous version (2.1):

./check_raid -v
check_raid Version 2.1

./check_raid
WARNING: md:[md2(raid1):UU (check:93.9% 6224K/sec ETA: 471.5min), md1(raid1):UU, md0(raid1):UU]

Newest version available on github (as of 2013-04-26):
./check_raid.pl -v
Unknown option: v

(-v doesnt work anymore... ?)

./check_raid.pl 
OK: mdstat:[md2(2.73 TiB raid1):UU, md1(511.99 MiB raid1):UU, md0(2.00 GiB raid1):UU]

from nagios-plugin-check_raid.

glensc avatar glensc commented on August 25, 2024

i don't have time to check this now, but could you attach your /proc/mdstat so later when i have time would be still able to debug this. better some raw form, as the formatting is usually important (tabs vs two or three spaces), etc. i.e it would just simple parse fault due changed kernel version or so. oh and if you can, your kernel version too.

as for -v, i think the option is now --version or capital -V and -v is supposed to be reserved for "verbose" in the future.

from nagios-plugin-check_raid.

Napsty avatar Napsty commented on August 25, 2024

You're right, -V works for the version output. -h doesnt work though:

# ./check_raid.pl -V
check_raid Version 3.0

# ./check_raid.pl -h
Undefined subroutine &main::print_help called at ./check_raid.pl line 3001.

The raw output of /proc/mdstat looks like this:

# cat /proc/mdstat 
Personalities : [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] 
md2 : active raid1 sdb3[0] sda3[2]
      2927641919 blocks super 1.2 [2/2] [UU]
      [===================>.]  check = 98.3% (2879283712/2927641919) finish=81.7min speed=9854K/sec

md1 : active raid1 sda2[2] sdb2[1]
      524276 blocks super 1.2 [2/2] [UU]

md0 : active raid1 sda1[2] sdb1[1]
      2096116 blocks super 1.2 [2/2] [UU]

unused devices: <none>

from nagios-plugin-check_raid.

glensc avatar glensc commented on August 25, 2024

the check state check was removed in #23

from nagios-plugin-check_raid.

glensc avatar glensc commented on August 25, 2024

ab3471f

from nagios-plugin-check_raid.

glensc avatar glensc commented on August 25, 2024

try 3.0.2, it's configurable now

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.