Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - saksham.adyso

#1
General Support / Properties issue
June 26, 2025, 08:13:48 AM
If I change the properties of any object and save them. These properties will only be displayed if I display the Properties window via the object's context menu. If I display the Properties window via a button on the toolbar, the changed properties are not displayed.
#2
General Support / Re: $node.ipAddr is unspec
May 12, 2025, 03:15:49 PM
function main()
{
LogFile = IO::OpenFile("C:\\nx\\netxms.txt", "a");
if (LogFile != null)
{
LogFile.writeLine($node.ipAddr);
LogFile.close();
}
}
#3
General Support / Re: Client startup fails
May 12, 2025, 03:14:48 PM
I use new version of client.
#4
General Support / Client startup fails
May 07, 2025, 01:12:22 PM
I need to run Client 5.0.6 on Windows Server 2012 R2, but the startup fails and the application does not start. Nothing is logged to the log. --debug switch does not create any event. The newer version of Client works fine. But I need to prepare the old server for migration.
#5
General Support / Re: $node.ipAddr is unspec
April 30, 2025, 08:43:01 AM
I use exactly this $node variable in the script and write its ipAddr property to a file. In the old version the UNSPEC text was written to the file and in the latest version nothing was written. Same for the other variables of the $node object (DiscoveredNode).
#6
General Support / Re: $node.ipAddr is unspec
April 25, 2025, 12:48:05 PM
Script is in script library and I select this script for discovery filter.
#7
General Support / Re: $node.ipAddr is unspec
April 25, 2025, 09:09:32 AM
I use a custom script where I write the state of a variable to a file. I don't use the built-in hook script.
#8
General Support / Re: $node.ipAddr is unspec
April 23, 2025, 10:30:28 AM
I've updated to the latest version. Unfortunately now nothing is being written. I tried to do a clean install of NetXMS and the result is the same.
#9
General Support / $node.ipAddr is unspec
April 15, 2025, 03:36:50 PM
I have made a filter script that writes a DiscoveredNode object to a text document, code: $node.ipAddr. But the "unspec" text is written to the file.
I made this script just to understand how the filter script works.
If I don't use a script, everything works. So there is no problem in the search. Why is the IP address of the object not written, but the text unspec?
#10
Quotes removed:
2025.04.08 10:13:13.718 *D* [comm.cs.1          ] Requesting metric "Database.Data(foo)"
2025.04.08 10:13:13.718 *D* [dbquery            ] H_DirectQueryConfigurable: Executing query "SELECT `name` FROM `test` WHERE `description` LIKE ?;" in database "id1"
Result is fine.
But if I add my own text to the value (e.g. LIKE %?), an error is logged You have an error in your SQL syntax.
The metric only works when I put the whole condition in the metric brackets (it must not be in the configuration file).
#11
It seems that ? is not going to be replaced by a metrics argument.
2025.04.07 13:24:03.180 *D* [comm.cs.1          ] Requesting metric "Database.Data(foo)"
2025.04.07 13:24:03.180 *D* [dbquery            ] H_DirectQueryConfigurable: Executing query "SELECT `name` FROM `test` WHERE `description` LIKE "?";" in database "id1"
#12
If I create a configuration for the Query parameter, everything works correctly. NetXMS connects to the database and the DCI returns the correct value. If I change the same Query parameter to a ConfigurableQuery parameter (and modify its value according to the documentation) and modify the metric to the query name and put a value in parentheses to replace the ? in the query, an empty result set is always returned. I have verified this on three drivers (mssql, mysql and pgsql). If I separately validate the query in another application, everything works correctly.

Configuration sample
ConfigurableQuery = Database.Data:id1:Custom data:SELECT `name` FROM `test` WHERE `description` LIKE "?";
#13
General Support / How do UI Access Rules work?
April 03, 2025, 01:30:43 PM
How do UI Access Rules work? For example, if I add perspective:objects.infrastructure to the list, nothing is shown to the user. Is there anything else I need to set?
#14
It works, thank you.
#15
If I remove the built-in templates Operating systems, SNMP, System, they are all restored when the server is restarted.