Report "Error: Save Failed"

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
asantos02
Posts: 26
Joined: Wed May 02, 2007 6:56 pm

Report "Error: Save Failed"

Post by asantos02 »

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.
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

As the error says:

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;" 
You need to modify the above to match the settings in include/config.php
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
asantos02
Posts: 26
Joined: Wed May 02, 2007 6:56 pm

Post by asantos02 »

Hi Egarnel,

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;
The line for the RRDtools is correct? because i'm working in windows and not in Nix's, or should i put "c:/...."

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 );
I think that nothing is missing, or I'm wrong?
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

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?
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
asantos02
Posts: 26
Joined: Wed May 02, 2007 6:56 pm

Post by asantos02 »

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
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

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 ?
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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest