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

#4246
General Support / Re: DCI for Bits/s
October 16, 2013, 08:53:30 AM
Actually, there are no easy way to achieve what you want. You can do mass change using nxshell script, but it's not very easy anyway. I will add an option to "Create interface DCI" dialog to use bits instead of bytes (https://www.radensolutions.com/chiliproject/issues/390).

Best regards,
Victor
#4247
Если у ноды поменялся IP, то сервер узнает об этом только если как primary host name указан DNS адрес, тогда при следующем configuration poll primary IP address изменится. Еще сервер должен определять новый IP по MAC адресу, но это работает только в том случае, если включен network discovery (и если он у ва с включен, то это баг, поскольку виден новый IP через ARP). Установка агентов не поможет, поскольку сервер не знает о смене IP.
#4248
А на рабочей станции какое время и time zone? Сервер передает всегда UTC время на консоль, и это уже консоль переводит в локальное время клиента. JRE не меняли на клиенте в последнее время?
#4249
Наверное все-таки баг :) Добавил в план исправить в 1.2.10 (https://www.radensolutions.com/chiliproject/issues/389).
#4250
Похоже что по какой-то причине для обьекта не была создана таблица idata. Попробуйте создать ее вручную:

CREATE TABLE idata_1064 (item_id integer not null,idata_timestamp integer not null,idata_value varchar(255) null);
CREATE CLUSTERED INDEX idx_idata_1064_id_timestamp ON idata_1064(item_id,idata_timestamp);
#4251
Скорее всего он через SNMP возвращает интерфейсы, но не IP адреса. Можно прислать полный SNMP walk по устройству?
#4252
General Support / Re: GetAvgDCIValue not working?
October 11, 2013, 04:14:07 PM
So strange... Can you please post actual results from SQL query and some plain values (with all spaces, etc. - I suppose that maybe results are parsed incorrectly)?
#4253
А соственно интерфейс под датчиком есть? И если да, то есть ли у интерфейса IP адрес?
#4254
Сделал у себя простой тест - все отработало как надо. Пришлите пожалуйста свой шаблон (через экспорт конфигурации).
#4255
General Support / Re: segfault
October 11, 2013, 11:51:49 AM
Are you sure you apply patch and rebuild server correctly? It crashes in same place as if it was not patched. How line 389 in src/server/core/dctable.cpp looks like now?

Best regards,
Victor
#4256
General Support / Re: GetAvgDCIValue not working?
October 11, 2013, 11:49:02 AM
Hi!

That's very strange. I just install MySQL 5.1 server, create new database, create dummy DCI of type "integer" with transformation script


return 22;


If I run the following script from console:


startTime = time() - 1800;
object = FindNodeObject(null,"HP8570W");
trace(0, "*** VALUE: " . GetAvgDCIValue(object, FindDCIByDescription(object,"TEST"), startTime, time()));


I got expected results:


netxmsd: exec avg
[11-Oct-2013 11:46:17.797] [INFO ] *** VALUE: 22.000000
INFO: Script finished with rc=0


Can you re-test it with some another DCI?

Best regards,
Victor
#4257
General Support / Re: segfault
October 11, 2013, 09:27:51 AM
Hi!

Can you provide me a stack trace from debugger?

Best regards,
Victor
#4258
General Support / Re: TLS SMTP problem
October 09, 2013, 11:58:40 AM
Hi!

NetXMS server uses SMTP protocol to deliver mails. If it is unable to communicate with your post server directly, you can install local SMTP server (mail client is not enough), configure NetXMS to use 127.0.0.1 as SMTP server, and just forward everything from your local SMTP server to your real mail server. On Debian Postfix could be right choice. This is short document on how to configure Postfix to forward everything to mail gateway: http://marcelog.github.io/articles/configure_postfix_forward_all_email_smtp_gateway.html

Best regards,
Victor

#4259
Я бы посоветовал проверку на пусто/не пусто делать как

($6 != "") || ($7 != "")

иначе она не сработает если параметр будет, но не числовой.
#4260
Windows / Re: Problem exporting the binaries in eclipse
October 08, 2013, 12:06:27 PM
Hi!

Are you using product specification (nxmc.product)? I'm not sure you can just export plugin as application. Also, check that plugins specified in your product configuration file are the same as in your run configuration in Eclipse.

Best regards,
Victor