[rrd-users] Still trying to create a graph from multiple sources in RRDtool

Emily Chouinard cousin17 at msu.edu
Tue Jun 17 14:39:17 CEST 2008


Here's my graph command
 cur_date=time.strftime('%m/%d/%Y %H\:%M\:%S', time.localtime())      
 rrdtool.graph('example.png',
        '--start','now-%s'%(60*60),
        '--end','now',
        '--width','400',
        '--height','150',
       '--base', '1000',
       '--vertical-label','CPU Usuage',
       '--title', 'EXAMPLE',
       'COMMENT',time.strftime('%m/%d/%Y %H\:%M\:%S', time.localtime()), 
#Give the current date and time on the graph
       'DEF:ds0=usr.rrd:ds0:AVERAGE ',        #Defines all three aspects 
of the /proc/stat file
       'DEF:ds1=sys.rrd:ds1:AVERAGE:step=800',
       'DEF:ds2=idle.rrd:ds2:AVERAGE:step=800',
       'AREA:ds0#0000FF:"User CPU usuage"',      #Different Labels for 
each of the three ascp
       'AREA:ds1#00FF00:"System CPU usuage"',
       'AREA:ds2#FF0000:"Idle CPU usuage"')   


Matthew M. Boedicker wrote:
> What does your graph command look like?
>
> On Mon, Jun 16, 2008 at 03:13:55PM -0400, Emily Chouinard wrote:
>   
>> Nope, so spaces
>>
>> Matthew M. Boedicker wrote:
>>     
>>> Do you still have a space after now in this part?
>>>
>>> '--start', 'now- %s' % (mins * 60),
>>>
>>> On Mon, Jun 16, 2008 at 02:56:56PM -0400, Emily Chouinard wrote:
>>>  
>>>       
>>>> Alright hopefully this is the last thing, but now I'm getting an error 
>>>> like this:
>>>> # python mult_rrd.py
>>>> 250199 103542 105050751
>>>> Traceback (most recent call last):
>>>>  File "mult_rrd.py", line 62, in ?
>>>>    'AREA:ds2#FF0000:"Idle CPU usuage"')
>>>> rrdtool.error: start time: There should be number after '-'
>>>>
>>>> And I have no clue what it means!
>>>>
>>>> _______________________________________________
>>>> rrd-users mailing list
>>>> rrd-users at lists.oetiker.ch
>>>> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
>>>>    
>>>>         
>>>  
>>>       
>
>
>   



More information about the rrd-users mailing list