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

#3436
Странно что не рисует, это обычный DCI. А устройство репортит уровен заряда? На закладке Overview должно быть.

По запущенным программам инфа пока не собирается.

Для конвертации времени можно использовать функцию strftime в transformation script, например так:

return strftime($1, "%d.%b.%Y %H:%M:%S");

Спецификаторы формата стандартные из C, можно посмотреть например здесь: http://www.cplusplus.com/reference/ctime/strftime.

Для определения жив телефон или нет я использую DCI "Seconds since last report" который получается из "Last report time" таким скриптом:

return time() - $1;

И на него ставлю threshold, скажем > 600 - телефон ен отвечает более 10 минут, генерим аларм.
#3437
General Support / Re: Writing my own network driver
October 10, 2014, 11:02:31 AM
Thank you! I'll try to use it later today.

Best regards,
Victor
#3438
General Support / Re: SNMP source port
October 09, 2014, 11:38:13 AM
You have to wait for 1.2.17 release :) Alternatively, you can download current development snapshot and test it.

Best regards,
Victor
#3439
General Support / Re: Agent's Connectivity
October 06, 2014, 05:31:23 PM
Hi,

connections are from server to agents so it is server supposed to restore connections. Did you try manual status or configuration poll on any node?

Best regards,
Victor
#3440
General Support / Re: Debian package installation
October 06, 2014, 05:29:45 PM
Currently it's not possible with web UI. For 1.2.17 I've added new command line / URL option "dashboard=" to both desktop and web console to automatically open given dashboard (specified by dashboard object ID or name). It is already described in Autologin for Management Console on our wiki.

Best regards,
Victor
#3441
General Support / Re: Writing my own network driver
October 06, 2014, 04:22:15 PM
Yes, that will help.

Best regards,
Victor
#3442
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
#3443
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
#3444
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
#3445
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
#3446
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
#3447
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
#3448
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
#3449
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
#3450
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