this check works on old one.
Code: Select all
ubuntu@monitoring:~$ /usr/lib/nagios/plugins/check_mysql_health --hostname xx.xx.xx.xx
Use of qw(...) as parentheses is deprecated at /usr/lib/nagios/plugins/check_mysql_he
Use of qw(...) as parentheses is deprecated at /usr/lib/nagios/plugins/check_mysql_he
Use of qw(...) as parentheses is deprecated at /usr/lib/nagios/plugins/check_mysql_he
OK - 3 running threads | threads_running=3;10;20Code: Select all
ubuntu@nagios-2015:~$ /usr/lib/nagios/plugins/check_mysql_health --hostname xx.xx.xx.xx --username nagios --password nagios --port 3306 -mode threads-connected
"my" variable $self masks earlier declaration in same scope at /usr/lib/nagios/plugins/check_mysql_health line 1273.
"my" variable $message masks earlier declaration in same scope at /usr/lib/nagios/plugins/check_mysql_health line 1274.
"my" variable $self masks earlier declaration in same scope at /usr/lib/nagios/plugins/check_mysql_health line 1279.
"my" variable $message masks earlier declaration in same scope at /usr/lib/nagios/plugins/check_mysql_health line 1280.
"my" variable $self masks earlier declaration in same scope at /usr/lib/nagios/plugins/check_mysql_health line 1285.
"my" variable $message masks earlier declaration in same scope at /usr/lib/nagios/plugins/check_mysql_health line 1286.
"my" variable $self masks earlier declaration in same scope at /usr/lib/nagios/plugins/check_mysql_health line 1291.
"my" variable $self masks earlier declaration in same scope at /usr/lib/nagios/plugins/check_mysql_health line 1297.
syntax error at /usr/lib/nagios/plugins/check_mysql_health line 1259, near "$llevel qw(CRITICAL WARNING UNKNOWN OK)"
Global symbol "$llevel" requires explicit package name at /usr/lib/nagios/plugins/check_mysql_health line 1260.
Global symbol "$self" requires explicit package name at /usr/lib/nagios/plugins/check_mysql_health line 1261.
Global symbol "$llevel" requires explicit package name at /usr/lib/nagios/plugins/check_mysql_health line 1261.
syntax error at /usr/lib/nagios/plugins/check_mysql_health line 1270, near "}"
syntax error at /usr/lib/nagios/plugins/check_mysql_health line 1276, near "}"
syntax error at /usr/lib/nagios/plugins/check_mysql_health line 1282, near "}"
syntax error at /usr/lib/nagios/plugins/check_mysql_health line 1288, near "}"
syntax error at /usr/lib/nagios/plugins/check_mysql_health line 1294, near "}"
syntax error at /usr/lib/nagios/plugins/check_mysql_health line 1307, near "}"
/usr/lib/nagios/plugins/check_mysql_health has too many errors.