News:

We really need your input in this questionnaire

Main Menu
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

#1486
General Support / Re: WMI query returns codes
November 11, 2019, 12:30:19 PM
Support for WMI queries returning lists or tables will be made available in 3.1 version.
#1487
General Support / Re: WMI query returns codes
November 06, 2019, 05:15:57 PM
Currently WMI subagent does not support data presentation as table or list, it just takes first from received values. We are planning to implement this at some point of time.

Capabilities are stored as a bitfield in that long integer, here you can find which bit represents what capability: https://www.netxms.org/documentation/datadictionary-3.0/#t-nodes
#1488
General Support / Re: WMI query returns codes
November 04, 2019, 06:46:35 PM
So, transformation scripts, as well as other scripts in NetXMS are written in NXSL - custom scripting language. It's syntax is resembling C language syntax. Language documentation can be seen here: https://www.netxms.org/documentation/nxsl-3.0/

Here's a sample script:

if ($1 == 9) {
  return "x64";
}
else if ($1 == 0)
{
  return "x86";
}
else
{
  return "unknown: ".$1;
}


$1 is the raw value (after step 1 of transformation), so in this case it's either 0 or 9. Other variables are also available in the script, e.g. $node in the node object to which the DCI belongs to. $node->name would be the name of the node.

You can use trace function to print debug information to server's log file, first parameter of trace is debug level on which the information is printed
trace(0, $node->name)

P.S. For me only the following syntax of the parameter worked on Win7:
WMI.Query(root\CIMV2,SELECT * FROM Win32_Processor, Architecture)


#1489
В 3.0 у events добавлены теги, по ним можно фильтровать список events.
#1490
In the SQL query output that you sent above you can see lines like this:
<formatString>%*s</formatString>
%*s should be replaced to some other format, where letter comes right after % character.

NetXMS server should be stopped when editing the database.
Care should be taken when editing the database, it's recommended to do database backup prior to editing.

Alternatively you can wait when NetXMS 3.1 will be out - hopefully this will happen by the end of next week.
#1491
General Support / Re: v3 templates alerts
October 25, 2019, 05:45:50 PM
In Server configuration parameters there's a parameter called ImportConfigurationOnStartup. By default it's set to "Only missing elements". In this mode, server imports default templates only if such template is not present in the system. Import happens on each server startup. If template is present, server does not overwrite it.
This means that you can modify the template and it will not get overwritten. If you delete it, it will get recreated on next server startup.
#1492
Currently $dci is not supported when a script is called from event processing. For SYS_THRESHOLD_EVENTs DCI ID is passed as 5-th parameter of $event:

trace(1, "Script on SYS_THRESHOLD_EVENT: DCI ID: ".$event->parameters[5]+0);
trace(1, "Script on SYS_THRESHOLD_EVENT: DCI name: ".GetDCIObject($node,($event->parameters[5]))->name);
trace(1, "Script on SYS_THRESHOLD_EVENT: Interface name: ".GetDCIObject($node,($event->parameters[5]))->relatedObject->name);
#1493
Yes, I just tested a SYS_NODE_DOWN event and it made sound in the Android app.
Do you have alarm generation configured in Event processing policy for your event?
#1494
Server console is not analyzing double quotes - enquoted arguments are just passed to the script as string having quotes on both ends, that's why it's not matching.
#1495
In android app in settings -> Alarms there is section "Customize alarms by severity". If you click, e.g. critical alarms there, you can select sound for that severity level. By default it is set to "Silent".
#1496
Hi!

The first thing to check is if netsvc subagent is loaded on the agent that is performing the check.
It's the concept of NetXMS that agent performs only a part of checks and many checks are done by subagents that have to be congigured in agent configuration file: https://www.netxms.org/documentation/adminguide/agent-management.html#agent-configuration-files
#1497
А какая сейчас выдача при полном запросе конфигурации ноды?
#1498
What happens, if you restart management console? If you restart netxms server?
#1499
Общие вопросы / Re: Icmp.PacketLoss()
October 18, 2019, 04:20:52 PM
Можно попробовать для этих двух хостов собирать данные с помощью Icmp.Ping() и дальше результаты как-то обрабатывать на сервере.
Еще можно, конечно, поднять ради них вторую копию агента на другом порту.
#1500
General Support / Re: Locked myself out
October 18, 2019, 03:18:49 PM
You can enable system user from the command line, for that:
1) stop netxms server
2) run
nxdbmgr reset-system-account
3) login specifying user system and password netxms
4) enable admin back
5) disable system user