memhamwan / memhamwan.github.io

2 stars 0 forks source link

Clean up adsb.sco /var/log mount #75

Open turnrye opened 2 years ago

turnrye commented 2 years ago

Host adsb.sco is an adsb appliance running on a raspberry pi. Alerts have been firing for about a day now about a mount point running out of space.

See slack.

Here's a quick graph of the percent free:

0191C185-0153-4F8D-9EE5-E8F1823C5FA9

permalink to prometheus

turnrye commented 2 years ago

Appears to be ssh brute force attacks again. Cleared it out.

root@adsb:/home/turnrye# 
root@adsb:/home/turnrye# echo '' > /var/log/btmp
root@adsb:/home/turnrye# ls
root@adsb:/home/turnrye# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       117G  2.9G  115G   3% /
devtmpfs        1.9G     0  1.9G   0% /dev
tmpfs           1.9G     0  1.9G   0% /dev/shm
tmpfs           1.9G   52M  1.9G   3% /run
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup
tmpfs           100M   20M   81M  20% /var/lib/collectd/rrd
tmpfs            50M  3.3M   47M   7% /var/log
tmpfs           1.9G  4.0K  1.9G   1% /tmp
tmpfs           150M   27M  124M  18% /prometheus-tmpfs
/dev/mmcblk0p1  253M   48M  205M  19% /boot
tmpfs           383M     0  383M   0% /run/user/1001
turnrye commented 2 years ago

Alert resolved