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

#6451
It takes a bit more time :) Updated libnetxms.dll can be downloaded from here: https://www.netxms.org/download/patches/006/libnetxms.dll. It now uses QueryPerformanceCounter for time interval measurement. You can replace existing libnetxms.dll with new one and test agent.

Best regards,
Victor
#6452
We cannot change GetCurrentTimeMs in that way, because it is supposed to return current time since epoch in milliseconds, and timeGetTime returns time since system start. We need to replace call to GetCurrentTimeMs with timeGetTime or QueryPerformanceCounter inside IcmpPing function. I'll create patched libnetxms.dll this evening and post it for testing.

Best regards,
Victor
#6453
General Support / Re: Send SMS Text Alerts
June 29, 2010, 01:18:53 PM
Hi!

How do you connect your modem? Directly to the NetXMS server or to remote node? In first case, you have to load generic.sms driver on server (by setting SMSDriver server configuration parameter) and specify COM port in SMSDrvConfig server configuration parameter. If you connect modem to remote node with agent, you should load sms.nsm subagent on this node, and use nxagent.sms instead of generic.sms on the server. In that case you should set SMSDrvConfig parameter to remote node IP address.

Also, there are known problem with Huawei E220 modem - it doesn't sent messages with backslash in text. I don't know how E226 differs from E220, so maybe E226 also affected.

Best regards,
Victor
#6454
A chto pishet esli sdelat' Poll->Configuration iz konsoli?
#6455
Hi!

You code was correct, it's very strange that it was not working. Adding an empty string should not change result. I suspect bug in NXSL interpreter, but I was unable to reproduce this on my test system - both

server_name = "" . plaza . ".se";

and

server_name = plaza . ".se";

gives the same correct result in my test script.

Best regards,
Victor
#6456
Hi!

You use variable plaza in your code, but how you initialize it? If you wish to use something based on DCI's node, the only way to access node's attributes is via $node variable. So, for example, if you wish to add "-server" suffix to current node's name and find that node, you should use code like this:


server = FindNodeObject($node, $node->name . "-server");


Best regards,
Victor
#6457
Hi!

Now you can add any DCI configured on node to performance tab via DCI configuration. Open data collection editor, go to DCI properties, and on "Performance Tab" tab check "Show on performance tab" option.

Best regards,
Victor
#6458
General Support / Re: Monitor heartbeat?
June 22, 2010, 04:18:42 PM
Hi!

You can create threshold on data collection error - it will fire if DCI not being updated due to communication failure or agent error - and then process event generated in this case as usual.

If you need to monitor push DCI then you can create another DCI and use transformation script to monitor last poll time, status, or error count of first DCI. For example, if you have DCI for parameter "PushParameter", you could create second DCI with source "Internal" and parameter "Dummy" and use the following transformation script:

sub main()
{
   dci = GetDCIObject($node, FindDCIByName($node, "PushParameter"));
   return time() - dci->lastPollTime > 120;  // Replace 120 with required interval in seconds
}

And set threshold for value 1 - it will indicate that there were no new values for 120 seconds.

Alternatively, you can return difference between current time and last poll time:

return time() - dci->lastPollTime;

and specify required interval in threshold.

Best regards,
Victor
#6459
You mean to show container hierarchy in node selection dialog?

Best regards,
Victor
#6460
It is not supported yet. We planning to add this functionality, and it is partially implemented (called zoning in NetXMS). I'll think about possible workaround.

Best regards,
Victor
#6461
Dovol'no stranno. NetXMS dobavljaet "NAT adapter" v tom sluchae, esli IP address, po kotoromu server podkljuchilsja k agentu, otsutstvuet v spiske interfejsov, poluchennih s agenta. Obichno eto bivaet v sluchae, esli podkljuchaemsja k agentu cherez NAT, poetomu i "NAT adapter". A esli sdelat' prinuditel'nij configuration poll s konsoli, chto proishodit?
#6462
SVjazano v pervuju ochered' s tem, chto rabota s USB delaetsja sovershenno po raznomu v Windows i Linux, i s Linux'om ja nikak ne doberus' razobratsja. V principe vopros dolzen bit' reshaemij, skoree vsego eto mozno sdelat' s ispol'zovaniem libusb (http://www.libusb.org/). Esli est' vremja i zelanie dobavit' podderzku USB pod Linux, budet ochen' horosho.
#6463
General Support / Re: MIB Import error
June 17, 2010, 10:55:14 AM
Hi!

Attached is corrected MIB file. There was missing import for PhysAddress. I have added

    PhysAddress
        FROM SNMPv2-TC;

to the end of IMPORTS statement.

Also, not related to this issue, but please be aware that nxmibc places resulting netxms.mib into current directory, so if you running it form place other then c:\netxms\var\mibs, you should either specify correct output file with -o switch or copy netxms.mib to correct location after compilation.

Best regards,
Victor
#6464
General Support / Re: Long OID's
June 16, 2010, 12:04:49 PM
Hi!

There are limits in code as well. I'll register an issue in our bugtracker (https://www.netxms.org/bugtrack/view.php?id=301) and will change this limit in future versions.

Best regards,
Victor