Collect script does not retrieve a value caused wrong values of the metrics are sent by a custom agent