Problem with check_mysql_health

(Monitor Junkie) #1

hello,

for monitoring MySQL db I successfully use check_mysql_health (version 3.0.0.5).
But with new DB I get message

check_mysql_health’ ‘–hostname’ ‘xx.xx.xx.xx’ ‘–username’ ‘user007’ ‘–password’ ‘geheim’ ‘–mode’ ‘connection-time’

Use of uninitialized value $version in pattern match (m//) at /usr/lib64/nagios/plugins/check_mysql_health line 4542.
Use of uninitialized value $version in substitution (s///) at /usr/lib64/nagios/plugins/check_mysql_health line 4543.
Use of uninitialized value $uptime in division (/) at /usr/lib64/nagios/plugins/check_mysql_health line 4547.
CRITICAL - DBD::mysql::st execute failed: MySQL server has gone away at /usr/lib64/nagios/plugins/check_mysql_health line 4331.
, DBD::mysql::st execute failed: MySQL server has gone away at /usr/lib64/nagios/plugins/check_mysql_health line 4331.
, DBD::mysql::st execute failed: MySQL server has gone away at /usr/lib64/nagios/plugins/check_mysql_health line 4331.

With other plugin check_mysql (v2.2.1) have completely different errors.

check_mysql’ ‘–hostname’ ‘xx.xx.xx.xx’ ‘–username’ ‘user007’ ‘–password’ ‘geheim’ ‘–warning’ ‘3’ ‘–critical’ ‘10’

Aborted connection 265 to db: ‘unconnected’ user: ‘user007’ host: ‘sehr.wichtig.ads’ (init_connect command failed)

Does anyone know ahead of it?