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

#6496
Общие вопросы / Re: Linux GUI
March 10, 2010, 10:22:17 PM
GUI pod Linux poka net. Mi sejchas pishem novij portabel'nij GUI (ja cherez neskol'ko dnej vilozu preview), no projdet nekotoroe vremja, poka pojavjatsja vse funkcii starogo GUI. Nineshnij GUI napisan pod Windows s ispol'zovaniem MFC, tak chto sportit' ego vrjad-li udastsja. On rabotaet pod WINE, no eto konechno ne sovsem to.
#6497
A parametr Disk.Total(D:) sobiraetsja?
#6498
There are currently no management console for Linux. We are working on new portable management console (I'll publish a preview in a few days), but it will take some time until all functionality of existing Widnows console will be implemented.

Best regards,
Victor
#6499
Feature Requests / Re: Some new things
March 10, 2010, 10:14:29 PM
Hi!

Quote from: jdl on March 10, 2010, 07:19:21 PM
- When creating a node, reverse lookup would be interesting. Sometimes one knows the IP but not the FQDN. If you enter an IP @ and push "resolve" you get IP @ of localhost (the one running the console) and no name.

Currently, you can enter IP address as node name, press "Resolve" to fill IP address field with same value. If node has IP address as it's name, it will be resolved via DNS or agent at first configuration poll. But yes, reverse lookup in dialog could be useful.

Quote from: jdl on March 10, 2010, 07:19:21 PM
- when defining a new event processing rule, we hav eto close the window to get asked if we want to save the story. Would be nice to have a drop down menu with options (like duplicate rule, etc...) among which "save" to save the current config if relevant (if no change then greyed out ;-)

You can use main menu Policy -> Save policy or just press Ctrl+S.

Best regards,
Victor
#6500
General Support / Re: Action to return value
March 10, 2010, 09:53:45 AM
Hi!

In NXSL, you can use any integer value as boolean, where 0 means false and any-non-zero value means true. So, you can use errorCount attribute as boolean flag if you wish, like below:

if (dci->errorCount)
{
    // Processing if error
}
else
{
   // Processing if OK
}

You can also apply boolean logic operations to integer values, for example:

if (!dci->errorCount)
{
   // Processing if there are no errors
}


Best regards,
Victor
#6501
General Support / Re: NXML Script
March 09, 2010, 10:52:09 PM
Hi!

I'll post updated NetXMS User Manual in a few days - it will have chapter about NXSL programming.

Best regards,
Victor
#6502
A kak vigljadit parametr Disk.Total i chto propisano v pole "instance" dlja parametra so skriptom? Problema pohoze v tom, chto formiruetsja nepravil'noe imja parametra, i FindDCIByName vozvraschaet NULL.
#6503
Announcements / NetXMS 1.0.0-rc2 released
March 08, 2010, 01:53:36 PM
Hi all!

Vesrion 1.0.0-rc2 is out. It fixes some build problems found in rc1, and adds possibility to search objects by comments in Windows console.

Best regards,
Victor
#6504
Ja ispravil odin bag v configure i perepakoval 1.0.0-rc2 (https://www.netxms.org/download/netxms-1.0.0-rc2.tar.gz) - poprobujte novij variant.
#6505
Hi!

Yes, you can call library script from another library script in a same way.

I'll check script saving in MS SQL a bit later.

Best regards,
Victor
#6506
Hello!

It's very strange - there are no size limitation on scripts. What database you are using?

To call one script from another, called script must be in script library, and contain function(s) other than main(). Then in calling script you should add use statement, for example:

script in library, called my_script:


sub my_function()
{
   return "some value";
}


script in event processing policy:


use my_script;

sub main()
{
   value = my_function();
   // some further processing
}


Best regards,
Victor
#6507
Please try 1.0.0-rc2 (https://www.netxms.org/download/netxms-1.0.0-rc2.tar.gz) - this problem should be fixed.

Best regards,
Victor
#6508
General Support / Re: Action to return value
March 05, 2010, 05:10:49 PM
It will require changes in very important part of code, and in turn will require additional tests - and I wouldn't want to do this until 1.0.0 release. However, I have added new attribute to DCI object - errorCount - which you can use to check from NXSL if given DCI had data collection error. This attribute will be 0 if last poll was completed succesfully, or > 0 if there was an error (will hold number of consecutive data collection errors).

Best regards,
Victor
#6509
General Support / Re: NXSL scripting
March 05, 2010, 12:55:30 PM
Hi!

It is backslash, so

println "\"";

for example will print single quotation mark character. Maybe there are other error in your script?

Best regards,
Victor
#6510
General Support / Re: skip modem from monitoring
March 03, 2010, 11:55:46 AM
Quote from: iwi on March 03, 2010, 11:43:02 AM
I thought I read the manual, but I only see %1-%99 events parameter numbers 1..99, but how can I determin what which number does? Is this the ID from Event Editor?

Numbered parameters are event-dependent, you can open Control Panel -> Events, open event of interest, and look at the description - for all predefined events there are list of parameters.

Best regards,
Victor