2
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00
Commit graph

9 commits

Author SHA1 Message Date
Dr. Nagy Elemér Károly
b805f7a64f Fixed typo in comment 2016-05-16 22:11:31 +00:00
Ken-ichi Mito
6284302ae1 enhancement - fetch remaining time of array rebuilding and show them on config
* add info about remaining time, read-only status
 * change label to follow b39d26e
2015-05-04 18:47:10 +09:00
Ken-ichi Mito
760b14f554 enhancement - use only /proc/mdstat, stop using /sbin/mdadm
* mdadm needs super-user privileges, but /proc/mdstat is readable for nobody
 * fetch an array state from mdstat 'reshape|check|resync|recovery'
  * reshape, recovery: rebuilding array -> set percent to _rebuild.value
  * check, resync: data scrubbing or mirror rebuilding => set percent to _check.value
   * resync=DELAYED|PENDING => set both to zero, because details are unknown even if using mdadm

 * more info about /proc/mdstat => kernel src:/drivers/md/md.c, md_seq_show()
2015-05-04 18:45:46 +09:00
Ken-ichi Mito
9845279a30 fix - mdadm has '--readonly' option to make the array 'active (read-only)' 2015-05-04 18:11:13 +09:00
Ken-ichi Mito
2670e4dc26 refactoring - split a single regex matching to three matchings
* one line regular expression matching to multiline text is a bit hard to picture
 * apply regular expressions to each line
  * first line should like "active raid1 sda1[0] sdc1[2] sdb1[1]"
  * second line should like "123456 blocks super 1.2 [2/2] [UU]"
  * third line will appear when the array is in action
2015-05-04 18:09:13 +09:00
Ken-ichi Mito
2e0acaca2b refactoring - replace TAB with 8 spaces, use lexical variable for file handle
* reduce indentation of local($/)
2015-05-04 14:56:30 +09:00
Tomas Sirny
d7e6c0114d Fix cpct value 2013-12-10 15:48:01 +01:00
rantal
3fec132427 Added ability to monitor check/resync status of raid arrays, bugfix with regexp check while empty @output[0] 2013-09-04 00:57:12 -07:00
Steve Schnepp
08346aac58 - have some dirs 2012-02-13 18:24:46 +01:00
Renamed from plugins/other/raid (Browse further)