node-exporter-textfile-collector-scripts
node-exporter-textfile-collector-scripts copied to clipboard
smartmon.py: fix timestamp in smartctl_run metric
The function datetime.utcnow() returns naive instances which are assumed to use the current locale when converted to timestamps using datetime.timestamp(). As a result the timezone offset is added twice leading to wrong timestamps.