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

#376
General Support / Re: Telegram channel Issue
May 09, 2022, 10:50:24 AM
Hi,

it doesn't look like debug level is set correctly. You can open server debug console (either from desktop client via Tools -> Server Console, or from command line on server machine by running nxadm -i) and enter command debug to get current debug levels. Then you can set debug level for required tag with command debug ncd.telegram 7.

Best regards,
Victor
#377
Announcements / NetXMS 4.1 released
May 05, 2022, 05:17:18 PM
Hi all!

NetXMS 4.1 is released. This is minor release mostly aimed at fixing issues found in 4.0 and minor improvements. Full change log is following:

- Maintenance journals for objects
- SSH connecivity checked as part of status and configuration polls
- Runtime errors in filtering scripts interpreted as "ignore" if applicable and otherwise as "block"
- Authentication option (on by default) for local server console (accessible via nxadm)
- Added driver for Ubiquiti EdgeSwitch switches
- Octal numeric constants removed from NXSL
- New string method "equals" in NXSL
- Jira connector supports Jira Cloud
- Internal metrics for monitoring notification channels
- Improved titles in dashboard elements
- Ignore IP addresses found during network discovery on interfaces marked as excluded from topology
- Added AgentTunnels.Certificates.ReissueInterval and AgentTunnels.Certificates.ValidityPeriod server configuration variables
- Fixed DCI creation from NXSL
- Added $dci variable to DCI script
- Added option to configure column data type for external table
- Fixed issues:
        NX-1183 (Add option to choose automatic colors for instances in performance tabs)
        NX-1734 (Add column "Peer Interface" to interface list view)
        NX-1785 (Automatic color assignment for items on performance tab graph)
        NX-1802 (Binary data support in NXSL SNMP functions)
        NX-2021 (Title is not displayed for some Dashboard elements)
        NX-2154 (Node search by partial MAC address)
        NX-2163 (Show user name on process tab)
        NX-2165 ("Show file" in file manager displays incorrect progress bar message)
        NX-2196 (Keep SNMP alias separately in interface object)
        NX-2215 (Remake XMPP into a notification channel)
        NX-2216 (Telegram notification channel should throttle message sending and retry sending after timeout)
        NX-2220 (Add timer key column to Scheduled Tasks)
        NX-2223 (Notification log view should have multi-line preview panel)
        NX-2225 (Maintenance journal)
        NX-2226 (Agent policy move to TemplateGroup)
        NX-2229 (Add scrollbar and ability to resize to script editor in Object Query)
        NX-2230 (Business service enhancements)
        NX-2231 (Use TCP/UDP for active network discovery)
        NX-2233 (Add new agent metric similar to Service.Check() that would follow redirects)
        NX-2239 (Node SSH polling)
        NX-2240 (Changes to DCI comments in template are not synchronized with DCIs created from that template)
        NX-2242 (On Windows, if agent action calls .cmd file and that file produces output, execution fails)
        NX-2252 (TLS.Certificate.* 500 internal error to some domains when nginx enabled ssl_reject_handshake on)
        NX-2254 (LDAP synchronization error events generated for any LDAP user login error)
        NX-2255 (SQL issues with server_action_execution_log)
        NX-2256 (Have two separate certificates on server - for TLS connection and to issue agent certificates)
        NX-2257 (PostgreSQL.Version returns 0.0 if database is not connected)

Best regards,
Victor
#378
General Support / Re: SNMP Communication Properties
April 30, 2022, 09:52:46 AM
Hi,

you should be able to do that using nxshell script as it provides access to full Java API.

This is sample script that should change SNMP settings to V3, SHA1/AES for all nodes:

for node in [o for o in session.getAllObjects() if isinstance(o, objects.Node)]:
   print 'Node: ', node.getObjectName()
   try:
      md = NXCObjectModificationData(node.getObjectId())
      md.setSnmpVersion(SnmpVersion.V3)
      # Auth/priv set to SHA1/AES, change first number to:
      # 0 for none
      # 1 for MD5
      # 3 for SHA224
      # 4 for SHA256
      # 5 for SHA384
      # 6 for SHA512
      # Change second number to:
      # 0 for none
      # 1 for DES
      md.setSnmpAuthentication("login", 2, "authPassword", 2, "privPassword")
      session.modifyObject(md)
   except:
      print "Cannot change node configuration"


Best regards,
Victor
#379
General Support / Re: Telegram channel Issue
April 30, 2022, 09:38:14 AM
Hi,

please set debug level to 6 for tag ncd.telegram, try to send notification again, and check server log.

Best regards,
Victor
#380
Возможно используете не тот элемент на дашборде (DCI summary table судя по описанию) - надо использовать "table value" - он показывает значение конкретной таблицы.
#381
Quote from: semi-liquid on April 25, 2022, 09:11:58 AM
мне бы понять таки как в письмо воткнуть имя пользователя)

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


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


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

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

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


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

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


В readMaintenanceJournal можно передавать два дополнительных параметра - начало периода и конец периода, оба как UNIX timestamp.
#386
Ну в интернете как минимум oidview показывает наличие MIBa: https://www.oidview.com/mibs/10642/ZEBRA-QL-MIB.html - непонятно только как скачать, мне по ссылке "download" выдали только рекламу :)
Также встретил упоминание, что MIB файл можно сгенерировать прямо на принтере какими-то командами.
#387
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
#388
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
#389
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
#390
Можно сделать 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 на принтере