The MySQL Graph Collection - Version 2.0!
Moderators: Developers, Moderators
I corrected on my config the empty problem of graph by change the lib/poller.php line 215
preg_match("/^([a-zA-Z0-9_\.-]+):([0-9Ee-\+\.]+)$/", $values[$i], $matches) by
preg_match("/^([a-zA-Z0-9_\.-]+):([0-9-Ee\+\.]+)$/", $values[$i], $matches)
and I also filled the rrd_name in the table poller_item by using the
rrd_path
Sorry for my english i m french.
preg_match("/^([a-zA-Z0-9_\.-]+):([0-9Ee-\+\.]+)$/", $values[$i], $matches) by
preg_match("/^([a-zA-Z0-9_\.-]+):([0-9-Ee\+\.]+)$/", $values[$i], $matches)
and I also filled the rrd_name in the table poller_item by using the
rrd_path
Sorry for my english i m french.
Unable to graph a foreign host
Hello everybody ,
first of all , thank you very much for these scripts . they are impressive.
my problem is that i am unable to graph a foreign host, actually localhost is working great.
but when i try to graph another hosts it said :
->ERROR: Not enough arguments
i didn't forgot to set privilege for the cactiuser
->GRANT PROCESS ON * TO cacti@'192.168.0.52' IDENTIFIED by 'cacti';
if anyone can help me
thanks everybody in advance
first of all , thank you very much for these scripts . they are impressive.
my problem is that i am unable to graph a foreign host, actually localhost is working great.
but when i try to graph another hosts it said :
->ERROR: Not enough arguments
i didn't forgot to set privilege for the cactiuser
->GRANT PROCESS ON * TO cacti@'192.168.0.52' IDENTIFIED by 'cacti';
if anyone can help me
thanks everybody in advance
First! Thank otto for giving us such a wonderful tool!!
Cacti log tell me "WARNING: Result from CMD not valid. Partial Result: Error: MySQL connect "
After watching SCaRaBaeuS's article above , I realize that I have changed my default hostname in DEVICE. Finally I change it back to localhost and it works... Ya!! Maybe this is helpful to those people who have met the same problem like mine!!
My BOX
Pentium 4-1.6G
Ram 1G
OS: Freebsd 5.4
Apache/2.0.54
PHP 4.3.11 (cli)
mysql Distrib 4.1.12
CACTI 0.8.6f
When I try the addon , I meet the same problem that without any graph but the command line php-q <cacti_path> ... <username> <password> work!!SCaRaBaeuS wrote:okay i found the problem.
normally a mysql connection has a priveliges system for localhost i just set that (so nobody from the outside can connect)
But my cacti has a hostname www.only4clans.com so it connects to that, but that doens't work..
so you should change your stuff to localhost instead to |hostname|
(also alot of the time php -q doesnt work)
example i have to use /usr/local/bin/php instead of only php
Cacti log tell me "WARNING: Result from CMD not valid. Partial Result: Error: MySQL connect "
After watching SCaRaBaeuS's article above , I realize that I have changed my default hostname in DEVICE. Finally I change it back to localhost and it works... Ya!! Maybe this is helpful to those people who have met the same problem like mine!!
My BOX
Pentium 4-1.6G
Ram 1G
OS: Freebsd 5.4
Apache/2.0.54
PHP 4.3.11 (cli)
mysql Distrib 4.1.12
CACTI 0.8.6f
-
- Posts: 2
- Joined: Wed Apr 27, 2005 11:18 am
-
- Cacti User
- Posts: 150
- Joined: Sat Jul 30, 2005 2:15 pm
mysql_stats and 0.8.6f?
Is this a problem with the templates and the current version?
Actually, scratch that: I am using these scripts with 0.8.6f on my home network. works fine. It seems some people are using 0.8.6f without any issues?
Code: Select all
cactiuser@scout1:~/cacti> php -q poller.php
public: Unknown Object Identifier (Sub-id not found: mib-2 -> public)
Added support for MySQLi
At first thanks for this cool script. But I'm using MySQL database version 4.1 and PHP uses new functions for MySQL 4.1x and later. So I have updated your script and templates. They are called MySQLi and can coexist with mysql_stats. I have tested it on 0.8.6f and it works well.
Write if something won't work.
Write if something won't work.
- Attachments
-
- mysqli_stats.zip
- Updated package of mysql_stats - all contents included . Now supporting MySQL 4.1.
- (24.69 KiB) Downloaded 1536 times
Who is online
Users browsing this forum: No registered users and 5 guests