News:

We really need your input in this questionnaire

Main Menu
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

#6226
Общие вопросы / Re: Trap/VarBind
December 20, 2010, 10:46:19 PM
V internete nashel tol'ko takuju informaciju po etomu varbindu:

swL2macNotifyInfo   OBJECT-TYPE
        SYNTAX  OCTET STRING(SIZE (0..1024))
        MAX-ACCESS  read-only
        STATUS  current
        DESCRIPTION
            "This object indicates the last time reboot information.
            "
        ::= { swl2NotificationBidings 1 }   

V ljubom sluchae pohoze chto tam ne tekstovaja informacija. Esli znat' format, to mozno poprobovat' preobrazovat' ee v normal'nij vid pri pomoschi NXSL skripta. Esli ne pomozet, to nado budet delat' patch - v ljubom sluchae polezno budet dobavit' normal'nij processing binarnih dannih v varbindah. Bilo bi ochen' polezno uznat' bse ze detal'nij format etogo polja, po baitam - skol'ko bait kakaja chast' zanimaet i v kakom formate hranitsja.
#6227
So you are trying to build agent for WinCE? Then yes, you need to compile it in UNICODE, because WinCE lacks non-unicode versions of most API calls.
#6228
Общие вопросы / Re: Trap/VarBind
December 20, 2010, 02:02:23 PM
Vrode vse pravil'no. Esli viden kvadrat v tekste, to scoree vsego octet string soderzit nepechataemij tekst. Octet string ne objazatel'no oznachaet stroku, naprimer MAC adres toze vozvraschaetsja kak octet string. A mozno bilo bi prislat' opisanie trapa?
#6229
You can use wget to get content of a web page. For example, the following externa parameter returns version listed on NetXMS download page (https://www.netxms.org/download):


ExternalParameter = WebVersion:wget -qO- https://www.netxms.org/download | perl -e 'while(<>) { chomp $$_; if ($$_ =~ /stable version is ([0-9\.]+)\,/) { print "$$1\n"; } }'


Please note, that original shell command looks like


wget -qO- https://www.netxms.org/download | perl -e 'while(<>) { chomp $_; if ($_ =~ /stable version is ([0-9\.]+)\,/) { print "$1\n"; } }'


but you need to duplicate $ symbol, because it is used for macro expansion in external parameter configuration.

Result of this parameter looks like following:


netxms:~ # nxget 10.0.0.90 WebVersion
1.0.8
netxms:~ #


Best regards,
Victor
#6230
General Support / Re: File keyword and process search
December 20, 2010, 12:35:33 PM
Yes, you are right - logwatch looks for new records in file. But why you need to look repeatedly for old records in a file?

Best regards,
Victor
#6231
General Support / Re: Agent PDH.CounterValue
December 20, 2010, 11:37:10 AM
Hi!

Counter name must be enclosed in quotes, like this:

PDH.CounterValue("\Web Service(Microsoft Dynamics CRM)\Total Method Requests")

because counter name contains brackets, and without quotes agent cannot parse parameter correctly.

Best regards,
Victor
#6232
Hi!

At a first glance, looks like you will need some external script. With built-in mechanisms, you can only check for entire page changes using ECS subagent. This subagent provides parameter which returns hash for given URL - so you can detect change in that page, but you cannot determine what part of the page was changed.

Best regards,
Victor
#6233
General Support / Re: File keyword and process search
December 20, 2010, 11:24:41 AM
Hi!

1. do you need to check for file existence or to search for some string inside the file? To check for file existence, you can use File.Count parameter - it returns number of files matching given name or pattern. To search for string inside file, you should setup logwatch subagent for that file.

2. Parameter Process.Count(process_name) will return you number of running processes with given name. You can schedule DCI to be collected once per hour, and generate event if it is running (or not running).

Best regards,
Victor
#6234
General / Re: Server Module development
December 20, 2010, 11:10:48 AM
Hi!

Yes, all custom messages comes to m_pMsgWaitQueue of AgentConnection. You can call waitForMessage in separate thread to wait for these messages and process them. For convenience, I have added new virtual methiod in AgentConnection class - processCustomMessage - which can be overriden in derived classes for processing custom messages. It will be avaiable since 1.0.9. Also, you can use CMD_TRAP message instead of custom one - then AgentConnection::onTrap will be called for each CMD_TRAP.

Best regards,
Victor
#6235
Hi!

Theoretically it is possible, but it will require a lot of work, because many places in agent code was written with usage of char instead of TCHAR, and because many system APIs on UNIX systems exist only in multi byte or event single byte form. I think that it can be relatively easy to convert Windows agent to unicode, and much harder to convert UNIX agent to unicode. Why you need unicode in agent?

Best regards,
Victor
#6236
Feature Requests / Re: Apache Java RADIUS and RDBMS MIB
December 17, 2010, 12:55:53 PM
Hi!

1.0.9 is not released yet. I'll publish it in a few days.

Best regards,
Victor
#6237
General Support / Re: .deb package installation issues
December 17, 2010, 12:47:09 PM
Hi!

It's my first try to create .deb files. I plan to add interactive configurator later which will be started if configuration files are absent. I agree that for now at least a warning message is necessary. Will fix it for 1.0.9 release.

Best regards,
Victor
#6238
Feature Requests / Re: Apache Java RADIUS and RDBMS MIB
December 16, 2010, 02:38:50 PM
I have added these MIBs to standard MIB collection in NetXMS. There was few changes. Also, APACHE2-MIB cannot be compiled by current version of MIB compiler because of a bug. I have fixed this bug for 1.0.9.

Best regards,
Victor
#6239
Hi!

It's our main focus now. It's already available for preview, but it has around 50% of required functionality implemented, and still cannot be full replacement for old console. However, early testing and feedback are welcome :)

Best regards,
Victor
#6240
Hi!

I have applied your patch, next release will have it. However, it will not solve all problems, because there are many places in server code where problems can occur if multibyte encoding is used. The only complete solution is to build server with unicode support. I've just finished converting server to unicode support - all 1.1.x versions will be built using unicode. I will not backport this to 1.0.x branch, as it is considered stable, and latest changes requires extensive testing. It will be great if you and other people from countries with non-latin alphabets can spend some time testing 1.1.x versions. I'll publish 1.1.0 installer on web site soon.

Best regards,
Victor

P.S. Attached is a screenshot of console where Latin, Cyrillic, Japanese, and Arabic characters used simultaneously (and was successfully stored in database).