<html><body><p><font size="2">There is no way to get this directly afaik.</font><br><font size="2">But you can extract those values from your rrd files with the start and end arg with rrdtool.</font><br><br><font size="2">For example to get the average load for a server for the last 15 days just do:</font><br><br><font size="2">rrdtool fetch la.rrd AVERAGE -s now-15d -e now | gawk '!/nan/{sum+=$2};END{printf("Average load: %.1f\n",sum/NR)}'</font><br><br><font size="2">For a bunch of servers loop like this</font><br><br><font size="2">for server in $list</font><br><font size="2">do </font><br><font size="2">  rdtool fetch $XYMONRRDS/$server/la.rrd AVERAGE -s now-15d -e now|gawk '!/nan/{sum+=$2};END{printf("Average load server %s: %.1f\n","'"$server"'",sum/NR)}'</font><br><font size="2">done</font><br><br><font size="2">Norbert</font><br><br><img width="16" height="16" src="cid:1__=4EBB0923DFF187F28f9e8a93df938690918c4EB@" border="0" alt="Inactive hide details for Bill Howe ---03/01/2019 04:55:12 PM---Hello, Is anyone aware of a way to generate reports via the CLI"><font size="2" color="#424282">Bill Howe ---03/01/2019 04:55:12 PM---Hello, Is anyone aware of a way to generate reports via the CLI that show, for</font><br><br><font size="2" color="#5F5F5F">From:        </font><font size="2">Bill Howe <howe.bill@gmail.com></font><br><font size="2" color="#5F5F5F">To:        </font><font size="2">Xymon Mailing List <xymon@xymon.com></font><br><font size="2" color="#5F5F5F">Date:        </font><font size="2">03/01/2019 04:55 PM</font><br><font size="2" color="#5F5F5F">Subject:        </font><font size="2">[Xymon] CPU Average for 1 month via CLI</font><br><font size="2" color="#5F5F5F">Sent by:        </font><font size="2">"Xymon" <xymon-bounces@xymon.com></font><br><hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br><br><br>Hello,<br><br>Is anyone aware of a way to generate reports via the CLI that show, for example, a host's CPU average over the last 30 days?<br><br>I can get the data in graph form via the xymon web portal's "Metrics Reports" page, but need to gather this data point for a large number of hosts.<br><br>I also looked at the manpage for 'xymon', and xymondboard appears to gather current stats, but I didn't see a way to gather a date range.<br><br>Thank you,<br><br><font color="#000099">Bill Howe</font><u><font color="#0000FF"><br></font></u><a href="mailto:howe.bill@gmail.com" target="_blank"><u><font color="#0000FF">howe.bill@gmail.com</font></u></a><a href="http://www.linkedin.com/in/whowe" target="_blank"></a><tt><font size="2">_______________________________________________<br>Xymon mailing list<br>Xymon@xymon.com<br></font></tt><tt><font size="2"><a href="http://lists.xymon.com/mailman/listinfo/xymon">http://lists.xymon.com/mailman/listinfo/xymon</a></font></tt><tt><font size="2"><br></font></tt><br><br><BR>
</body></html>