Trae Santiago
f9fea2e06c
fixed conditional not checking for file before cating, and removed reliance on bc ( #425 )
2022-10-14 13:42:47 -05:00
oernii
a78596030c
mdadm sync check - completed percent ( #415 )
...
Co-authored-by: oernii <Ernest.Beinrohr@axonpro.sk >
2022-09-10 19:22:52 +02:00
SourceDoctor
027e848069
mdadm sync_complete fix ( #409 )
2022-06-19 13:38:41 +02:00
Trae Santiago
7cbf74e9eb
Replaced mdadm script with a newer, more flexible version ( #401 )
...
* Replaced mdadm script with a newer, more flexible version
* added basic error handling, and conditionals for missing array
* added fallback json squashing code if jq is missing
* fixed comments and shellcheck
* spacing
2022-06-18 11:58:33 +02:00
Jellyfrog
25fb357809
Lint more files ( #356 )
2021-03-18 20:07:25 +01:00
Jellyfrog
61064dc9fe
Cleanup some code ( #355 )
...
* Format with isort
* Format with Black
* Fix CRLF
* Format with shellcheck
* Fix some warning
* Fix PHP style
* Dont modifiy check_mk files
* Fixes
2021-03-18 12:24:30 +01:00
Robert (KHobbits)
ddfed007c1
Fix STDERR output corrupting json output in mdadm app ( #344 )
...
When checking if arrays have slaves, the mdadm script, does an ls/$LS of the device to see if it exists.
This $LS throws an error to STDERR if it does not match.
This output is caught by snmp and corrupts the json output
2021-01-18 11:54:03 -06:00
Yoan Tanguy
712e31a9c8
Fix bash check from directory to block type ( #295 )
...
* Fix bash check from directory to block type
https://github.com/librenms/librenms-agent/issues/278
* Update mdadm
fix array existance check
Co-authored-by: SourceDoctor <sourcehhdoctor@gmail.com >
2020-07-20 22:18:22 +02:00
SourceDoctor
8f731c83d0
Fix parsing Error on MDADM if increasing disc count ( #320 )
2020-07-14 01:10:37 +02:00
SourceDoctor
652ae62899
set MDADM sync complete to 0 if on degraded array
2020-02-05 23:34:42 +01:00
SourceDoctor
3ea93ab4d2
adding space
2020-01-18 21:50:12 +01:00
SourceDoctor
4e97a51a65
Hotspare Count should not go below zero
2020-01-18 19:37:09 +01:00
SourceDoctor
bcd3a6573e
mdadm name independent mdadm array detection
2019-07-01 13:42:24 +02:00
SourceDoctor
e5d5915868
mdadm config file fix ( #233 )
2019-05-13 17:55:02 -05:00
SourceDoctor
dadc369c1c
add mdadm support
2019-05-06 21:24:36 +02:00