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

#406
Quote from: semi-liquid on April 25, 2022, 09:11:58 AM
мне бы понять таки как в письмо воткнуть имя пользователя)

Там выше предлагался вариант со скриптом. Его можно даже еще упростить и просто вставлять результат в сообщение, без дополнительных атрибутов:


list = $node->readAgentList("System.ActiveUserSessions");
return SplitString(list[0], "\"")[1];


и в сообщении использовать макрос %{script}, где script - это имя скрипта в библиотеке.
#407
Это баг, его уже починили в development ветке. В следующем релизе будет работать.
#408
Да, войдет в 4.1. Мы планируем релиз в течении нескольких дней (скорее всего понедельник).
#409
Ну и сейчас можно сделать любую картинку как фон, и по ней расставить объекты и линки тянуть как угодно (используя тип роутинга bendpoints на линках).
#410
Добавили методы readMaintenanceJournal и writeMaintenanceJournal.

Пример добавления записи:

$object->writeMaintenanceJournal("Maintenance operation description");


Пример чтения:

for(r : $object->readMaintenanceJournal())
println(r);


В readMaintenanceJournal можно передавать два дополнительных параметра - начало периода и конец периода, оба как UNIX timestamp.
#411
Ну в интернете как минимум oidview показывает наличие MIBa: https://www.oidview.com/mibs/10642/ZEBRA-QL-MIB.html - непонятно только как скачать, мне по ссылке "download" выдали только рекламу :)
Также встретил упоминание, что MIB файл можно сгенерировать прямо на принтере какими-то командами.
#412
General Support / Re: SSH DCI Collection
April 05, 2022, 10:28:30 AM
Actually, agent is already involved in SSH polling. If SSH proxy is not specified server will use it's local agent as a proxy.

Best regards,
Victor
#413
General Support / Re: SSH DCI Collection
April 04, 2022, 07:47:10 PM
Hello,

I tried to reproduce this issue with latest agent, but it works as expected for me. Are you sure agent used as a proxy for SSH connection was upgraded to 4.0.2157? If yes, please try to set debug level to 8 and send me excerpt from the log around request for parameter SSH.Command.

Best regards,
Victor
#414
Announcements / NetXMS 4.0 patch release 4.0.2227
March 25, 2022, 10:51:19 PM
Hi all!

We just published new patch release for version 4.0 - 4.0.2227. Changes since release 4.0.2157 (some were already included into 4.0.2200):

- NXSL hook script for user login
- SSH subagent metric SSH.Command returns collection error instead of "unsupported metric" if host name cannot be resolved
- Fixed bugs in IP topology map builder
- Added action to open object detalis form Business Service checks
- Alarms for unknown nodes are not included in summary e-mails
- Fixed bug with threshold recreation on any DCI change
- Fixed issues:
        NX-2214 (Agent does not report network interface speed)
        NX-2227 (Typo in message for event SYS_DUPLICATE_MAC_ADDRESS)
        NX-2235 (Object Query CSV export does not prompt to overwrite .csv file)
        NX-2236 (Option of copying of data from an Object Query in Dashboard view)

Best regards,
Victor
#415
Можно сделать external parameter с аргументами, куда передавать IP адрес принтера например, а затем на нодах принтеров сделать нужные DCI и указать SERVER как source node.

Например:

1. агент на SERVER:

ExternalParameter = PrinterState(*):get_printer_state.sh $1


2. DCI на ноде принтера:
Name: PrinterState(10.0.0.1)
Origin: agent
Source node: SERVER

в результате сервер запустит скрипт
get_printer_state.sh 10.0.0.1
на ноде SERVER и результат поместит в DCI на принтере
#416
Действительно не работает. Только что исправили, в следующем патч релизе будет работать.
#417
Перепутал немного, называется "translucent":
#418
Try using utf-8, it could be issue with character set transformation internally. Most mail clients should understand utf-8 encoded emails correctly.

Best regards,
Victor
#419
Hi,

you can turn off automatic layout for map by right click - selecting "layout" - unchecking "enable automatic layout".

Best regards,
Victor
#420
General Support / Re: Trigger Action on remote host
March 22, 2022, 08:53:14 AM
Hi,

try using

ActionShellExec = kill_qv:c:\NetXMS\batches\kill_qv.bat

in agent configuration file.

Best regards,
Victor