This is a discussion on [rrd-users] RE : mailgraph.pl within the RRD Users forums, part of the Networking and Network Related category; Hi, I'm new to rrd. I discovered it by using mailgraph.pl. Here my problem*: I want to now ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
I'm new to rrd. I discovered it by using mailgraph.pl. Here my problem*: I want to now the number of spam I received yesterday. I don't want the past 24 hours but the last day from 00:00am to 11:59pm. I try this command : rrdtool xport --start `date --date "20050516 00:00:00" +%s` --end `date --date "20050516 23:59:59" +%s` --step 480 DEF:spam=/var/www/cgi-bin/smtpin/mailgraph_virus.rrd:spam:AVERAGE:`date --date "20050514 00:00:00" +%s`:`date --date "20050516 23:59:59" +%s` CDEF:dspam=spam,UN,0,spam,IF,480,* CDEF:sspam=PREV,UN,dspam,PREV,IF,dspam,+ XPORT:sspam:"tralala" result : <?xml version="1.0" encoding="ISO-8859-1"?> <xport> <meta> <start>1116198720</start> <step>3360</step> <end>1116289440</end> <rows>28</rows> <columns>1</columns> <legend> <entry>tralala</entry> </legend> </meta> <data> <row><t>1116198720</t><v>0.0000000000e+00</v></row> [...] <row><t>1116289440</t><v>4.7885714286e+02</v></row> </data> </xport> So, how can I get the result for a periode that don't finish now (or today). Thanks by advance, Laurent. ATTENTION Le message contenu dans cet email ainsi que dans tout fichier attaché est destiné exclusivement aux personnes dont le nom figure ci-dessus. Il peut contenir des informations confidentielles ou protégées par le secret professionnel et dont la divulgation est strictement prohibée. Si vous avez reçu cet email par erreur,détruisez-en le contenu. Vous n'êtes pas autorisé, dans cette hypothèse, à copier, distribuer ou conserver ce message. Merci. WARNING This information in this mail and in any attachments is intended for the above-mentioned addressees only. It may contain privileged or confidential informationthe review, dissemination or disclosure of which is strictly prohibited. If you have received this email by error, please destroy it. In this case, you are not authorisedto disclose, copy, distribute, or retain this message or any part of it. Thank you. -- Unsubscribe mailto:rrd-users-request@list.ee.ethz.ch?subject=unsubscribe Help mailto:rrd-users-request@list.ee.ethz.ch?subject=help Archive http://lists.ee.ethz.ch/rrd-users WebAdmin http://lists.ee.ethz.ch/lsg2.cgi |