I recently upgraded our NetXMS server (and agent) listed below:
netxms-agent:amd64 (6.0.1-1+bookworm, 6.2.3-1+bookworm)
netxms-server:amd64 (6.0.1-1+bookworm, 6.2.3-1+bookworm)
and later (due to this issue)
netxms-agent:amd64 (6.2.3-1+bookworm, 6.2.4-1+bookworm)
netxms-server:amd64 (6.2.3-1+bookworm, 6.2.4-1+bookworm).
I had two similar DCIs like this: origin: script, metric: Ping("1.1.1.1",1)
And the following script behind:
Both DCIs error with the following: Script (Ping) execution error: Error 14 in line 8: Function or operation argument is not an object
But if I use the execute script function with params: "1.1.1.1",1 to run the ping on the same node I get the expected result:
This issue started after the first upgrade and persisted after the second.
netxms-agent:amd64 (6.0.1-1+bookworm, 6.2.3-1+bookworm)
netxms-server:amd64 (6.0.1-1+bookworm, 6.2.3-1+bookworm)
and later (due to this issue)
netxms-agent:amd64 (6.2.3-1+bookworm, 6.2.4-1+bookworm)
netxms-server:amd64 (6.2.3-1+bookworm, 6.2.4-1+bookworm).
I had two similar DCIs like this: origin: script, metric: Ping("1.1.1.1",1)
And the following script behind:
Code Select
if ($2) {
cmd = "ping-suli";
} else {
cmd = "ping-voda";
}
println("Using: " .. cmd);
res = $node.executeAgentCommandWithOutput(cmd, $1);
if (res.length == 0) return null;
return res;Both DCIs error with the following: Script (Ping) execution error: Error 14 in line 8: Function or operation argument is not an object
But if I use the execute script function with params: "1.1.1.1",1 to run the ping on the same node I get the expected result:
Code Select
Using: ping-suli
*** FINISHED ***
Result: 25.2This issue started after the first upgrade and persisted after the second.