Hello everyone.
Recently I'm having tremendous problems with zabbix - so far I've probably tried everything suggest and what I've found, but still, no result/improvements.
Basically the problem is the following:
And because of that, zabbix trigger my other events and sends unwanted/not needed SMS messages (since it execute my other scripts).
Question is why zabbix report database as being down if I connect to server few seconds later and:
1) first of all, mysql server is being UP and it's running already XX amount of days
2) I can connect with same zabbix credentials
3) socket and process is alive
4) there is no high load on the server, CPU/memory is fine
There is no recovery status, so I guess this is something hard-coded in zabbix. Zabbix reconnects after few seconds back to mysql and everything is fine.
I also tried this:
but it didn't help. This started to happen recently, for a year, it was fine. I've tried multiple things like restarting server, mysql server, repair/optimize on zabbix database, checking mysql for optimizations - it's not even that I have too many mysql connections and that new ones are somehow blocked/rejected, I'm only using around 23% of connections. Other parameters for innodb/reads/writes are also fine.
What could be the problem?
Recently I'm having tremendous problems with zabbix - so far I've probably tried everything suggest and what I've found, but still, no result/improvements.
Basically the problem is the following:
26859:20170405:070435.209 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (12)
26859:20170405:070435.209 watchdog: database is down
26859:20170405:070435.209 watchdog: database is down
Question is why zabbix report database as being down if I connect to server few seconds later and:
1) first of all, mysql server is being UP and it's running already XX amount of days
2) I can connect with same zabbix credentials
3) socket and process is alive
4) there is no high load on the server, CPU/memory is fine
There is no recovery status, so I guess this is something hard-coded in zabbix. Zabbix reconnects after few seconds back to mysql and everything is fine.
I also tried this:
but it didn't help. This started to happen recently, for a year, it was fine. I've tried multiple things like restarting server, mysql server, repair/optimize on zabbix database, checking mysql for optimizations - it's not even that I have too many mysql connections and that new ones are somehow blocked/rejected, I'm only using around 23% of connections. Other parameters for innodb/reads/writes are also fine.
What could be the problem?
Comment