Search found 7 matches
- Sun Feb 25, 2018 4:38 pm
- Forum: Help: Linux/Unix Specific
- Topic: Graphs not being generated, empty graphs, mysql errors, misc
- Replies: 1
- Views: 370
Graphs not being generated, empty graphs, mysql errors, misc
My cacti instance would not initially connect to mysql and after debugging to find that using php7.0 was the cause, setting apache2 to use php5.6, it was still generating empty graphs. I noticed the "- q" option and also that cacti was using /usr/bin/php in the following log output: 2018-0...
- Sun Feb 25, 2018 4:30 pm
- Forum: Help: Linux/Unix Specific
- Topic: FATAL: Cannot connect to MySQL server on 'localhost'
- Replies: 9
- Views: 2662
Re: FATAL: Cannot connect to MySQL server on 'localhost'
My cacti instance was generating empty graphs. I noticed the "- q" option and also that cacti was using /usr/bin/php in the following log output: 2018-02-24 12:25:00 - POLLER: Poller[Main Poller] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q "/var/www/html/cacti/...
- Tue Feb 13, 2018 10:23 am
- Forum: Help: Linux/Unix Specific
- Topic: FATAL: Cannot connect to MySQL server on 'localhost'
- Replies: 9
- Views: 2662
Re: FATAL: Cannot connect to MySQL server on 'localhost'
Having said that, doing:
and updating /etc/crontab with php5.6 seems to have solved this issue.
Code: Select all
php5.6 poller.php
- Tue Feb 13, 2018 10:17 am
- Forum: Help: Linux/Unix Specific
- Topic: FATAL: Cannot connect to MySQL server on 'localhost'
- Replies: 9
- Views: 2662
Re: FATAL: Cannot connect to MySQL server on 'localhost'
I installed from source, and got this: php poller.php PHP Fatal error: Uncaught Error: Undefined class constant 'MYSQL_ATTR_FOUND_ROWS' in /usr/share/cacti/site/lib/database.php:53 Stack trace: #0 /usr/share/cacti/site/include/global.php(215): db_connect_real('localhost', 'cacti', 'xxxxxxxx', 'cacti...
- Tue Feb 13, 2018 3:44 am
- Forum: Help: Linux/Unix Specific
- Topic: FATAL: Cannot connect to MySQL server on 'localhost'
- Replies: 9
- Views: 2662
Re: FATAL: Cannot connect to MySQL server on 'localhost'
Thank you, I had already done that, and, no errors.
- Fri Feb 09, 2018 6:27 am
- Forum: Help: Linux/Unix Specific
- Topic: FATAL: Cannot connect to MySQL server on 'localhost'
- Replies: 9
- Views: 2662
Re: FATAL: Cannot connect to MySQL server on 'localhost'
No php errors, or any errors in /var/log/cacti/cacti, poller-error or rrd.log. The rest of the site works as expected.
- Thu Feb 08, 2018 7:28 pm
- Forum: Help: Linux/Unix Specific
- Topic: FATAL: Cannot connect to MySQL server on 'localhost'
- Replies: 9
- Views: 2662
FATAL: Cannot connect to MySQL server on 'localhost'
ENV: Linux Mint, 18.2, php 5.6/7.0 mysql Ver 14.14 Distrib 5.7.21, for Linux (x86_64) using EditLine wrapper Greetings all. I have installed Cacti in the above environment but am unable to generate any graphs. After some debugging I find that poller.php is unable to populate the db, giving the error...