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

#151
Хм, а что дальше этот экшн делает?
Если что, тут есть пример создания нод через nxshell: https://www.netxms.org/forum/general-support/difficulty-using-the-csv-importer/
#152
It's probably taking the first line of the output that was obtained via ssh. In this case it's !!!!!, which might be interpreted as 0 if the DCI is Integer.
If you check history for this DCI, raw value column might have some clue.

if your router supports i command which allows to filter the output, you can do something like this:
ping 8.8.8.8 repeat 3 timeout 1 | i SuccessThis would limit the output just to one line, which then can be parsed using transformation script. Note that I limited number of requests and timeout as by default there's 4 second limitation between netxms server and agent - result should be returned within that time.

If above is not possible, the other approach is to call ssh command from NXSL script. In this case all lines of output are received (as array) and we can parse this array to extract data:
r = $node.executeSSHCommand("ping 8.8.8.8 repeat 3 timeout 1");
avg = -1;
for (s : r) {
  m = s match "Success rate is .* round-trip min/avg/max = .*/(.*)/.*";
  if (m) avg = m[1];
}
return avg;

You can either put this script into script library and use it in Script DCI; or you can make Internal DCI with metric Dummy and put this into transformation script.
#153
This query should list EPP rules that have actions. In the "active" column you should have 1 for active actions and 0 for inactive, but may be you'll get some other values.
select p.comments, a.action_id, a.active from POLICY_ACTION_LIST a INNER JOIN event_policy p ON a.rule_id = p.rule_id;
A query to activate them all should be just this:
update policy_action_list set active = 1;
Note that netxms server should be stopped before running any update queries to the DB.
#154
Yes, pls try disabling and reenabling the actions. If this does not help, we will check how to fix them with a database query.
#155
General Support / Re: aruba driver
May 20, 2025, 12:25:31 PM
If you could provide us with access to some test aruba device for a few days, that would be the most efficient way for our developers. You can set up some vpn or just netxms agent with SNMP proxy enabled to which we could connect. If that's not possible, pls send full snmp walk output.
#156
We've fixed a bug in import - when importing from older version of xml state of Action (active or not) was not correctly imported. The fix will be included in next release.

In overall it's better to upgrade just with the same database - new server will upgrade it's structure. Installing a new system and migrating config approach is used not so often, while perfectly valid.
#157
Can you also select this from the DB and show the output (IDs are less by 1 then what's visible in the UI):

select rule_id, flags, comments from event_policy where rule_id in (59, 78);
#158
Can you share the exported .xml (or at least it's part related to this specific rule).
Export was performed in v 2.2, right?
#159
What about EPP rules which are before that one that should send the notification? Could there be some rule with "stop event processiong" checkbox?
#160
Make sure that you start your url with http:// or https://
Windows is analyzing the URL and decides somehow which app should be used for opening. URL like file:///C:/ does indeed open in File Explorer
#161
For delayed notifications pls check screenshots in this documentation chapter: https://netxms.org/documentation/adminguide/event-processing.html#actions

What about Server Action Execution and Notification logs, is there anything there related to the email?
#162
В 5.2 можно вынести в комментарий - макрос %{attr_name} развернется в значение атрибута.

Можно сделать DCI с галочкой Show last value in object overview. DCI нужен скриптовый, скрипт return $node.getCustomAttribute("attr_name"); вернет значечение кастом атрибута.
#163
NetXMS can connect via ssh, send some command and get first line of output of that command as DCI value. See more here: https://netxms.org/documentation/adminguide/ssh-monitoring.html

For SNMP you just need to create a new DCI with origin SNMP and put OID into the Metric field.

However, I can not tell if your specific device can perform pinging and report value via mentioned methods. Ssh is probably more promising, as typically ping command is present on devices.
#164
Depending on what that router supports. If you could install NetXMS agent there, that would be the best way - e.g. this can be done with some newer Mikrotiks that support containers. If not, then you can collect data via snmp or ssh. Or you can put some machine with netxms agent in the proximity of this router.
#165
Are you using desktop client? Legacy or new one? What exactly version of the client? What is the OS?