Ticket #5: UpdateWorker.pm.patch

File UpdateWorker.pm.patch, 1.2 KB (added by muhgatus, 5 years ago)

A patch for UpdateWorker?.pm to support RRD with 30 second sample interval. In order to use it, you have to edit munin-cron to disable munin-update. run munin-update seperately every 30 seconds.

  • UpdateWorker.pm

    old new  
    442442              "RRA:MIN:0.5:288:450", 
    443443              "RRA:MAX:0.5:288:450"); 
    444444    }  
     445    elsif ($resolution eq 'detailed') { 
     446        @args = ( 
     447              $rrd_file, 
     448              '--step',30, 
     449              sprintf('DS:42:%s:60:%s:%s', 
     450                      $ds_config->{type}, $ds_config->{min}, $ds_config->{max}), 
     451              "RRA:AVERAGE:0.5:1:5760",   # resolution 30 seconds 
     452              "RRA:MIN:0.5:1:5760", 
     453              "RRA:MAX:0.5:1:5760", 
     454              "RRA:AVERAGE:0.5:2:12960",  # 9 days, resolution 1 minutes 
     455              "RRA:MIN:0.5:2:12960", 
     456              "RRA:MAX:0.5:2:12960", 
     457              "RRA:AVERAGE:0.5:20:6480",  # 45 days, resolution 10 minutes 
     458              "RRA:MIN:0.5:20:6480", 
     459              "RRA:MAX:0.5:20:6480", 
     460              "RRA:AVERAGE:0.5:1440:900", # 450 days, resolution 12 hours 
     461              "RRA:MIN:0.5:1440:900", 
     462              "RRA:MAX:0.5:1440:900"); 
     463    } 
    445464    elsif ($resolution eq 'huge') { 
    446465        push (@args,  
    447466              "RRA:AVERAGE:0.5:1:115200",  # resolution 5 minutes, for 400 days