Problems with dbcheck.pl

L.M.J linuxmasterjedi at free.fr
Wed Feb 17 12:44:09 CET 2010


Hello,

  I'm writing today for issues regarding the Hobbit extension "dbcheck.pl".
Since i've updated the script to 1.09, it has a strange behavior.
  First of all, my MySQL server is stopped around 23h30 for offline backup.
When Hobbit launch "dbcheck.pl fast" at this time, I can see in the logs : 
        "Tue Feb 16 23:35:35 2010:ERROR on mysql: Can't connect to MySQL
server on 'mysql.mydomain.tld.local' (111)" 
  That's quite normal. The strange behavior is the column "MySQLPerf"
"TblSpace" appears and become purple. Do you know why ? TblSpace is more
Oracle related informations, now MySQL.
  
  Secondly, I have a bunch of warning in the logs : 
        Undefined subroutine &Hobbit_fd_lib::get_numeric_value called at
/home/users/hobbit/application/server/ext/dbcheck.pl line 361.
        Undefined subroutine &Hobbit_fd_lib::get_numeric_value called at
/home/users/hobbit/application/server/ext/dbcheck.pl line 361.
        Tue Feb 16 23:35:35 2010:ERROR on mysql: Can't connect to MySQL
server on 'mysql.latecoere.gl.local' (111)
        Undefined subroutine &Hobbit_fd_lib::get_numeric_value called at
/home/users/hobbit/application/server/ext/dbcheck.pl line 361.
        Undefined subroutine &Hobbit_fd_lib::get_numeric_value called at
/home/users/hobbit/application/server/ext/dbcheck.pl line 361.
        Undefined subroutine &Hobbit_fd_lib::get_numeric_value called at
/home/users/hobbit/application/server/ext/dbcheck.pl line 361.
        Undefined subroutine &Hobbit_fd_lib::get_numeric_value called at
/home/users/hobbit/application/server/ext/dbcheck.pl line 361.
        Undefined subroutine &Hobbit_fd_lib::get_numeric_value called at
/home/users/hobbit/application/server/ext/dbcheck.pl line 361.

    Here is the part of the dbcheck.pl involve : 
        360   my $alertthreshold;
        361  
($warnthreshold,$alertthreshold)=Hobbit_fd_lib::get_numeric_value($hostname,"threadswarnalert",500,1000);
        362    if($thr>$alertthreshold) {
    
    Is there a way to fix this issue ?


  Thanks by advance,



More information about the Xymon mailing list