trying to implement disk space checking on my status program and holy shit was it a ride to program it in

trying to implement disk space checking on my status program and holy shit was it a ride to program it in

yeah dealing with that stuff is a pain that statement though, is looking pretty good.
yep. almost got disk space checking implemented in. just need to get the formatting done
neat program is coming together nicely, after disk usage and error checking got much else you want to add to it?
not sure yet. having a blacklist would be nice for certain things i dont wont diskspace to be checked against. Stuff like snaps tend to be a virtual mount with 100% disk usage so its going to constantly send off the alarm
yep adding something like that would be helpful. couldn’t you just do something like df -ht btrfs which will only list the specified type of filesystem and skip out stuff like virtual mounts and stuff and is an easy fix?
the blacklist will just be a dynamic grep inversion so anything you specify will be matched against the command being run
also looking good so far 

looks nice, I see what you mean about the snaps XD
This is what ive got so far 
status.py (1.6 KB)
nice, rip my storage drive is almost full XD

glad to see it work 
yep it would seem I’m the perfect guinea pig, should probably start clearing the drive out soon XD
yep. Im gonna work on a blacklist now. Just need to figure out a good way todo it 
neat that could be a tricky one, you gonna do a blacklist for the whole program for stuff like failed services as well or just the disk usage stuff?
just the disk stuff. You shouldnt really need a blacklist for the services one but ill build it in anyway 
yep after you’ve got disk stuff done should be easy enough todo for services as well, i mean I still have that mce failed service on my system which would probably trigger it all the time.
im just gonna write a function that takes a command and list and applys a filter based on whats provided
nice sounds like a good enough solution 
So i added the blacklist functionally and i found a bug. If there are no errors then a message will popup anyone saying that there is a error XD