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 - Victor Kirhenshtein

#466
Вариант для проверки что устройство во всех указанных VLAN'ах:


with
vlanIdList = { %(4, 5, 8) },
vlanMatch = {
list = %();
for(v : vlans)
   if (v->id in vlanIdList)
list->append(v->id);
return list->size == vlanIdList->size;
}
type == NODE and hasVLANs and vlanMatch


Здесь vlanIdList содержит список VLAN'ов.

Проблему с access denied повторил у себя, похоже какой-то баг. Будем разбираться.
#467
Попробуйте такой запрос:


with
vlanIdList = {
list = %();
for(v : vlans)
list->append(v->id);
return list;
}
type == NODE and hasVLANs and (100 in vlanIdList)

#468
Я бы наверное сделал script DCI, который сам делает SNMP get или walk и по каким-то дополнительным признакам определяет правильный OID. Можно например хранить OID который читаем в атрибутах ноды, а если получили ошибку, то искать новый правильный и потом повторять чтение.
#469
Можно использовать $dci->instance (то что мы видим в поле Instance в закладке Thresholds) или $dci->instanceData (то что вернул instance discovery).
#470
Можно повесить обработку события SYS_NODE_ADDED, в нем есть флажок что это устройство найдено по discovery. В обработке события вызавать скрипт, который будет делать

$node->unmanage();

(или как вариант переводить в maintenance mode).

Альтернативный вариант - поставить первое правило в обработке событий, где в фильтре по объектам указать NOT Infrastructure Services, а в действиях - stop event processing. Правило будет срабатывать для всех узлов, которые не под Infrastructure Services, и останавливать дальнейшую обработку события.

С принтерами так-же примерно - сделать правило на событие SYS_NODE_DOWN и SYS_NODE_UP и фильтр по source на принтера (если можно как-то их выделить, по контейнеру скажем), или фильтрующий скрипт, который будет проверять $node->isPrinter, и как действие - stop event processing.
#471
Общие вопросы / Re: SNMP и UFT-8
September 09, 2021, 10:50:56 AM
Quote from: prof-alex on September 03, 2021, 02:59:35 PM
И почему по умолчанию на Linux не UTF-8?

Исторически так сложилось :) Это очень старая часть кода, правильно конечно использовать системный locale (как сделано в Windows версии). Отмечу себе для переделки в 4 версии.
#472
General Support / Re: Unsupported DCI System.ThreadCount
September 09, 2021, 10:48:56 AM
Hi,

could it be that performance counters are disabled on that machine or winperf subagent is not loaded?

Best regards,
Victor
#473
General Support / Re: Querying DCI Table history
September 09, 2021, 10:47:01 AM
Hi,

sure, you can clone our GitHub repository (https://github.com/netxms/netxms), do necessary changes, and submit a pull request (with usual GitHub mechanisms).

Best regards,
Victor
#474
General Support / Re: Debian bullseye release
September 09, 2021, 10:44:58 AM
Hi,

we are working on it, hopefully packages will be available in repository today or tomorrow.

Best regards,
Victor
#475
Announcements / NetXMS 3.9 version 3.9.235
September 07, 2021, 04:07:13 PM
Hi all!

We just published small patch release 3.9.235. It fixes two issues:

1. Incompatible change in external parameter behavior (issue NX-2108)
2. Incorrect work of NXSL function "trim"

Only server and agent has to be upgraded, there are no changes in UI since 3.9.229.

Best regards,
Victor
#476
Announcements / Re: NetXMS 3.9 version 3.9.229
September 06, 2021, 01:58:28 PM
Hi,

just remove file /opt/netxms/lib/netxms/ndd/symbol_ws.ndd - it is from old server version and is no longer needed.

Best regards,
Victor
#477
Announcements / NetXMS 3.9 version 3.9.229
September 06, 2021, 12:41:03 PM
Hi all!

We just published new patch release for version 3.9 - 3.9.229. Changes since previous release:

- Dashboards can be saved as images in desktop UI
- Database manager checks for access point objects without valid parent node
- Server does not report duplicate MAC addresses if interfaces are from same node
- New agent actions: Process.Terminate, Service.Start, Service.Stop
- Web API session inactivity timeout can be configured
- Fixed server deadlock related to multi-zone configuration
- Fixed bugs in external command execution
- Fixed small issues in influxdb driver
- Fixed deleted form network map object list load from database on startup
- Fixed rack placement object property page save
- Fixed bug in SQLite driver (incorrect reading of fields with null value)
- Fixed issues:
        NX-1625 ("Icmp.MovingAvgPingTime(*)" need a way to specify sample size)
        NX-2092 (Keep last known topology information when node goes down)
        NX-2093 (Add new parameter to ping subagent that will calculate jitter as moving average on response time deltas)
        NX-2101 ("Compile script" button should not be present in script preview in EPP rule list)

Best regards,
Victor
#478
Исправили. Теперь при создании базы сохраняется регистр.
#479
Hi,

you can create external parameter that will execute this command and return security patch number, something like

ExternalParameterShellExec = ExchangePatchNumber:pwsh -Command "& { Get-Command Exsetup.exe | ForEach {$_.FileVersionInfo} }"

in nxagentd.conf (not sure about exact PowerShell syntax, but you should get an idea). Agent will provide new metric ExchangePatchNumber that should return output of given command as value.

Best regards,
Victor

#480
General Support / Re: Zones / Proxy Nodes / L3 Maps
August 27, 2021, 10:16:50 AM
So you need L3 map covering multiple zones?
Are you using proxy nodes for each zone, or server communicates directly with devices using unique addresses, and it is some other subnets deeper in client networks that are duplicate?

Best regards,
Victor