Report Query
Moderators: Developers, Moderators
- AndyStewart
- Cacti User
- Posts: 102
- Joined: Thu Sep 29, 2005 5:21 am
- Location: Edinburgh, Scotland
Report Query
I've looked at ReportIt (great plugin) and also an older report plugin that has since disappeared from cactiusers.org (reports)
I'm looking for a plugin that will allow me to e-mail certain graph items to a e-mail address, either daily or weekly.
Preferably it would just be a ticklist of available graphs, and select which ones i want to show on a report.
Does such a plugin exist? The old "reports" plugin allowed this sort of thing to be set up, but a scheduler for sending the e-mails was never implemented?
I'm looking for a plugin that will allow me to e-mail certain graph items to a e-mail address, either daily or weekly.
Preferably it would just be a ticklist of available graphs, and select which ones i want to show on a report.
Does such a plugin exist? The old "reports" plugin allowed this sort of thing to be set up, but a scheduler for sending the e-mails was never implemented?
I don't care if the glass is half full or half empty, i want to know, who's been drinking my pint!!!
[size=75][Windows 2003 & IIS6] [Cacti 0.8.7b] [ActivePerl 5.8.8.817] [MySql 5.0.19] [NetSNMP 5.2.1.2-1] [PHP 5.1.2] [RRDTool 1.2.11]
[Plugins: PluginArchitecture, Monitor, Discovery, Threshold, Update, Reports, Manage, RealTime][/size]
[size=75][Windows 2003 & IIS6] [Cacti 0.8.7b] [ActivePerl 5.8.8.817] [MySql 5.0.19] [NetSNMP 5.2.1.2-1] [PHP 5.1.2] [RRDTool 1.2.11]
[Plugins: PluginArchitecture, Monitor, Discovery, Threshold, Update, Reports, Manage, RealTime][/size]
-
- Cacti Guru User
- Posts: 1884
- Joined: Mon Oct 16, 2006 5:57 am
- Location: United Kingdom
- Contact:
You can find an updated version of this plugin here http://cactiusers.org/forums/viewtopic. ... ht=reports
Let me know if you get problems downloading it.
Let me know if you get problems downloading it.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
- AndyStewart
- Cacti User
- Posts: 102
- Joined: Thu Sep 29, 2005 5:21 am
- Location: Edinburgh, Scotland
yeh thats the one i've got, but the automated e-mail bit never worked.
dloading now to see if new version is better
dloading now to see if new version is better
I don't care if the glass is half full or half empty, i want to know, who's been drinking my pint!!!
[size=75][Windows 2003 & IIS6] [Cacti 0.8.7b] [ActivePerl 5.8.8.817] [MySql 5.0.19] [NetSNMP 5.2.1.2-1] [PHP 5.1.2] [RRDTool 1.2.11]
[Plugins: PluginArchitecture, Monitor, Discovery, Threshold, Update, Reports, Manage, RealTime][/size]
[size=75][Windows 2003 & IIS6] [Cacti 0.8.7b] [ActivePerl 5.8.8.817] [MySql 5.0.19] [NetSNMP 5.2.1.2-1] [PHP 5.1.2] [RRDTool 1.2.11]
[Plugins: PluginArchitecture, Monitor, Discovery, Threshold, Update, Reports, Manage, RealTime][/size]
- AndyStewart
- Cacti User
- Posts: 102
- Joined: Thu Sep 29, 2005 5:21 am
- Location: Edinburgh, Scotland
ok installed and looks good (previews anyway)
I've tried clicking "send now" and no e-mail appears, and nothing appears in the log file that i can see.
THOLD is installed and working correctly, and all e-mail alerts for this work fine, and i know the reports is meant to use the same alerting info as this.
I've also created a scheduled task on my cacti server that runs plugins/reports/check-reports.php but this doesn't generate any e-mails or errors in the log file either - any ideas?
I've tried clicking "send now" and no e-mail appears, and nothing appears in the log file that i can see.
THOLD is installed and working correctly, and all e-mail alerts for this work fine, and i know the reports is meant to use the same alerting info as this.
I've also created a scheduled task on my cacti server that runs plugins/reports/check-reports.php but this doesn't generate any e-mails or errors in the log file either - any ideas?
I don't care if the glass is half full or half empty, i want to know, who's been drinking my pint!!!
[size=75][Windows 2003 & IIS6] [Cacti 0.8.7b] [ActivePerl 5.8.8.817] [MySql 5.0.19] [NetSNMP 5.2.1.2-1] [PHP 5.1.2] [RRDTool 1.2.11]
[Plugins: PluginArchitecture, Monitor, Discovery, Threshold, Update, Reports, Manage, RealTime][/size]
[size=75][Windows 2003 & IIS6] [Cacti 0.8.7b] [ActivePerl 5.8.8.817] [MySql 5.0.19] [NetSNMP 5.2.1.2-1] [PHP 5.1.2] [RRDTool 1.2.11]
[Plugins: PluginArchitecture, Monitor, Discovery, Threshold, Update, Reports, Manage, RealTime][/size]
-
- Cacti Guru User
- Posts: 1884
- Joined: Mon Oct 16, 2006 5:57 am
- Location: United Kingdom
- Contact:
Are you using SMTP for email ? I know the reports plugin normally only works with PHPMail that I know of. You shouldn't need the scheduled task - the poller takes care of the report sending when it is due.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
- AndyStewart
- Cacti User
- Posts: 102
- Joined: Thu Sep 29, 2005 5:21 am
- Location: Edinburgh, Scotland
ah ok, i'll hack the code to get the SMTP working then
Cheers for your help
Cheers for your help
I don't care if the glass is half full or half empty, i want to know, who's been drinking my pint!!!
[size=75][Windows 2003 & IIS6] [Cacti 0.8.7b] [ActivePerl 5.8.8.817] [MySql 5.0.19] [NetSNMP 5.2.1.2-1] [PHP 5.1.2] [RRDTool 1.2.11]
[Plugins: PluginArchitecture, Monitor, Discovery, Threshold, Update, Reports, Manage, RealTime][/size]
[size=75][Windows 2003 & IIS6] [Cacti 0.8.7b] [ActivePerl 5.8.8.817] [MySql 5.0.19] [NetSNMP 5.2.1.2-1] [PHP 5.1.2] [RRDTool 1.2.11]
[Plugins: PluginArchitecture, Monitor, Discovery, Threshold, Update, Reports, Manage, RealTime][/size]
- AndyStewart
- Cacti User
- Posts: 102
- Joined: Thu Sep 29, 2005 5:21 am
- Location: Edinburgh, Scotland
yeh but for some reason for me, SMTP works well, phpMail don't work at all
I don't care if the glass is half full or half empty, i want to know, who's been drinking my pint!!!
[size=75][Windows 2003 & IIS6] [Cacti 0.8.7b] [ActivePerl 5.8.8.817] [MySql 5.0.19] [NetSNMP 5.2.1.2-1] [PHP 5.1.2] [RRDTool 1.2.11]
[Plugins: PluginArchitecture, Monitor, Discovery, Threshold, Update, Reports, Manage, RealTime][/size]
[size=75][Windows 2003 & IIS6] [Cacti 0.8.7b] [ActivePerl 5.8.8.817] [MySql 5.0.19] [NetSNMP 5.2.1.2-1] [PHP 5.1.2] [RRDTool 1.2.11]
[Plugins: PluginArchitecture, Monitor, Discovery, Threshold, Update, Reports, Manage, RealTime][/size]
- AndyStewart
- Cacti User
- Posts: 102
- Joined: Thu Sep 29, 2005 5:21 am
- Location: Edinburgh, Scotland
Checking Configuration...
Creating Message Text...
This is a test message generated from Cacti. This message was sent to test the configuration of your Mail Settings.
Your email settings are currently set as follows
Method: PHP's Mailer Class
Sending Message...
Could not instantiate mail function.
Creating Message Text...
This is a test message generated from Cacti. This message was sent to test the configuration of your Mail Settings.
Your email settings are currently set as follows
Method: PHP's Mailer Class
Sending Message...
Could not instantiate mail function.
I don't care if the glass is half full or half empty, i want to know, who's been drinking my pint!!!
[size=75][Windows 2003 & IIS6] [Cacti 0.8.7b] [ActivePerl 5.8.8.817] [MySql 5.0.19] [NetSNMP 5.2.1.2-1] [PHP 5.1.2] [RRDTool 1.2.11]
[Plugins: PluginArchitecture, Monitor, Discovery, Threshold, Update, Reports, Manage, RealTime][/size]
[size=75][Windows 2003 & IIS6] [Cacti 0.8.7b] [ActivePerl 5.8.8.817] [MySql 5.0.19] [NetSNMP 5.2.1.2-1] [PHP 5.1.2] [RRDTool 1.2.11]
[Plugins: PluginArchitecture, Monitor, Discovery, Threshold, Update, Reports, Manage, RealTime][/size]
-
- Cacti Guru User
- Posts: 1884
- Joined: Mon Oct 16, 2006 5:57 am
- Location: United Kingdom
- Contact:
Check your php.ini file, and ensure that the following settings are filled in:Could not instantiate mail function.
[mail function]
; For Win32 only.
SMTP = your.ip.address.here
; For Win32 only.
sendmail_from = you@yourdomain
Save php.ini, restart IIS / Apache, and then try again...
Last edited by mcutting on Wed Jun 27, 2007 10:56 am, edited 1 time in total.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
- AndyStewart
- Cacti User
- Posts: 102
- Joined: Thu Sep 29, 2005 5:21 am
- Location: Edinburgh, Scotland
ok PHPEmail now works (cheers for that), testmail works, threshold mails still work, but the reports one still sends nothing.
Tried PDF, Inline PNG and JPG - nothing appearing in cact.log either...
Tried PDF, Inline PNG and JPG - nothing appearing in cact.log either...
I don't care if the glass is half full or half empty, i want to know, who's been drinking my pint!!!
[size=75][Windows 2003 & IIS6] [Cacti 0.8.7b] [ActivePerl 5.8.8.817] [MySql 5.0.19] [NetSNMP 5.2.1.2-1] [PHP 5.1.2] [RRDTool 1.2.11]
[Plugins: PluginArchitecture, Monitor, Discovery, Threshold, Update, Reports, Manage, RealTime][/size]
[size=75][Windows 2003 & IIS6] [Cacti 0.8.7b] [ActivePerl 5.8.8.817] [MySql 5.0.19] [NetSNMP 5.2.1.2-1] [PHP 5.1.2] [RRDTool 1.2.11]
[Plugins: PluginArchitecture, Monitor, Discovery, Threshold, Update, Reports, Manage, RealTime][/size]
- AndyStewart
- Cacti User
- Posts: 102
- Joined: Thu Sep 29, 2005 5:21 am
- Location: Edinburgh, Scotland
ok, used SQLyog (MySQL UI) to drop the reports and reports_data table.
ran plugins/reports/setup.php to rebuild the tables.
Added a report back in with 2 graphs and 2 text entries - checked in SQLyog that the data was in the tables ok.
Preview works fine, but "send now" with PNG,JPG,PDF still does nothing at all - and still nothing at all appearing in log (i switched settings to DEBUG before clicking the send now to check)
I'll cross post this over to the thread above where the author posted the plugin to see if he can help as well...
Almost there the reports are what I/manager was looking for, so just need to resolve the auto-mail issue and he'll be happy.
ran plugins/reports/setup.php to rebuild the tables.
Added a report back in with 2 graphs and 2 text entries - checked in SQLyog that the data was in the tables ok.
Preview works fine, but "send now" with PNG,JPG,PDF still does nothing at all - and still nothing at all appearing in log (i switched settings to DEBUG before clicking the send now to check)
I'll cross post this over to the thread above where the author posted the plugin to see if he can help as well...
Almost there the reports are what I/manager was looking for, so just need to resolve the auto-mail issue and he'll be happy.
I don't care if the glass is half full or half empty, i want to know, who's been drinking my pint!!!
[size=75][Windows 2003 & IIS6] [Cacti 0.8.7b] [ActivePerl 5.8.8.817] [MySql 5.0.19] [NetSNMP 5.2.1.2-1] [PHP 5.1.2] [RRDTool 1.2.11]
[Plugins: PluginArchitecture, Monitor, Discovery, Threshold, Update, Reports, Manage, RealTime][/size]
[size=75][Windows 2003 & IIS6] [Cacti 0.8.7b] [ActivePerl 5.8.8.817] [MySql 5.0.19] [NetSNMP 5.2.1.2-1] [PHP 5.1.2] [RRDTool 1.2.11]
[Plugins: PluginArchitecture, Monitor, Discovery, Threshold, Update, Reports, Manage, RealTime][/size]
Who is online
Users browsing this forum: No registered users and 0 guests