Hi,
Cacti 0.8.6j
mysql 5.0.37
PHP 5.2.0
Windows 2k pro
IIS
I have a problem in creating report in cacti.
In "Report Settings" when i tryed to create the 1st report i get the error
"Error: Save Failed"
All the directories have the full permissions, and the configs are as follow:
"# NOTICE: SET THIS TO WHERE YOUR VERSION OF RRDTOOL IS INSTALLED TO
# use lib qw( /usr/local/rrdtool-1.2.11/lib/perl );
use lib qw( c:\rrdtool );
# NOTICE: YOU NEED TO CHANGE THIS LINE AND ADD YOUR MYSQL USERNAME/PASSWORD
my $dbh = DBI->connect("dbi:mysql:cactidb", 'cactiuser', 'xxxxxx') || die "Could not connect: " . $DBI::errstr;"
Can anyone help me ?
Thanks in advance
Alfredo Santos.
Report "Error: Save Failed"
Moderators: Developers, Moderators
As the error says:
You need to modify the above to match the settings in include/config.php
Code: Select all
# NOTICE: YOU NEED TO CHANGE THIS LINE AND ADD YOUR MYSQL USERNAME/PASSWORD
my $dbh = DBI->connect("dbi:mysql:cactidb", 'cactiuser', 'xxxxxx') || die "Could not connect: " . $DBI::errstr;"
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
Hi Egarnel,
I'v change this line, but the error stil aprrears.
The line for the RRDtools is correct? because i'm working in windows and not in Nix's, or should i put "c:/...."
I think that nothing is missing, or I'm wrong?
I'v change this line, but the error stil aprrears.
Code: Select all
include/config.php
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "xxxxx";
$database_port = "3306";
/plugins/reports/runReports.pl
my $dbh = DBI->connect("dbi:mysql:cacti", 'cactiuser', 'xxxxx') || die "Could not connect: " . $DBI::errstr;
Code: Select all
# NOTICE: SET THIS TO WHERE YOUR VERSION OF RRDTOOL IS INSTALLED TO
# use lib qw( /usr/local/rrdtool-1.2.11/lib/perl );
use lib qw( c:\rrdtool );
You have to change c:\rrdtool to whereever rrdtool is located
for example: c:/rrdtool/bin/rrdtool
the unix example actually points to where the rrd shared libraries are, not the binary itself. what does the readme for the plugin say?
for example: c:/rrdtool/bin/rrdtool
the unix example actually points to where the rrd shared libraries are, not the binary itself. what does the readme for the plugin say?
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
Hi Egarnel,
The line for rrdtool is correct, but in my instalation (Windows) in that directory i only have the *.exe files, because my instalation was deploy from an exe file "cacti-0.8.6j.1.5.exe", with all programs include.
Do the "reports" need the lib files of the rrdtool, in windows installation?
If not, i don't know what could be wrong.
In my cacti i have other plugins (monitor, weathermap and monitor) , and everything is working well. I have more than 120 devices with more than 200 graphics.
What other solutions, or checks do you recomend?
Thanks for help.
Alfredo Santos
The line for rrdtool is correct, but in my instalation (Windows) in that directory i only have the *.exe files, because my instalation was deploy from an exe file "cacti-0.8.6j.1.5.exe", with all programs include.
Do the "reports" need the lib files of the rrdtool, in windows installation?
If not, i don't know what could be wrong.
In my cacti i have other plugins (monitor, weathermap and monitor) , and everything is working well. I have more than 120 devices with more than 200 graphics.
What other solutions, or checks do you recomend?
Thanks for help.
Alfredo Santos
Not sure. I live in a Linux world.
Years ago, when I worked with windows, I cam up with a tutorial
http://www.garnel.com/mrtg/ntinstall.html
Do you have a directory called c:\perl-shared ?
Years ago, when I worked with windows, I cam up with a tutorial
http://www.garnel.com/mrtg/ntinstall.html
Do you have a directory called c:\perl-shared ?
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
Who is online
Users browsing this forum: No registered users and 4 guests