Anthony Stump
2015-05-11 02:11:19 UTC
I'm not sure if it's something I'm doing wrong or if there is a bug in
Monitorix, but I'm unable to get Monitorix to connect to MySQL.
Here are settings (and yes I included password, don't really care because
it's bound to localhost.)
# MYSQL graph
#
-----------------------------------------------------------------------------
<mysql>
conn_type = host
list = localhost
# list = /var/run/mysqld/mysqld.sock
<desc>
localhost = 3306, monitorix, m0n1t0r1x15
</desc>
rigid = 0, 2, 0, 0, 0, 0
limit = 100, 100, 100, 100, 100, 100
</mysql>
I tested the connection in MySQL - it's setup per instructions:
***@astump15:~$ mysql -u monitorix -pm0n1t0r1x15 -h localhost
Warning: Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2361
But I'm getting this in the monitorix log:
Sun May 10 21:09:00 2015 - mysql::mysql_update: Cannot connect to MySQL
'/var/run/mysqld/mysqld.sock'.
Sun May 10 21:09:00 2015 - ERROR: while updating
/var/lib/monitorix/mysql.rrd: /var/lib/monitorix/mysql.rrd: expected
timestamp not found in data source from N
Monitorix, but I'm unable to get Monitorix to connect to MySQL.
Here are settings (and yes I included password, don't really care because
it's bound to localhost.)
# MYSQL graph
#
-----------------------------------------------------------------------------
<mysql>
conn_type = host
list = localhost
# list = /var/run/mysqld/mysqld.sock
<desc>
localhost = 3306, monitorix, m0n1t0r1x15
</desc>
rigid = 0, 2, 0, 0, 0, 0
limit = 100, 100, 100, 100, 100, 100
</mysql>
I tested the connection in MySQL - it's setup per instructions:
***@astump15:~$ mysql -u monitorix -pm0n1t0r1x15 -h localhost
Warning: Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2361
But I'm getting this in the monitorix log:
Sun May 10 21:09:00 2015 - mysql::mysql_update: Cannot connect to MySQL
'/var/run/mysqld/mysqld.sock'.
Sun May 10 21:09:00 2015 - ERROR: while updating
/var/lib/monitorix/mysql.rrd: /var/lib/monitorix/mysql.rrd: expected
timestamp not found in data source from N
--
Thank you,
Anthony Stump
***@kc.rr.com
***@gmail.com
Thank you,
Anthony Stump
***@kc.rr.com
***@gmail.com