<Am I reaching for something here that mrtg just cannot do?> Hi,
you can always write a script which you call from your config file that will read your source data, process it accordingly and write output to a second differently named .log file, and then build a graph from that second .log file. regards Derek -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Brian J. Murrell Sent: Wednesday, 31 March 2010 3:27 PM To: [email protected] Subject: [mrtg] resetting graphs periodically (i.e. monthly) I want to "gauge" (pun intended) various usages on a month-to-month basis. One example would be the amount of traffic a particular machine is consuming. I realize that I could get this from an snmp object, but when all is said and done, I will want to graph traffic in granularities such as specific TCP/UDP ports. So I have chosen to graph iptables counters. And I have all of the glue to get the values out of iptables and into mrtg as you an see by this .log file: # head -5 /var/www/html/mrtg/acc_linux.log 1270008911 824539544 36442831 1270008911 824539544 36442831 824539544 36442831 1270008608 823814773 36367336 823814773 36367336 1270008600 823796383 36365323 823814773 36367336 1270008300 803993735 35453230 823201777 36300236 I am graphing this with a "gauge" so that I can see it's growth over time. But what I want to be able to do however is "reset" graph at intervals, like say monthly, so that at the start of every month, the graph starts at 0 and grows until the end of the month. I would prefer not to sacrifice the historical data however and just trash the .log every month (which seems to be one way to achieve this, at the expense of the yearly graph, which is why I don't want to trash the .log file). Am I reaching for something here that mrtg just cannot do? b. This email is intended for the use of the addressee only. If you receive this email in error, please delete it immediately. This email may contain information which is confidential and/or legally privileged. You must not use or disclose the contents of this email, or add the sender's email address to any database, list or mailing list unless you are expressly authorised to do so. The statements or views expressed in this email are those of the individual sender and are not those of Australian Associated Press Pty Ltd (AAP). These statements are not binding on AAP, except where the sender expressly and with authority, states them to be. AAP is unable to review the contents of all the email on its system. To the extent permitted by law, AAP disclaims all liability for any loss or damage caused by the contents of this email. www.aap.com.au _______________________________________________ mrtg mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
