Aug 30, 2011 10:06 AM
reportmail showing 'average' for storage report
-
Like (0)
Every morning, I have a script that runs reportmail, and returns the file system utilization reports. We have recently noticed that it always sends us the 'average' utilization, instead of the 'last' (which is what we really care about).
Is there a way to change the syntax, to force it to send the 'last' sizes, and not the average? Here is the pertinent command I am running in a bash script:
/opt/zenoss/bin/reportmail --user=admin --passwd=********* --from="zenoss@domain.com" --address="sysadmin@domain.com" --subject="Zenoss: Storage Report" --url="http://zenoss3.domain.com:8080/zport/dmd/Reports/Performance%20Reports/Filesystem%20Util%20Report/";
Thanks!
I am not sure which version of Zenoss you are on, but I tested a possible easy solution for you on 3.0.3 (essentially same on all 3.*)
You can modify the URL for the report call, adding a "?how=LAST" (or "&how=LAST" if you have multiple vars in the url)
I found this by navigating to the report, seeing that there indeed was a field in the report to choose whether you want AVERAGE or LAST. This told me that if I could see the url for this report, this input variable may be encoded in the URL. I right clicked the frame that the report was in in the browser and said to 'show only this frame'. This brought the report up in its own page, with the whole url. I changed the 'Summary Type' field and clicked update and saw the new URL!
How do I add an option for 'last' ina current report such as 'Interface Utilization'? I'm thinking that would help me identify the bandwidth hog of the moment.
Thanks
Steve
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||