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

#6736
Похоже дальше надо вставлять отладочную печать в скрипт. Можно добавить в скрипт, чтобы он выводил результат не только на stdout, но и в какой-нибудь файл? Тогда сразу будет понятно, в какую сторону дальше копоть.
#6737
General Support / Re: Problem with agent netxms-0.2.27
August 12, 2009, 09:56:41 AM
When you start agent as standalone program, not as system service, you should not use -d option. So, to debug, you should use command

"C:\Program Files (x86)\NetXMS\bin\nxagentd.exe" -D -c "C:\Program Files (x86)\NetXMS\etc\nxagentd.conf" -M "192.168.0.1"

Best regards,
Victor
#6738
General Support / Re: Object tools - SNMP Table
August 12, 2009, 09:54:04 AM
Hi!

Yes, it's the same bug. I have added it to bug tracker (number 262) - it was not registered before.
The only way to add columns manually is to modify database (you can use existing table tools as an example) and then restart server.

Best regards,
Victor
#6739
Quote from: oleg on August 10, 2009, 07:09:55 PM
Добрый день!
Такой вопрос.
А как можно парсить логи имя которых не постоянно, а типа log090810.log? На следующий день соответственно log090811.log.

В имени файла можно использовать макросы:

%a   Abbreviated weekday name
%A   Full weekday name
%b   Abbreviated month name
%B   Full month name
%c   Date and time representation
%d   Day of the month (01-31)
%H   Hour in 24h format (00-23)
%I   Hour in 12h format (01-12)
%j   Day of the year (001-366)
%m   Month as a decimal number (01-12)
%M   Minute (00-59)
%p   AM or PM designation
%S   Second (00-61)
%U   Week number with the first Sunday as the first day of week one (00-53)
%w   Weekday as a decimal number with Sunday as 0 (0-6)
%W   Week number with the first Monday as the first day of week one (00-53)
%x   Date representation
%X   Time representation
%y   Year, last two digits (00-99)
%Y   Year
%Z   Timezone name or abbreviation
%%   A % sign

В нашем случае это будет log%y%m%d.log
#6740
Pohoze na bug v servere. Esli vozmozno, v moment zavisanija prodelat' sledujuschee:

1. na servere zapustit' komandu nxadm -i
2. V pojavivshejsja komandnoj stroke vidat' sledujuschie komandi:

show pollers
show queues
show mutex
show sessions
show watchdog
show flags

3. Prislat' vivod etih komand na [email protected]

Budem razbiratsja.
#6741
General Support / Re: Browser/Menu-Bug ?
August 06, 2009, 10:44:06 AM
Hello!

Mostly it's a traces of planned but not implemented functionality. Event menu does not working at all, as well as export menu. Print will work only in graphs.
We are actively working on completely new management console, which should become usable in a few month, so I don't want to spent time on improving existing console.

Best regards,
Victor
#6742
General / Re: Does anyone have developer document?
August 06, 2009, 10:37:30 AM
You can take a look at skeleton subagent - src/agent/subagents/skeleton. It can be used as a template for creating your own subagent.
For restarting specific services - you do not need any development for this, it can be done via configuration. You can define actions in agent and call them either from event processing policy or via object tools.
For storing additional information on server, you can either create your own additional table in database, or use object's custom attributes. Anyway, you will need to write small server module to handle this.

Best regards,
Victor
#6743
General / Re: Does anyone have developer document?
August 04, 2009, 11:52:36 AM
Hello!

Unfortunately, development documentation almost absent. There are document which describes communication protocol, but it covers only message format and small subset of commands. Also, there are some notes in doc/internal directory in source tree. And there are some comments in source code.

Of course, you can ask questions here, and I'll do my best to answer them. Maybe it will become a foundation for Development FAQ :) You can also consider ordering custom development from Raden Solutions (http://www.radensolutions.com).

