Added a check to see if its worth to update the monitor_history field

Signed-off-by: Antanas Norkus <antanas.norkus@cern.ch>