I've been attempting to use the reportmail script to email out both Multi-Graph and Performance reports. When these arrive in Outlook however, they are lacking any kind of styling and the graphs do not appear at all. Here are the urls I am passing to reportmail and screenshots of what I'm seeing in Outlook:
I notice in the source of the emails, the urls in the reports seem to have had the host part stripped so that they all refer to /zport/dmd/Reports/<etc>. E.g:
var absoluteUrlPath = "/zport/dmd/Reports/Multi-Graph%20Reports/WAN/Japan/Osaka";
var reportId = "/zport/dmd/Reports/Multi-Graph Reports/WAN/Japan/Osaka";
<TD class='tablevalues' id='td_graph_0'>
I'm not sure if this is supposed to be referring to attachments which are not comming through for some reason?
Does anybody know why this might be happening?
I'm having different problems with reportmail, but according to the official documentation I think you should use a slightly different URL:
I've noticed that if you use reporttree, you more-or-less get a copy of the actual web page. In short a load of HTML with some data, that most email clients will format correctly.
I believe that if you use reports then you should get an attached file. Though I can't confirm that as there's something up with my instance of Zenoss and I get empty mails and no attachment.
I've tried using reports and I can't get anything except a blank email. I just had a go at various combinations of url and the best I can ever get is some unformatted html. I've never been able to get an attachment, be it stylign for the html or a .csv of the report.
From what I can see, emailing reports is fundamentally broken in Zenoss 3.x.
I have a pack written that rewrites the graph views for report mail. We use report mail often and send lots of attachments. Let me get approval to post it and I'll let you give that a go.
I'd love to get a fix for this if possible.. I'm moving all our production monitoring to Zenoss Core and emailable reporting is a must-have for us..
If you're still having the issue where you can't get graphs using reportmail, can you try feeding the "printable" url of the report to reportmail?
Eg, instead of
reportmail -U admin -p password -u http://localhost:8080/zport/dmd/reports#reporttree:.zport.dmd.Reports.Graph%20Reports.joan
reportmail -U admin -p password -u http://localhost:8080/zport/dmd/Reports/Graph%20Reports/joan/viewGraphReportClean
Hope that helps!
Hi again James,
Not sure if you're still fighting with this, but I was! I now know how to get multi-graphs to email.
The main issue is that the "printable" page of multi-graphs wasn't working. I found this thread - http://community.zenoss.org/thread/16870
Basically, you need to:
1. find the file /blah/zenoss/Products/ZenModel/skins/zenmodel/viewMutiReport.pt
2. comment out the "CreateFormField(printableForm, 'numGraphs', ZenGraphs.length);" line
3. Restart ZOPE
4. test that the printable URL works for multigraphs
Then reportmail will send you non-blank emails.
Sample URL will be like this:
reportmail -U admin -p password -a email@example.com -u http://zenoss.blah.com:8080/zport/dmd/Reports/Multi-Graph%20Reports/JoansMultiReport/viewMultiGraphReportClean
I hope this helps.
Follow Us On Twitter »
||Latest from the Zenoss Blog »||Community||Products||Services||Customers||About Us|
Copyright © 2005-2011 Zenoss, Inc.