Best regards,
Victor
#6744
Общие вопросы / Re: 0.2.27
July 28, 2009, 09:22:16 AM
Mi delaem sejchas polnostju novuju konsol', tam budet normal'nij log viewer s fil'trami. Ja skoro vilozu alpha-versiju. Sdelat' eto v staroj konsoli zajmet kuchu vremeni, i uze ne hochetsja ego tratit' na ustarevshij komponent.
#6745
Общие вопросы / Re: 0.2.27
July 27, 2009, 10:12:54 AM
Quote from: Alex on July 25, 2009, 02:21:41 PM
AnonymousFileAccess

Это часть недоделанного пока функционала для улучшения централизованной конфигурации агентов. Идея в том, что сейчас агент может при старте брать с сервера конфигурационный файл, однако иногда этого недостаточно - например, при настройке мониторинга логов парсеры описываются в отдельных файлах. Соответственно нужна возможность размещать на сервере произвольные файлы и забирать их. Поскольку указывать логин и пароль для доступа к этим файлам с агента не всегда удобно, выставив параметр AnonymousFileAccess в 1 можно будет разрешить доступ к ним без авторизации.


Quote from: Alex on July 25, 2009, 02:21:41 PM
Debug в меню View

Это view для отладочной информации клиентской библиотеки и консоли. В нормальной жизни не требуется, но при решении проблем может пригодится.

Best regards,
Victor
#6746
General Support / Re: Action Configuration
July 23, 2009, 11:16:04 AM
You can use %n macro in e-mail subject or body to insert node name. Full list of macros can be found in NetXMS User's Manual in section 10.6.

Best regards,
Victor
#6747
К следующему релизу постараюсь решить. Я примерно представляю, в каких ситуациях это может происходить, буду переделывать процедуру удаления.
#6748
Announcements / Re: NetXMS 0.2.27 released
July 21, 2009, 03:19:46 PM
Quote from: Anth0ny on July 21, 2009, 12:10:14 PM

(Извините, что на русском, но англоязычной аудитории судя по всему не интересно то, что интересно нам...)

Прекрасно! =)
Однако сразу в полный рост встают 2 вопроса:

1) Log monitoring improved - что именно improved? В каком месте и как этим пользоваться?
2) Built-in scripting language (NXSL) improved - опять же интересно, а что же именно изменилось и в чём отличие от предыдущего варианта?
3) Various minor improvements - краткость- сестра таланта, да =) Это изменения, которые мы не ощутим никоим образом?

1) Dolzen teper' korrektno rabotat' na Windows Vista i Windows 2008, a takze na vseh versijah s custom application log'ami i security logom.

2) Tam bili melkie izmenenija, oni obsuzdalis' gde-to na forume. V chastnosti, teper' mozno obraschatsja k custom attributam nodi naprjamuju po imeni (naprimer $node->my_custom_attribute).

3) Eto oznachaet "tochno pomnju chto chto-to delal, no chto imenno - ne pomnju" :) T.e. eto ispravlennije melkie bugi, kotorie ne bili zaregistrirovani v bugtracker'e, i raznogo roda nebol'shie izmenenija i uluchshenija.

Best regards,
Victor
#6749
Announcements / NetXMS 0.2.27 released
July 17, 2009, 12:23:00 PM
Hello all!

NetXMS version 0.2.27 is released.

Changes from previous release:

- Added support for SNMP version 3 (without encryption)
- Log monitoring improved
- Built-in scripting language (NXSL) improved
- Various minor improvements
- Fixed issues: #223, #249, #250, #252, #253, #254, #255, #256, #258

Best regards,
Victor
#6750
General Support / Re: System.Shutdown with delay
July 15, 2009, 05:11:34 PM
Quote from: Lars.Weimar on July 15, 2009, 05:01:06 PM
Step 1 ?

How can I define a new custom action in agent?
I install the agent on my machine. The agent create a directory in c:\NetXMS

You should edit agent's configuration file, usually C:\NetXMS\etc\nxagentd.conf and add line mentioned in previous post. You can edit agent's configuration directly from management console by right-clicking node object and selecting "Edit agent configuration" menu. After configuration file change you should restart agent.

Best regards,
Victor