icinga2 – disk space is full – /var/lib/mysql/mysql-bin

Under /var/lib/mysql the mysql-bin.000025* files have eaten all of my disk space

icinga2-disk-space-full-mysql

Solution

The mysql-bin files are some kind of backup of database changes.

You can set that you will have those files for three days.

Then the logs don’t eat all of your disk space.

mysql -u root -p

PURGE BINARY LOGS TO 'mysql-bin.000020';

exit
Set this in /etc/mysql/my.cnf under the [mysqld] section:

expire_logs_days=3
systemctl restart mysqld

Now all of the older files disappear and you don’t have 100% disk space blocked.

No data points in grafana: I found out that my grafana had no data points
I wanted to disable a specific host (the services/checks). My raspberry pi is currently without
Icinga2 - failure at monitoring /dev/shm I wanted to monitor /dev/shm but icinga couldn't get the
root@monitoring:/etc/icinga2/zones.d/master/services# vim users.conf apply Service "users" { import "notification-enabled" import "generic-service" check_command = "users" command_endpoint
root@sensors:/etc/icinga2/features-enabled# nano api.conf accept_commands = true

Hinterlasse einen Kommentar

  Abonnieren  
Benachrichtige mich bei
Scroll to Top