ConSol-Monitoring / snclient

SNClient+ - Cross platform monitoring agent
MIT License
48 stars 8 forks source link

check_drivesize - case sensitivity on Linux box #14

Closed jframeau closed 1 year ago

jframeau commented 1 year ago

When checking for /home (but any directory failed in fact but /), I get:

All 0 drive(s) are ok

I think this part of code is wrong:

for _, arg := range argList { switch arg.key { case "drive": drives = append(drives, strings.Split(strings.ToUpper(arg.value), ",")...) case "exclude": excludes = append(excludes, strings.Split(strings.ToUpper(arg.value), ",")...) } }

as gopsutil returns current case.

jfr

sni commented 1 year ago

The linux drivesize check is not yet completed, i added table here: https://github.com/ConSol-Monitoring/snclient#implementation-status

sni commented 1 year ago

should be better now.