modify plugin to update rrd every 20 seconds and make api call at the specified interval