How to show SD space still available?

Hi guys,
I recently discovered Nymea, but I really like it. I installed it on a Raspberry 0 with a 4GB SD. The system works quite well, and it is not my intention overloading it, I know I can’t ask for too much. It would be very useful to be able to have some other information in the state of the system, such as the SD space still available. As I could report on Nymea the data generated by a UNIX line command as “DF”:


nymea@nymea:~ $ df
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/root        3443008 1967424   1299460  61% /
devtmpfs           88616       0     88616   0% /dev
tmpfs             219908       0    219908   0% /dev/shm
tmpfs              87964     908     87056   2% /run
tmpfs               5120       4      5116   1% /run/lock
/dev/mmcblk0p1    258095   50411    207685  20% /boot
tmpfs              43980       0     43980   0% /run/user/1000

Thanks

Hi @mosix,

That could probably fit into the systemmonitor plugin. Thanks for the suggestion.

@mosix I’ve added such a feature to the systemmonitor plugin. You can test it from the experimental repository. Currently it only shows the percentage of the disk usage for the root volume but that should be enough for most cases (including yours afaict).

Ciao Michael, and thank you for remembering my request. She is good news. I will try to use this value in a rule to be warned when a certain threshold is exceeded… it can be done, right? :grinning:

Yes, you can create rules that compare the disk usage and trigger actions.

I’ve just reworked the plugin a bit more and have split the functionality into 2 thing classes:

  • One named Process monitor which allows monitoring individual processes as the old one did, but additionally allowing to monitor other processes too, not just nymead itself.
  • The second named System monitor which would show CPU, memory and Disk usage for the overall system.

This may break your rule on the next update in experimental.

1 Like