-
Wondering if anyone has suggestions on how I would add a field in glances for whether the system has updates available via apt. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
Yes, it is possible using an AMP: https://glances.readthedocs.io/en/latest/aoa/amps.html Something like that in the Glances configuration file:
For the script, perhaps use "apt list --upgradable". |
Beta Was this translation helpful? Give feedback.
-
Or better for the script, use apt-check:
|
Beta Was this translation helpful? Give feedback.
-
Test ok on my system: Script in /tmp/foo.sh:
Glances configuration file:
|
Beta Was this translation helpful? Give feedback.
-
As in sensors category defined here among the others such as cpu and disk. https://glances.readthedocs.io/en/latest/aoa/index.html |
Beta Was this translation helpful? Give feedback.
-
Nice solution, however, if you run this in a Docker container to monitor the host, it will not work. Any suggestions for that? |
Beta Was this translation helpful? Give feedback.
Test ok on my system:
Script in /tmp/foo.sh:
Glances configuration file: