You probably have "Epoch time" units selected for that DCI, which makes it display as Date and Time. But the actual value is Unix time - if you open history for that DCI, you would see the values. Threshold operation is happening with that unix time value.
So there's two ways how to do things:
a) in transformation script of that DCI:
b) or you can have it without any transformation, and use script threshold:
or even
and specify the threshold value in days in "Value" field of threshold properties.
So there's two ways how to do things:
a) in transformation script of that DCI:
Code Select
return time() - $1;this way the DCI will have value of how many seconds ago the update last happened. You can use "Uptime" units to display that. And in threshold you would want to check if the value is bigger then 2592000 (which is 60 * 60 * 24 * 30). b) or you can have it without any transformation, and use script threshold:
Code Select
return time() - $1 > 2592000;or even
Code Select
return time() - $1 > $2 * 3600 * 24;and specify the threshold value in days in "Value" field of threshold properties.