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

#706
Did it create another log file nxreportd.log? What Java version you have installed?
#707
Hi,

found it - for some reason installer sets "login as" for reporting service to "LocalService" account instead of "LocalSystem". Change "login as" to local system and it should start.

Best regards,
Victor
#708
Hi,

some comments in no particular order.

1. Why use regexp within if:

if (not ($container->name match "^Site:(.*)"))

It could be useful if you put this code into library and re-use in multiple containers. If you by mistake call it on container with wrong naming scheme it will just exit immediately.

2. trace() function writes to server log file, so you can just monitor netxmsd log. First argument is debug level, with 0 being "info" level message (always logged). If you want to show something in event monitor you can create new event (for example call it SCRIPT_OUTPUT) with message field set to %1, and then use the following code to trace:

PostEvent($object, "SCRIPT_OUTPUT", null, "Debug output here");
[code]
New event will appear in event monitor with message set to whatever debug message you put in a call.

3. Line
[code]
if ($node == SeedRouter->name)

will never work - $node is a node object, and SeedRouter->name is a string. You should use

if ($node->id == SeedRouter->id)


4. I mostly use "execute server script" for script debugging. For additional objects like $container in this case I just add temporary line like

$container = FindObject("test container");


5. It is possible to dump all attributes and methods of an object. For example, to dump all attributes of $node:

for(a : $node->__class->attributes)
   println(a . " = " . $node->__get(a));

or all methods:

for(m : $node->__class->methods)
   println(m);


Best regards,
Victor
#709
Announcements / Re: NetXMS 3.8 released
February 15, 2021, 12:40:38 PM
You should add it to config of agent that is used for web service query. By default it is local agent on NetXMS server machine.

Best regards,
Victor
#710
Да, нужен, просто несколько завалило делами. В принципе завтра/послезавтра я могу подключится и посмотреть, тогда к следующему  патч релизу сделаем исправления в драйвере. Пишите в личку про доступ. Спасибо!
#711
Можно попробовать скопировать JRE 11 в каталог, где лежит nxmc.exe, под названием jre. Т.е. будет такая структура

some_dir
  nxmc.exe
  jre
     bin
        java.exe

#712
There are multiple ways of doing this. Below is auto bind script that illustrates one approach:


if (not ($container->name match "^Site:(.*)"))
   return false;
router = FindObject($1);
if (router == null)
   return false;
for(rp : router->parents)
{
   if (classof(rp) == "Subnet")
   {
for(np : $node->parents)
   if (np->id == rp->id)   // Same object
      return true;
   }
}
return false;


This script assumes that container is called "Site:RouterName", so it extracts name of the router object from own name. You can choose whatever method of router identification that suits you best. Then it checks all subnets this router belongs to, and binds all nodes from those subnets (including itself). For practical use you may have to add additional filters on what subnets to consider.

Best regards,
Victor
#713
You can go to "Entire Network" subtree and under appropriate subnet object you'll find all nodes within that subnet.

Best regards,
Victor
#714
Do you have reporting related logs in C:\NetXMS\log? Also, when exactly you get this error - when trying to start reporting service from Service Manager? Did you choose "hardening file system permissions" during installation?

Best regards,
Victor
#715
General Support / Re: After upgrade to 3.8.120 all empty
February 15, 2021, 10:18:09 AM
Try to login with system user - maybe there is some issue with objects access rights.

Best regards,
Victor
#716
Set debug level on agent to 6 and check agent's log for SSH related messages.

Best regards,
Victor
#717
Hi,

you should enable web service proxy on agent by adding
EnableWebServiceProxy = yes
to config.

Best regards,
Victor
#718
Announcements / Re: NetXMS 3.8 released
February 15, 2021, 10:14:17 AM
Hi,

you should add to config file of your agent the following line:

EnableWebServiceProxy = yes

This change was done for improving security. Before 3.8 read access to agent allows you to do port scan (by requesting URLs with different service types and port numbers) and even local file access (using file:// URLs).

Best regards,
Victor
#719
Hi,

reporting server is now included as part of Windows server installer, so if you select to install it it should be properly configured as Windows service. We also did lot of internal changes to improve stability. For each report being run server now prepares view for accessing all DCIs on all nodes according to access rights of the user that starts the report - this greatly simplifies creation of DCI based reports (like top nodes with highest CPU usage, etc.). We plan to add some standard reports to the package in one of patch releases.

Best regards,
Victor
#720
Announcements / Re: NetXMS 3.8 released
February 11, 2021, 06:45:31 PM
Thank you!

We have unexpected issues with deb packages, working on it.

Best regards,
Victor