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

#5041
Общие вопросы / Re: Баги 1.2.3
October 04, 2012, 09:09:11 AM
Quote from: SKYnv on October 01, 2012, 02:56:52 PM
постоянно сыпляться
QuoteSql query failed commands out of sync you can't run this command now

поиск выдал примерные причины
http://www.mysql.ru/docs/man/Commands_out_of_sync.html
http://habrahabr.ru/post/21326/

А какие именно запросы?
#5042
Общие вопросы / Re: Баги 1.2.3
October 04, 2012, 09:08:17 AM
Quote from: SKYnv on October 02, 2012, 12:32:09 PM
на вики присутствует
QuoteNumberOfBusinessServicePollers     A number of threads responsible for business service (SLA) monitoring.     10     Yes
в конфиге создающимся по умолчанию отсутствует.

Спасибо, поправил.
#5043
Sorry, I completely forgot about it :( Now added as an issue to bug tracker (https://www.radensolutions.com/chiliproject/issues/128) - will try to implement it in few days.

Best regards,
Victor
#5044
General Support / Re: Nagios plugin
October 04, 2012, 08:56:16 AM
Hi!

Few clarifications:

1. There are no difference between ExternalParameter and ExternalParameterShellExec on UNIX/Linux. They only behave differently on Windows.

2. There are two timeouts that must be taken into consideration:
a) ExecTimeout on agent - timeout for executing external program
b) AgentCommandTimeout on server - timeout for any command sent from server to client

In general AgentCommandTimeout must be greater or equal to ExecTimeout.

Also, if you have couple of external parameters with possible long collection time, you may create wrapper script to get them all at once and use it as external parameters provider - see wiki for details: http://wiki.netxms.org/wiki/ExternalParametersProvider.

Best regards,
Victor
#5045
Feature Requests / Re: Multipliers on charts (Y axis)
October 04, 2012, 08:45:27 AM
Multipliers on charts implemented in 1.2.4.

Best regards,
Victor
#5046
Hi!

Try to change speed in port's settings. Generic driver uses 9600 by default, and I've seen cases where GSM modem was not working on speed below 38400. Make sure that speed in port settings match configured port speed in SMSDrvConfig parameter.

Best regards,
Victor
#5047
General Support / Re: NXSL script help
October 01, 2012, 06:41:14 PM
Hi!

Quote from: tivanni on October 01, 2012, 02:18:30 PM
when I add a filtering script to the event processing policy, where i can found the output of the print/println command?
If i add a print or a println command to the filter script, when the event occuor i can't find the output in the remote console server or in the server console or in other way.

You should use trace() function to write messages to server's log.

Quote from: tivanni on October 01, 2012, 02:18:30 PM
Another questions...in the filtering script of event processing policy, can i put directly the code?Or, have I to add the declaration of the main (sub main(){etc )

Yes, you can write code directly. Defining main() is not necessary. Also, the following code is also valid:


trace(0, "main() starts here");

sub someFunction()
{
}

trace(0, "main() continues here");


Quote from: tivanni on October 01, 2012, 02:18:30 PM
I have to create a filter script that send the alarm's mail for an interface down for only specific interface...
I tried to insert in the event processing police as source the specific interface, but did'nt work; so i use as source the switch and i wanna to add a filter script that select for which interface the alarm's mail have to start. Any suggestion?

Source of interface down event is the node. You can filter events using script by interface name or index. For example, to pass SYS_IF_DOWN events only for interface named "eth2", you can use the following script:


return $2 == "eth2";


We use $2 here because interface name passed as second parameter with SYS_IF_DOWN event. You can see this from event description:

Generated when interface goes down.
Please note that source of event is node, not an interface itself.
Parameters:
  1) Interface object ID
  2) Interface name
  3) Interface IP address
  4) Interface netmask
  5) Interface index

Best regards,
Victor
#5048
General / Re: Agent.Ping: StdDeviation
September 28, 2012, 07:29:58 PM
Hi!

I incorporate patch into the trunk. Thank you!

Best regards,
Victor
#5049
General Support / Re: Raspberry Pi - Wallboard Deployment
September 28, 2012, 01:55:03 PM
Hi!

I have added command line options to nxmc.exe to allow automatic connect. New options are:

-auto - connect automatically
-server=address - set server address
-login=login_name - set login
-password=password - set password

These changes will be included in 1.2.4 release. If you need them urgently, contact me.

Best regards,
Victor
#5050
Most likely instance will not be 0 in that case, but 1, 2, 3 or anything else. You can use MIB explorer to find exact OIDs - just find .1.3.6.1.4.1.2021.10.1.3 in MIB tree, right-click on it, select "Walk", and see the results.

Best regards,
Victor
#5051
Общие вопросы / Re: Баги 1.2.3
September 26, 2012, 06:45:28 PM
Poprobuju povtorit' u sebja segodnja vecherom.
#5052
Hi!

ICMP response time measured in milliseconds. I doubt that it is possible or useable to use higher precision for that.

I'm not sure about NagVis, never work with that. Depending on how it collects data it could be possible. However, NetXMS has it's own network map implementation, so why do you need to integrate it with NagVis?

Best regards,
Victor
#5053
Hi!

Yes, there was an error in the makefile for odbcquery subagent. Current svn trunk contains fixed version.

Best regards,
Victor
#5054
Hi!

Did you install agent from deb package or by compiling source? What is the output of

ldd /usr/lib/libnsm_odbcquery.so

?

Best regards,
Victor
#5055
Конструкция вида


uint32(value);


смысла не имеет - возвращается преобразованное значение, которое выбрасывается. Тогда надо писать так:


value = uint32(value);


По сути type cast можно рассматривать как специальные функции - они принимают одно значение и возвращают преобразованное значение.