Archived community.zenoss.org | full text search
Skip navigation
1496 Views 2 Replies Latest reply: Oct 28, 2011 4:23 PM by stwainer RSS
briffle Rank: White Belt 47 posts since
Mar 11, 2011
Currently Being Moderated

Aug 30, 2011 10:06 AM

reportmail showing 'average' for storage report

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!

  • Rank: Brown Belt 260 posts since
    Mar 30, 2009
    Currently Being Moderated
    1. Aug 30, 2011 1:26 PM (in response to briffle)
    Re: reportmail showing 'average' for storage report

    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!

  • stwainer Rank: White Belt 76 posts since
    Dec 14, 2007
    Currently Being Moderated
    2. Oct 28, 2011 4:23 PM (in response to Nick Yeates)
    Re: reportmail showing 'average' for storage report

    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

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points