[sudo-sys] netdata tmp files
Charles E. Lehner
cel at celehner.com
Wed Oct 28 12:22:02 PDT 2020
Hi sudoers,
/tmp on saros (gateway router) has been filling up with files generated by netdata.
e.g.:
$ ls -latr /tmp
[...]
drwx------ 3 root root 64 Oct 7 06:25 netdata-updater-nqKict
drwx------ 3 root root 89 Oct 7 06:26 netdata-libbpf-IMKz3n
drwx------ 3 root root 64 Oct 8 06:25 netdata-updater-aFiv4o
drwx------ 3 root root 89 Oct 8 06:26 netdata-libbpf-wnBwqo
drwx------ 3 root root 64 Oct 9 06:25 netdata-updater-JDovyN
drwx------ 3 root root 89 Oct 9 06:26 netdata-libbpf-Uz8r2x
drwx------ 3 root root 64 Oct 10 06:25 netdata-updater-Ms8q9s
drwx------ 3 root root 89 Oct 10 06:26 netdata-libbpf-zdPMcw
drwx------ 3 root root 64 Oct 11 06:25 netdata-updater-XTAGz0
[...]
When /tmp fills up, it's hard to use the shell, as e.g. bash gives this error when attempting to do a tab completion: "-bash: cannot create temp file for here-document: No space left on device"
I made a script to move away old netdata tmp files:
/home/cel/bin/move-away-tmpbloat.sh
I used that to move some into /var/local/tmp.
Is there a need to keep these old netdata tmp files, or should they just be removed? In my script I select ones that are more than 30 days old. That leaves /tmp at 59% filled (770M/1.3G) currently.
~cel(Charles)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://sudoroom.org/pipermail/sudo-sys/attachments/20201028/448be7b4/attachment.sig>
More information about the sudo-sys
mailing list