Great project ! I'm using it from few years ago ... on all my servers.
There is a minor bug in /usr/bin/monitorix - if you take mysql statistics and connecting via socket, it returns:
DBI connect('mysql_socket=/var/run/mysqld/mysqld.sock','HASH(0x2b5d0d8)',...) failed: Access denied for user 'HASH(0x2b5d0d8)'@'localhost' (using password: NO) at /usr/bin/monitorix line 4475
That line it's:
$dbh = DBI->connect( "DBI:mysql:mysql_socket=$sock", { PrintError => $print_error, } ) or logger("$myself: Cannot connect to MySQL '$sock'.") and next;
it should be:
$dbh = DBI->connect( "DBI:mysql:mysql_socket=$sock", $user, $pass, { PrintError => $print_error, } ) or logger("$myself: Cannot connect to MySQL '$sock'.") and next;
Modified in my script and works flawlessly.
Have a good day !
Hello,
Great project ! I'm using it from few years ago ... on all my servers.
There is a minor bug in /usr/bin/monitorix - if you take mysql statistics and connecting via socket, it returns:
DBI connect('mysql_socket=/var/run/mysqld/mysqld.sock','HASH(0x2b5d0d8)',...) failed: Access denied for user 'HASH(0x2b5d0d8)'@'localhost' (using password: NO) at /usr/bin/monitorix line 4475
That line it's:
$dbh = DBI->connect( "DBI:mysql:mysql_socket=$sock", { PrintError => $print_error, } ) or logger("$myself: Cannot connect to MySQL '$sock'.") and next;
it should be:
$dbh = DBI->connect( "DBI:mysql:mysql_socket=$sock", $user, $pass, { PrintError => $print_error, } ) or logger("$myself: Cannot connect to MySQL '$sock'.") and next;
Modified in my script and works flawlessly. Have a good day !