Nectar Plugin
Moderators: Developers, Moderators
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
I'm fine with this. Please provide changes as tar.gz diff files and I will try to integrate them without much delay. You may post via EMail if you want; please don't use PMmcutting wrote:Gandalf - no issues.
In actual fact, as I need this probably more than you do, I'm happy to pick up the development and testing if this works for you ?
R
Pb Attachment
The problem seems to be that the image is not an attachment to the mail but an attachment to the HTML attachment.
The message headers look like this:
X-Mailer: Cacti-Mailer-Class
User-Agent: Cacti-Mailer-Class
Subject: report A
Content-Type: multipart/alternative; type="text/html";
boundary="--_MAILER_25945_1262783994_4413270"
The first attachment is Content-Type: text/plain
It contains only the name of the report.
The second attachment is Content-Type: multipart/related;
boundary="--_MAILER_25945_1262783994_4413270_HTML"
(note the _HTML).
This second attachment contains two attachments delimited by the _HTML tag. The first is a HTML text for the name of the report, and the second is the requested PNG file.
The MUA Zimbra chooses to show only the HTML text, "forgetting" there is a PNG. It is possible to obtain the PNG by asking Zimbra to reply to or to forward the mail with all the attachments; the PNG is then accessible while composing the new mail.
The text-mode MUA Mutt shows only the text, with no attachments (which is justified since the HTML part is "alternative". As with Zimbra, it is possible to obtain the image if you know it is there, by using Mutt's detailed view of the message construction:
The PNG should be attached directly to the mail, and not at a level once removed.
The message headers look like this:
X-Mailer: Cacti-Mailer-Class
User-Agent: Cacti-Mailer-Class
Subject: report A
Content-Type: multipart/alternative; type="text/html";
boundary="--_MAILER_25945_1262783994_4413270"
The first attachment is Content-Type: text/plain
It contains only the name of the report.
The second attachment is Content-Type: multipart/related;
boundary="--_MAILER_25945_1262783994_4413270_HTML"
(note the _HTML).
This second attachment contains two attachments delimited by the _HTML tag. The first is a HTML text for the name of the report, and the second is the requested PNG file.
The MUA Zimbra chooses to show only the HTML text, "forgetting" there is a PNG. It is possible to obtain the PNG by asking Zimbra to reply to or to forward the mail with all the attachments; the PNG is then accessible while composing the new mail.
The text-mode MUA Mutt shows only the text, with no attachments (which is justified since the HTML part is "alternative". As with Zimbra, it is possible to obtain the image if you know it is there, by using Mutt's detailed view of the message construction:
Code: Select all
I 1 <no description> [multipa/alternativ, 7bit, 59K]
I 2 ├─><no description> [text/plain, x-unkn, utf-8, 0.1K]
I 3 └─><no description> [multipa/related, 7bit, 59K]
I 4 ├─><no description> [text/html, x-unkn, utf-8, 0.1K]
I 5 └─>32.png [image/png, base64, 59K]
Nectar don't send mail
I have configured the Nectar plugin, but when try to send an e-mail, I get the folling errormessage in the Cacti Logfile.
NECTAR: Poller[0] Sending EMail was suppressed due to not running on the active CACTI system.
Questions about the the error message:
- Sending mail of the Threshold plugin works ok.
The configuration of E-mail settings works ok with PHP Mail Function of SMTP with other notifications.
Can someone give me more information about the message.
NECTAR: Poller[0] Sending EMail was suppressed due to not running on the active CACTI system.
Questions about the the error message:
- Sending mail of the Threshold plugin works ok.
The configuration of E-mail settings works ok with PHP Mail Function of SMTP with other notifications.
Can someone give me more information about the message.
Probleme Sending Email
Modify the file "nectar_functions.php" with your IP.
Code: Select all
function mg_send_mail($to, $from, $subject, $message, $data_array = '', $headers = '') {
global $config;
include_once($config["base_path"] . "/plugins/settings/include/mailer.php");
/* avoid sending mails from hot standby system */
$result = array();
$cactiip = "xx.xx.xx.xx";
$cmd = "/sbin/ifconfig |grep 'xx.xx.xx.xx'";
$res = exec($cmd, $result);
if (!$res) {
cacti_log("Sending EMail was suppressed due to not running on the active CACTI system", true, "NECTAR");
return;
}
......
.....
Last edited by blmcmb on Thu Jan 07, 2010 7:15 am, edited 1 time in total.
Hi all
I have installed this plugin to enable us to send usage reports to customers and have noticed that the Report Interval always seems to send graphs for 1 day only.
I have tried setting it to 5 days, 1 week, 1 month Base:Day, 1 month Base:Weekday and 1 year.
Is anyone else seeing this behaviour?
Regards
I have installed this plugin to enable us to send usage reports to customers and have noticed that the Report Interval always seems to send graphs for 1 day only.
I have tried setting it to 5 days, 1 week, 1 month Base:Day, 1 month Base:Weekday and 1 year.
Is anyone else seeing this behaviour?
Regards
Hi gandalf, thanks for your response.
Please find attached the requested screenshot and also a shot of one of the graphs received by email.
I realize that the 1st scheduled date is in the future but I have the same problem using the Send Now option and when I receive a scheduled report.
These graphs have been in place for a few months now so there is more than enough data for the required time period.
Thanks and regards
Please find attached the requested screenshot and also a shot of one of the graphs received by email.
I realize that the 1st scheduled date is in the future but I have the same problem using the Send Now option and when I receive a scheduled report.
These graphs have been in place for a few months now so there is more than enough data for the required time period.
Thanks and regards
- Attachments
-
- nectar1.jpg (302.2 KiB) Viewed 3735 times
-
- nectar2.jpg (60.29 KiB) Viewed 3735 times
gandalf
I just realised my silly mistake with missing the timespan option, it seems to be working perfectly.
Applogies for wasting your time and thanks again for taking the time to reply.
Thanks for the great plugin.
Perhaps it would be appropriate to remove my posts to respect other peoples time and resources.
Best regards
I just realised my silly mistake with missing the timespan option, it seems to be working perfectly.
Applogies for wasting your time and thanks again for taking the time to reply.
Thanks for the great plugin.
Perhaps it would be appropriate to remove my posts to respect other peoples time and resources.
Best regards
Pb Attachement
Hi gandalf
How can I correct the problem of the attachement (not working with zimbra)?. cf my message of January 6.
Thanks
How can I correct the problem of the attachement (not working with zimbra)?. cf my message of January 6.
Thanks
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Pb Attachement
I don't have a solution, yet. I'll have to dig deeper into our won PHP Mail class to fix that problem. But I'm working on new 088 features ATM. Contributions are welcomeblmcmb wrote:Hi gandalf
How can I correct the problem of the attachement (not working with zimbra)?. cf my message of January 6.
Thanks
R
Who is online
Users browsing this forum: No registered users and 3 guests