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

#6526
Да, если пропали настройки, сделанные давно - это конечно к порядку остановки сервисов отношения не имеет. А что в логах сервера? Добавьте в netxmsd.conf строчку

LogFailedSQLQueries = yes

возможно какие-то SQL запросы не проходят.
#6527
Добрый день!

Если я правильно понимаю этот скрипт, при остановке сначала останавливается база данных, а уже потом netxmsd. Соответственно при выходе сервер может не записать какие-то данные из памяти, поскольку база уже остановлена. Правильная последовательность - дать SIGTERM процессу netxmsd, дождаться его завершения (в зависимости от ситуации это может занять какое-то время - до 30 секунд на больших базах), и только после этого останавливать базу.

Best regards,
Victor
#6528
General Support / Re: nxdbmgr not working with mysql
February 08, 2010, 09:57:24 AM
Hi!

If you are connecting to localhost, you should grabt access to database in this way:

GRANT ALL ON netxms.* TO netxms@localhost IDENTIFIED BY 'PaSsWd';

Because MySQL threats localhost connections differently. (MySQL page where this behavior is explained: http://dev.mysql.com/doc/refman/5.1/en/adding-users.html).

Best regards,
Victor
#6529
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
#6530
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
#6531
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
#6532
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
#6533
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
#6534
Yes, it's libnxsms_nxagent.so on Linux and nxagent.sms on Windows.

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

При следующем зависании сервиса, попробуйте пожалуйста подключится к сервису командой nxadm -i, дайте команду dump, и пришлите получившийся дамп на [email protected] - попробуем разобраться.
#6536
Общие вопросы / Re: Scripting Language (NXSL)
February 04, 2010, 01:32:05 PM
Так вообще-то не должно быть. А какой тип данных стоит у DCI? Должен быть unsigned integer - тогда он будет правильно обрабатывать значения, боль шие чем 2 в степени 31, и переходы счетчика через 0.
#6537
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
#6538
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
#6539
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
#6540
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