We're storing the uptime of certain machines in a custom field, so that we can auto-schedule reboots when required. For some reason Kaseya is evaluating the numbers as a string and does not like comparison operators < or >.
Does anyone have a workaround for this issue? The field was created as a numeric field, so i'm not sure what else needs to be done.
I have tried using an expression like this: "(#global:cmdresults# +1) -1" to try to cast the value to an integer - this doesn't work.
Would like to hear other methods I can try, would prefer not to use an external script. I'm using 6.2
Could you post the script you are having problems with and/or the exact command that is returning these bad results?