Hello @all,
i use the following script as automatic apply rule in a template (NetXMS V2.1.2):
Everytime the script is processed automaticly at a node the following event is thrown:
Script (Template::Server Service DNS::730) execution error: Error 4 in line 1: Bad arithmetic conversion
but the script is proccessed correctly.
If i create this script in script library and test the script with "Execute Server Script" with a node, there is no error...
Where is my fault? Thanks for helping me...
Greets
Marco
i use the following script as automatic apply rule in a template (NetXMS V2.1.2):
Code Select
if ( (! $node->isAgent) && (! $node->platformName ~= "windows.*") ) return false;
table = AgentReadTable($node, "System.Services");
if ( table == null ) return false;
colName = table->getColumnIndex("NAME");
for (currentRow = 0; currentRow < table->rowCount; currentRow++)
{
if ( table->get(currentRow, colName) == "DNS" ) return true;
}
return false;
Everytime the script is processed automaticly at a node the following event is thrown:
Script (Template::Server Service DNS::730) execution error: Error 4 in line 1: Bad arithmetic conversion
but the script is proccessed correctly.
If i create this script in script library and test the script with "Execute Server Script" with a node, there is no error...
Where is my fault? Thanks for helping me...
Greets
Marco