Hello! I'm trying to get cumulative metrics by tracking daily renewing one. So every increase of a daily metric raises an event. Then this increase must be appended to cumulative metric's meaning and ... I just can't give arguments to adding script. I checked:
- script is working with arguments in server console and works with defined one
- arguments are right because email action can recognize them
- selecting Run NXSL Script give has no result in case of arguments addition to script name even if the last one does not use arguments at all. I'm very sad...
- any walked roundabout way of script execution doesn't work
- I haven't found a way to get current value of PushAgent characteristics from .bat command file
- script can't get any object reference another way but arguments OR may be I'm wrong?
obj = FindObject($1); //get object
cur = GetDCIValue(obj, FindDCIByName(obj, "TotalCount")); //get current value
if (cur == null)
cur = 0;
PushDCIData(obj, FindDCIByName(obj, "TotalCount"), cur + $2); //increase it
Can you suggest any way to push increase of cumulative metric, please? I have no right ideas