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

#3421
General Support / Re: Native Agent not responding
October 03, 2014, 10:40:12 PM
Hi,

try to run manual configuration poll on these nodes. It should clear agent presence flag.

Best regards,
Victor
#3422
General Support / Re: NetXMS polling packets log
October 03, 2014, 10:37:45 PM
Hi,

the only option is to use tcpdump or WireSHark (depending on OS you are running server on). For tcpdump it could be like this:

tcpdump -s 65535 -w <file> udp and host <switch_ip> and port 161

all SNMP packets to and from switch should be in file you specify in -w option.

Best regards,
Victor
#3423
Hi,

in history view (right click on DCI value, select History) you should be able to select desired time range (in top right corner of history view press little down arrow and choose "Select data range..." from menu).

Best regards,
Victor
#3424
Hi,

that's very strange, because as you probably see in the code, all four functions share common implementation and only change SQL aggregate function. Can you please share exact data - actual DCI values, result of  GetAvgDCIValue and GetMaxDCIValue, and results of appropriate SQL queries?

Best regards,
Victor
#3425
General Support / Re: SNMP source port
October 03, 2014, 07:38:42 PM
Hi,

I've added additional named parameter "sourcePort" to all events generated from SNMP traps. You can access it via %<sourcePort> macro or using GetEventParameter($event, "sourcePort") call in scripts.

Best regards,
Victor
#3426
Hi,

I probably can add an escape mode for all external commands executed by server, which will replace new line characters with \n and so on.

Best regards,
Victor
#3427
General Support / Re: Debian package installation
October 03, 2014, 06:08:13 PM
Hi,

if Tomcat is on same server I would definitely suggest add more RAM. I would give 1GB to Tomcat alone. For netxmsd 1 GB is more then enough. You may also move Tomcat to separate machine if you want to isolate it and prevent it from accidentally affecting netxmsd.

Best regards,
Victor
#3428
Sorry, maybe I misunderstood you - you want to change object's name (rename it), or you want to change primary host name (which is used for communications)?

Best regards,
Victor
#3429
Hi,

script started from console do not have $node global variable set. Examples you find was intended for working as configuration poll hooks or other automated stuff. First script is correct, if you put it into script library under name Hook::ConfigurationPoll all nodes with SNMP sysname will be renamed after configuration poll.

Best regards,
Victor
#3430
Feature Requests / Re: nxalarm - commands
September 22, 2014, 08:53:24 PM
Hi,

I've added commands add-comment and get-comments to nxalarm. They will be available in 1.2.17 release.

Best regards,
Victor
#3431
Quote from: VolanD on September 22, 2014, 06:12:14 AM
1) При добавлении cisco-роутера появляются его интерфейсы и даже модули появляются. Но как посмотреть графики загрузки эти интерфейсов? Или их нужно добавлять руками? Еще вопрос про смену индексов на циске, т.е. получается netxms не опрашивает таблицу интерфейсов периодически? А если у инт-са сменится ИП или появится новый интерфейс?

Конфигурация интерфейсов опрашивается во время configuration poll, по умолчанию раз в час. При необходимости можно сделать configuration poll принудительно, через меню Poll -> Configuration на ноде. Единственно, NetXMS сервер лучше работает если индексы не меняются, поэтому при возможности стоит зафиксировать их на роутере (snmp-server ifindex persist).
Данные по трафику на интерфейсах автоматически не собираются, можно добавить для любого интерфейса через меню на объекте интерфейса "Create data collection items". Если хочется настроить автоматический сбор данных со всех доступных интерфейсов, можно сделать это через instance discovery - на форуме были примеры.


Quote from: VolanD on September 22, 2014, 06:12:14 AM
2) Можно ли с консоли управления запустить какую-нить команду относительно хоста и увидеть результат ее выполнения. Например, запустить пинг с ИПом узла и увидеть результат.

Можно, это называется "object tools". Надо сделать новый tool (через Configuration -> Object Tools в главном меню) типа "execute local command", в команде написать например

ping %OBJECT_IP_ADDR%

и включить опцию "command generates output". После этого можно выбирать команду в меню Tools на ноде и видеть результат в консоли.

Quote from: VolanD on September 22, 2014, 06:12:14 AM
3) Можно ли собирать данные с скрипта, который запускает сам сервер относительно этого объекта и выводить их на график. Есть оборудование, на него нет возможности поставить агента, а по SNMP оно некоторые данные не отдает. Можно написать скрипт который будет вытаскивать эти данные, но как их скормить серверу?

Можно. Надо сделать  ExternalParameter для скрипта на агенте, работающем на сервере мониторинга. После этого добавить параметр с источником "NetXMS agent" на ноде роутера, указать имя из ExternalParameter, и указать ноду сервера как "proxy node". Надо будет либо добавить ноду роутера в список trusted nodes у ноды сервера, либо выставить конфигурационный параметр CheckTrustedNodes в 0.
#3432
Hi,

I suppose that new line characters is the problem. I doubt that command line parser can handle them even inside quotes. Try to form message without new lines. If it helps, you can pass some other characters to indicate new lines and replace them in your script before sending SMS.

Best regards,
Victor
#3433
Hi,

I think that easiest way would be to monitor sysUpTime parameter and generate event of it is less than specific value or less then previous value. To do so, add new DCI with source set to SNMP and SNMP OID set to .1.3.6.1.2.1.1.3.0 (see attached scan). Then set threshold like "last value is less then 3000" (choose value appropriate for you) and set activation event to SNMP_REBOOT. It will fire if system uptime is less than 300 seconds (note that we use value 3000, because system uptime expressed in hundredths of a second), which means that device was just restarted. Threshold configuration screenshot is on attached scan.

Best regards,
Victor

#3434
Hi,

"%m" should work, although I didn't test it specifically with powershell scripts. When I test it with the following cmd script:


@echo off
echo %2 >> c:\temp\cmd.log


and action configured as

c:\\temp\\test.cmd parameter_1 "%m"

file c:\temp\cmd.log contains records like

"Node status changed to UNMANAGED"

Note that cmd script interprets " as part of parameter. Can you create a simple powershell script which will just log all command line parameters it got?

Best regards,
Victor
#3435
Hi,

can you provide a link to those MIBs that cannot be compiled? Also, do you have core file from nxdbmgr crsh? It can help fixing the issue.

Best regards,
Victor