Cactiusers.org


It is currently Mon May 21, 2012 5:11 pm




Post new topic Reply to topic  [ 14 posts ] 
 Reports - v0.1b&cacti db tables? 
Author Message
New User

Joined: Mon Aug 29, 2005 12:27 pm
Posts: 16
Post Reports - v0.1b&cacti db tables?
Hi,

Reports plugin installation not creating cacti db tables?

xphu


Wed Sep 07, 2005 7:17 am
Site Admin

Joined: Thu Nov 11, 2004 11:12 am
Posts: 2007
Post Re: Reports - v0.1b&cacti db tables?
xphu wrote:
Hi,

Reports plugin installation not creating cacti db tables?

xphu


It does not auto-create the tables yet, you will have to import the reports.sql file that is in the plugin's directory.


Wed Sep 07, 2005 8:09 am
New User

Joined: Mon Aug 29, 2005 12:27 pm
Posts: 16
Post Reports - v0.1b&cacti db tables?
Hi,

OK.

By the way I personally found yours plugins (as well as cacti) very usefull to implement and run Server Hosting Services.

Thanks a lot,
xphu


Wed Sep 07, 2005 11:24 am
New User

Joined: Mon Aug 29, 2005 12:27 pm
Posts: 16
Post 
Ok,

I got reports installed and working. It sends smtp mails with reports with a given time (once a day). Had to rename one domain name inside the php code with FQDN. That I was figuring out with Ethereal.

But with Thold I am experiencing the problem with e-mail. So far I am not able to find why thodl is not sending smtp messages when it should?

Any hints?

My environment is Windows 2003 server.

\xphu


Sat Sep 10, 2005 9:54 am
Site Admin

Joined: Thu Nov 11, 2004 11:12 am
Posts: 2007
Post 
xphu wrote:
Ok,

I got reports installed and working. It sends smtp mails with reports with a given time (once a day). Had to rename one domain name inside the php code with FQDN. That I was figuring out with Ethereal.


What do you mean by this? Can you show me the code you had to modify?

xphu wrote:
But with Thold I am experiencing the problem with e-mail. So far I am not able to find why thold is not sending smtp messages when it should?

Any hints?

My environment is Windows 2003 server.

\xphu


This is strange since the reports plugin checks for the thold plugin and uses it PHP/Sendmail/SMTP settings if they exist, otherwise it just sends using PHP's Mail function. Which send option are you using for Thold?


Mon Sep 12, 2005 9:56 pm
New User

Joined: Mon Aug 29, 2005 12:27 pm
Posts: 16
Post 
I replaced the code in functions.php as follows:
<?php
function generate_report($report) {
global $config;
print "Generating Report!\n";
$from = "CactiReports@gmail.com";
------
because smtp server (ISP) was rejecting the message saying that mail
$from = "CactiReports@universalcomputersys.com";
is not from a valid domain? (monitored by Ethereal).

Before reports plugin installation I was checking all three for Thold e-mail.

Now the setting is PHP Mail() Function?

\Xphu


Tue Sep 13, 2005 5:02 am
Site Admin

Joined: Thu Nov 11, 2004 11:12 am
Posts: 2007
Post 
xphu wrote:
I replaced the code in functions.php as follows:
<?php
function generate_report($report) {
global $config;
print "Generating Report!\n";
$from = "CactiReports@gmail.com";
------
because smtp server (ISP) was rejecting the message saying that mail
$from = "CactiReports@universalcomputersys.com";
is not from a valid domain? (monitored by Ethereal).

Before reports plugin installation I was checking all three for Thold e-mail.

Now the setting is PHP Mail() Function?

\Xphu


Sorry about that, I didn't realise I has hard coded the email address in there, it should now be fixed.


Thu Sep 15, 2005 10:08 pm
New User

Joined: Mon Aug 29, 2005 12:27 pm
Posts: 16
Post 
jimmy,

Thank you.

I saw your comment obout smtp test button. That could help us a lot doing tests.

\xphu


Fri Sep 16, 2005 12:02 am
Post 
Notice: Only variable references should be returned by reference in /usr/share/adodb/adodb.inc.php on line 854

??


Mon Nov 21, 2005 3:35 am
Post 
Sorry, missing Infos:

If I click at "console" on "reports" I get this message over the word "Graph":

Notice: Only variable references should be returned by reference in /usr/share/adodb/adodb.inc.php on line 854


If I continue pressing "Add" and filled out the Report Wizard I get this message after clicking on "go":

Notice: Only variable references should be returned by reference in /usr/share/adodb/adodb.inc.php on line 854

Warning: Cannot modify header information - headers already sent by (output started at /usr/share/adodb/adodb.inc.php:854) in /usr/share/cacti/site/plugins/reports/reports.php on line 114


Any ideas?


Mon Nov 21, 2005 3:38 am
Post 
Fiexed ist with:

http://http.us.debian.org unstable/main libphp-adodb 4.64-4


Mon Nov 21, 2005 7:24 am
Post 
New Problem after clicking on "go":

Notice: Undefined index: report_create in /usr/share/cacti/site/lib/functions.php on line 196

Notice: Undefined index: report_create in /usr/share/cacti/site/lib/functions.php on line 220

Notice: Undefined index: report_create in /usr/share/cacti/site/lib/functions.php on line 222


Mon Nov 21, 2005 7:34 am
Site Admin

Joined: Thu Nov 11, 2004 11:12 am
Posts: 2007
Post 
Anonymous wrote:
New Problem after clicking on "go":

Notice: Undefined index: report_create in /usr/share/cacti/site/lib/functions.php on line 196

Notice: Undefined index: report_create in /usr/share/cacti/site/lib/functions.php on line 220

Notice: Undefined index: report_create in /usr/share/cacti/site/lib/functions.php on line 222


Have you imported the database for the reports plugin?


Mon Nov 21, 2005 9:25 am
Post 
OK, this was my fault ;)

I thought, it was importet automatically like with the Nagios-Addon ;)


Mon Nov 21, 2005 10:50 am
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: