fix rrdtool errors but remain rrdtool error: 'error: Legend set but no color:'

fix rrdtool options