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

#6571
General Support / Re: Error in solaris 10 installation
February 08, 2010, 09:53:42 AM
Hi!

Currently, --enable-unstable only enables ODBCQUERY subagent. If you ever need it, you will have to install UNIXODBC first, and then it should compile as well.

Best regards,
Victor
#6572
General Support / Re: Action to return value
February 07, 2010, 06:28:54 PM
Hi!

Quote from: borislavl on February 06, 2010, 02:33:48 AM
1.Is there a better way for monitoring the 2 way connection between the NetXMS servers?

One possible alternative is to check remote port 4701 via portcheck subagent.

Quote from: borislavl on February 06, 2010, 02:33:48 AM
2.Is there performance issue if events (logging unchecked) are generated on short interval (i.e. 5 sec)?

Should not be. Event processing is usually very fast. Btw, it is one of the reasons why direct data collection not allowed in event processing policy's scripts.

Quote from: borislavl on February 06, 2010, 02:33:48 AM
3.What is the code in NXSL to access the last DCI?

What you mean by "last DCI"?

Quote from: borislavl on February 06, 2010, 02:33:48 AM
4.What is the code to access the last DCI collected timestamp?

It's not possible in 0.2.31. However, I have added new function GetDCIObject which returns reference to object containing all DCI's attributes, including last poll timestamp.

Quote from: borislavl on February 06, 2010, 02:33:48 AM
5.In DCI Transformation, using NXSL, can we use other other DCI value and based on both to return value (i.e. true or false), which to be used in the thresholds (to generate event).

Yes, you can access other DCIs values via FindDCIByName, FindDCIByDescription, and GetDCIValue functions. If you creating computed DCI, sometimes it can be useful to use Internal Dummy parameter as a source and read values of all relevant DCIs in transformation script.

Best regards,
Victor

P.S. Example of calculated DCI: https://www.netxms.org/forum/index.php/topic,289.0.html
#6573
General Support / Re: Questions about UPS
February 07, 2010, 04:11:18 PM
You should pass device number you have specified in Device= parameter. For exasmple, if you have

Device = 0:ANY:USB

in your config, then you should use for example UPS.SerialNumber(0).
Could you please post your agent's config? Also, try to tun agent in debug mode (with -D switch) and see if there area additional UPS-related messages.

Best regards,
Victor
#6574
General Support / Re: Error in solaris 10 installation
February 06, 2010, 06:03:24 PM
Hello!

How do you run ./configure? odbcsapi.cpp is a part of odbcquery subagent, which compiles only if --enable-unstable is set. Try to run configure without that switch.

Best regards,
Victor
#6575
General Support / Re: NetXMS agent accross networks
February 04, 2010, 07:32:59 PM
No, the only requirement is that agent should be reachable by IP. Try to run remote agent in debug mode (nxagentd -D) to see if connections comes to agent. Don't forget that if NetXMS server is multihomed or there are NAT between server and agent, you may need to specify different IP address under MasterServers in agent's configuration file.

Best regards,
Victor
#6576
Yes, it's libnxsms_nxagent.so on Linux and nxagent.sms on Windows.

Best regards,
Victor
#6577
Общие вопросы / Re: Мониторинг
February 04, 2010, 01:38:42 PM
1. Только при помощи дополнительных внешних скриптов.
2. нет
3. нет
4. это возможно - выбираем шаблон, делаем unbind, выбираем ноду, которую хотим убрать. После этого система спросит, что делать с DCI, созданными через шаблон - удалить или отвязать от шаблона.

При следующем зависании сервиса, попробуйте пожалуйста подключится к сервису командой nxadm -i, дайте команду dump, и пришлите получившийся дамп на [email protected] - попробуем разобраться.
#6578
Общие вопросы / Re: Scripting Language (NXSL)
February 04, 2010, 01:32:05 PM
Так вообще-то не должно быть. А какой тип данных стоит у DCI? Должен быть unsigned integer - тогда он будет правильно обрабатывать значения, боль шие чем 2 в степени 31, и переходы счетчика через 0.
#6579
General Support / Re: How to Create a DCI
February 04, 2010, 01:24:26 PM
Hi!

Because your application written in Java, in process list you will see only a bunch of Java VM processes. If you don't have some API to determine if your application is still running, I see the only way is to determine full command line for each of your applications, and if they are differs, then you are lucky and can monitor if each application is running by using Process.CountEx parameters.

Best regards,
Victor
#6580
General Support / Re: SMS sending via Agnet COM port
February 04, 2010, 01:20:46 PM
Hello!

You should configure nxagent.sms as your SMS driver on server, and as SMSDrvConfig, set IP address of NetXMS agent where phone is attached.
On agent, you should load sms.nsm subagent, and set port for phone communication via Device parameter in SMS section. For example, for phone connected on COM1:


# main section here
SubAgent = sms.nsm

*SMS
Device = COM1:


Best regards,
Victor
#6581
General Support / Re: Questions about UPS
February 04, 2010, 01:15:05 PM
Yes, but only on Windows. To add USB UPS, use the following syntax:

Device = 1:ANY:USB

if you have only one USB UPS attached, and

Device = 1:<UPS serial number here>:USB

if you have multiple USB devices.

Best regards,
Victor
#6582
You have to edit conf files if you wish to execute commands remotely via NetXMS agent. In that case you should add appropriate Action entries in agent configuration files.

Best regards,
Victor
#6583
Hello!

To run command on management server itself, you don't need to change server's configuration file. You just need to specify your executable under "Command". If you wish to run .bat or .cmd file, you may need to use form of

cmd.exe /C <your_cmd>

Executable can be located anywhere, but if it is not in system PATH, you should add full path to it when defining action.

Best regards,
Victor
#6584
General Support / Re: Action to return value
February 02, 2010, 06:26:19 PM
Hi!

Your setup is very impressive :) It was a pleasure to read your post :)

Quote from: borislavl on January 29, 2010, 08:38:35 PM
The idea of pushing events between the servers is very good and helpful. Is there a other way to transfer values?

Not yet (except action + push mechanism you already using). I plan to add support for full-scale distributed monitoring, event forwarding is a first step in this direction.

Quote from: borislavl on January 29, 2010, 08:38:35 PM
Is the Event processing the only way of setting the Situation attributes?

Yes.

Quote from: borislavl on January 29, 2010, 08:38:35 PM
Can we for example do something like: s->status = "updated" (s - situation)?

Not yet. But it's very easy to implement, so I'll add it until next release.

Quote from: borislavl on January 29, 2010, 08:38:35 PM
Can we see the current Situation attribute state in NetXMS console?

Yes, via View -> Situation. You should see situations - instances - attributes tree.

Quote from: borislavl on January 29, 2010, 08:38:35 PM
Is there a way to change Custom Atributes?

Only manually via console, or by writing your own tool via C or Java API.

Quote from: borislavl on January 29, 2010, 08:38:35 PM
Can we send parameters to the actions?

Yes (I suppose you mean actions on agents). In action definition you can use placeholders $1, $2, etc. - they will be replaced by appropriate parameter. Parameters should be separated by space - like for calling external command. For example, you can define on agent:

Action = Test:echo $1

and on server define remote action like

Test "%n"

Of course, if security is not a concern, you can define "universal" action like this:

Action = Execute:$1 $2 $3 $4 $5 $6 $7 $8 $9

and then just use any command you want without defining additional actions, like

Execute /my_script "%n" "%m"

Quote from: borislavl on January 29, 2010, 08:38:35 PM
Can we write DCI value to a file (using actions)?

Yes. You can call action with a parameter with macro expansion using NXSL, and access DCI data for current node as usual.

Best regards,
Victor