The Lounge 0001 [From the Beginning]

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

Screenshot%20from%202018-04-11%2000-24-38

2 Likes

yeah dealing with that stuff is a pain that statement though, is looking pretty good.

1 Like

yep. almost got disk space checking implemented in. just need to get the formatting done

1 Like

neat program is coming together nicely, after disk usage and error checking got much else you want to add to it?

1 Like

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

1 Like

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?

1 Like

the blacklist will just be a dynamic grep inversion so anything you specify will be matched against the command being run

1 Like

also looking good so far :smiley:

Screenshot%20from%202018-04-11%2000-52-07

2 Likes

:ok_hand: looks nice, I see what you mean about the snaps XD

1 Like

This is what ive got so far :smiley:
status.py (1.6 KB)

1 Like

nice, rip my storage drive is almost full XD

Screenshot%20from%202018-04-11_06%3A56%3A28

2 Likes

glad to see it work :smiley:

1 Like

yep it would seem I’m the perfect guinea pig, should probably start clearing the drive out soon XD

1 Like

yep. Im gonna work on a blacklist now. Just need to figure out a good way todo it :smiley:

1 Like

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?

1 Like

just the disk stuff. You shouldnt really need a blacklist for the services one but ill build it in anyway :smiley:

1 Like

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.

1 Like

im just gonna write a function that takes a command and list and applys a filter based on whats provided

1 Like

nice sounds like a good enough solution :smiley:

1 Like

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

1 Like