MySQL&Fail2Ban warnings & munin mails in /var/mail - nicht in Postfach

MB.n

New Member
Hallo meine Lieben,

nachdem ich gestern eine große Aktion gestartet habe bei dem ich 6 Stunden im ganzen System Fehler behoben habe, hab ich dem System jetzt mal paar Stunden gegeben um mir auch die letzten Fehler mal auszuwerfen.

Habe dann jetzt gerade mal zusammen gesammelt.

Fail2Ban wirft mir dies aus - Der Fehler sagt mir halt, das der Log output entweder unvollständig oder nicht verfügbar ist - was könnten hierfür Fehlerquellen sein oder ist es ein unbedeutender Fehler?
Code:
Journal has been rotated since unit was started. Log output is incomplete or unavailable.


Dann hat mir MySQL ein paar Warnings ausgeworfen. Unten aufgeführt -> wie kommt es dazu, das er mir sagt er konnte dazu nicht auflösen? Ich wüsste nicht wieso er das tun sollte. Könnte es in Verbindung mit ISPConfig sein?
MySQL:
Code:
Oct 12 14:14:13 master mysqld[26117]: 161012 14:14:13 [Warning] IP address '104.223.133.44' could not be resolved: Name or service not known
Oct 12 15:57:36 master mysqld[26117]: 161012 15:57:36 [Warning] IP address '117.21.191.180' could not be resolved: Name or service not known
Oct 12 17:33:19 master mysqld[26117]: 161012 17:33:19 [Warning] IP address '123.249.0.134' could not be resolved: Temporary failure in name resolution
Oct 12 19:24:08 master mysqld[26117]: 161012 19:24:08 [Warning] Host name 'ns1.stocklifer.com' could not be resolved: Name or service not known
Oct 13 06:25:33 master mysqld[26117]: 161013  6:25:33 [Warning] IP address '104.223.133.46' could not be resolved: Name or service not known
Oct 13 12:11:27 master mysqld[26117]: 161013 12:11:27 [Warning] IP address '104.223.133.22' could not be resolved: Name or service not known

Und zu guter letzt hab ich gestern munin und monit eingerichtet. Ich bin auf viele Fehler bei der Konfiguration gestoßen bis ich entschieden habe Sie komplett selbst zu schreiben ^^ Jetzt frage ich mich nur warum er die Mails mir nicht ins Postfach wirft sondern unter /var/mail/root

Meine Konfig Datei hab ich hier mal für euch. IP Adressen sind durch XXX.XXX.XXX ersetzt und FQDNs durch hostname. TLDs durch .tld:
Code:
set daemon 300
    with start delay 240
set mailserver master.hostname.tld
set eventqueue
    basedir /var/lib/monit/events
    slots 100
set alert monit@hostname.tld
set httpd port 2812

#OVERLOAD CHECK
check system mail
    if loadavg (5min) > 2.0 then alert
    if memory usage > 85% then alert
    if cpu usage (user) > 60% then alert

#WEB MASTER
check process apache-server with pidfile /run/apache2/apache2.pid
    start program = "/etc/init.d/apache2 start" with timeout 40 seconds
    stop program  = "/etc/init.d/apache2 stop"
    if children > 255 for 5 cycles then alert
    if cpu usage > 95% for 3 cycles then alert
    if failed port 80 protocol http then restart

#MYSQL MASTER
check process mariadb-server with pidfile /run/mysqld/mysqld.pid
    start program = "/etc/init.d/mysql start" with timeout 40 seconds
    stop program  = "/etc/init.d/mysql stop"
    if children > 255 for 5 cycles then alert
    if cpu usage > 95% for 3 cycles then alert
    if failed port 3306 protocol mysql then restart

#FTP MASTER
check process pure-ftpd with pidfile /run/pure-ftpd.pid
    start program = "/etc/init.d/pure-ftpd-mysql start" with timeout 40 seconds
    stop program  = "/etc/init.d/pure-ftpd-mysql stop"
    if children > 255 for 5 cycles then alert
    if cpu usage > 95% for 3 cycles then alert
    if failed port 21 protocol ftp then restart

#MAIL LOGS MASTER
check file mail.log with path /var/log/mail.log
    if timestamp > 10 minutes then alert

#WEB SERVER CHECK
#check host web@slaveX with address slaveX.hostname.tld
#    if failed port 80 protocol http with timeout 30 seconds then alert

#MYSQL SERVER CHECK
#check host mysql@slaveX with address XXX.XXX.XXX
#    if failed port 3306 protocol mysql with timeout 30 seconds then alert


#FTP SERVER CHECK
#check host ftp@slaveX with address ftp.slaveX.hostname.tld
#    if failed port 80 protocol ftp with timeout 30 seconds then alert

#MAIL SERVER CHECK
#check host mail@slaveX with address smtp.slaveX.hostname.tld
#    if failed port 143 protocol IMAP with timeout 30 seconds then alert
#    if failed port 587 protocol SMTP with timeout 30 seconds then alert
#    if failed port 22 protocol ssh with timeout 20 seconds then alert

Steckt der Fehler vielleicht einfach in meiner Konfiguration? Habe nämlich viele verschiedene Tutorials genutzt ^^
 

Werbung

Top