Hi All,
Was hoping that someone might be able to help us please ?
We have recently moved our DB from the same server that Zabbix was running on to a seperate server specifically for the DB.
Prior to moving the DB we were able to use the following user parameters to query DB statistics:
UserParameter=DBSize,mysqlshow -uOmitted-pOmitted --status zabbix | cut -d\| -f 8,10 -s --output-delimiter="|" | awk -F"|" '{ total = total+$1+$2 } END {print total}'
UserParameter=DBUptime,mysqladmin -uOmitted -pOmitted status|cut -f2 -d":"|cut -f2 -d" "
UserParameter=DBThreads,mysqladmin -uOmitted -pOmitted status|cut -f3 -d":"|cut -f2 -d" "
UserParameter=DBQuestions,mysqladmin -uOmitted -pOmitted status|cut -f4 -d":"|cut -f2 -d" "
UserParameter=DBSlowQueries,mysqladmin -uOmitted -pOmitted status|cut -f5 -d":"|cut -f2 -d" "
UserParameter=DBQPS,mysqladmin -uOmitted -pOmitted status|cut -f9 -d":"|cut -f2 -d"
All of these parameters worked without fault, and were returning values as expected.
When we built the DB server, we installed the agent (version 2.2) and added the same checks to the Agent Config file, however Zabbix now errors with the below:
Received value [] is not suitable for value type [Numeric (unsigned)] and data type [Decimal
We have investigated the agent logs and are receiving the following error, in the active checks section:
mysqlshow: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)
We are not sure if this error is related to why we are not receiving any data in Zabbix, but thought it best to include as much information here as possible.
If anyone has any advice or help on why this might be happening, it would be greatly received.
Thanks
Tim
Was hoping that someone might be able to help us please ?
We have recently moved our DB from the same server that Zabbix was running on to a seperate server specifically for the DB.
Prior to moving the DB we were able to use the following user parameters to query DB statistics:
UserParameter=DBSize,mysqlshow -uOmitted-pOmitted --status zabbix | cut -d\| -f 8,10 -s --output-delimiter="|" | awk -F"|" '{ total = total+$1+$2 } END {print total}'
UserParameter=DBUptime,mysqladmin -uOmitted -pOmitted status|cut -f2 -d":"|cut -f2 -d" "
UserParameter=DBThreads,mysqladmin -uOmitted -pOmitted status|cut -f3 -d":"|cut -f2 -d" "
UserParameter=DBQuestions,mysqladmin -uOmitted -pOmitted status|cut -f4 -d":"|cut -f2 -d" "
UserParameter=DBSlowQueries,mysqladmin -uOmitted -pOmitted status|cut -f5 -d":"|cut -f2 -d" "
UserParameter=DBQPS,mysqladmin -uOmitted -pOmitted status|cut -f9 -d":"|cut -f2 -d"
All of these parameters worked without fault, and were returning values as expected.
When we built the DB server, we installed the agent (version 2.2) and added the same checks to the Agent Config file, however Zabbix now errors with the below:
Received value [] is not suitable for value type [Numeric (unsigned)] and data type [Decimal
We have investigated the agent logs and are receiving the following error, in the active checks section:
mysqlshow: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)
We are not sure if this error is related to why we are not receiving any data in Zabbix, but thought it best to include as much information here as possible.
If anyone has any advice or help on why this might be happening, it would be greatly received.
Thanks
Tim
Comment