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
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
#6452
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
#6453
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
#6454
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
#6455
You mean to show container hierarchy in node selection dialog?

Best regards,
Victor
#6456
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
#6457
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?
#6458
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.
#6459
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
#6460
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
#6462
General Support / Re: Cannot get proxy working
June 15, 2010, 01:27:02 PM
Could you please post actual configs? Also, try to run agent on node (b) in debug mode (nxagentd -D 9) and post log file.

Best regards,
Victor
#6463
Poka ne udalos' povtorit' u sebja etu problemu. Na vihodnih budu testirovat' dal'she.
#6464
Most likely the problem is that default timeout for receiving data from agent is smaller then default connection timeout. I suggest to set connection timeout in port check subagent to some small value, and increase agent response timeout on server.

For example, to set agent response timeout to 5 seconds and connect timeout in port checker to 4 seconds, do the following:

Set server configuration variable AgentCommandTimeout to 5000;
Add the following to nxagentd.conf on node with port checker:

*portCheck
Timeout = 4000

Best regards,
Victor
#6465
Hi!

You do not have C++ compiler installed. You should install g++ package. Actual package name depends on Linux distribution you are using.

Best regards,
Victor