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 - Filipp Sudanov

#676
General Support / Re: Two snmp requests in one dci
November 04, 2022, 06:12:50 PM
Ups, i missed that line :)

Yes, it's correct
#677
General Support / Re: Maps on new GUI
November 04, 2022, 06:11:25 PM
What happens if you open the same map in the "old" UI? Is it also broken there or looks OK?
#678
Last line
return $1;is there so transformation script returns DCI's value. Currently your DCI return "true" all the time.

#679
You can make transformation script like this for your packet loss DCI:

if ($node->state & NodeState::Unreachable) abort;
return $1;

"abort" keyword will cancel collection of datapoint. You can also use "return null" instead of "abort" - this will put the DCI into data collection error.
#680
General Support / Re: Two snmp requests in one dci
November 03, 2022, 02:17:38 PM
Looks good. There's a small chance that SNMPGetValue may return null (e.g. communication gets broken exactly when these requests are made), so you may want to check diskSize and diskUsed for null.


#681
General Support / Re: Webinterface Custom Logo
November 03, 2022, 02:13:27 PM
Are you using "old" (nxmc-legacy-4.2.395.war) or "new" (nxmc-4.2.395.war) web UI?
#682
General Support / Re: DCI Units
November 03, 2022, 02:11:28 PM
Yes, there is some encoding issue (also with ยต). Should be fixed in next patch release.
#683
General Support / Re: Two snmp requests in one dci
November 02, 2022, 02:18:09 PM
It's possible to make script DCI that would take values from other DCIs and do the calculation. But if you don't need to keep the intermediary values, they you can do everything just in one DCI.

Create s script in script library and Script DCI that uses that script. Check this example for script contents: https://www.netxms.org/documentation/nxsl-latest/#func-snmpgetvalue

#684
It's a bug introduced in 4.2. It affects syslog and windows event log processing in fields "source" and "tag".

Bug is fixed, will be in next patch release. 

Meanwhile you can put * character in source, it should work that way.
#685
General Support / Re: Script timeout after upgrade to 4.2
November 01, 2022, 02:32:57 PM
Hi!
There's a bug in recently released 4.2 - DefaultExecutionTimeout is not taken in account. This will be fixed in next patch release.

Try settingExternalMetricTimeout - it should affect external tables and external metrics.


Also, external tables now have a new, background mode of operations - command is called regularly, it's output is cached and instantly returned to server when it requests the table. See for more info: https://www.netxms.org/documentation/adminguide/agent-management.html?highlight=externaltable#externaltable
#686
General Support / Re: Push values to DCI with API
November 01, 2022, 12:10:28 AM
Yes, we are moving toward term "metric" in the UI (and also in NXSL at some point)
#687
General Support / Re: AgentExecuteAction
November 01, 2022, 12:06:50 AM
Yes, normally previous functions should have remained as deprecated for some time, but this time it did not happen. We've updated documentation on the current situation.
#688
General Support / Re: Search content in script library
October 28, 2022, 06:30:15 PM
Currently not possible in the UI. You can just run a select of script_library table in the database.

Also there's a lot of other places where scripts can exist - in EPP, transformation scripts, auto-bind scripts and so on, they are in different tables in the DB.
#689
General Support / Re: Push values to DCI with API
October 28, 2022, 06:22:07 PM
The request should be:

Request type: POST
Request path: API_HOME/pushData

It's possible to use one of two data formats:

1) If you need to send just one DCI:

{
      nodeId : 10,
      dciId : 20,
      value : "Value"
}


2) If you are sending data for multiple DCIs

data :
[
  {
      nodeId : 10,
      dciId : 20,
      value : "Value"
  },
  {
      nodeName : "Node name",
      dciName : "DCI name",
      value : "Value"
  }
]


You can use both names and IDs of objects and DCIs.

If both name and ID are set, ID has priority
#690
Yes, this relates both to old and new gui.