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 - Filipp Sudanov

#1501
General Support / Re: Agent Policies - File Delivery
January 31, 2020, 04:53:03 PM
Currently there is a bug in Mac console, that nothing happens when trying to add a file. If you are on mac, try console on linux or windows.

For this function to work, filemgr should be enabled in agent configuration and root folder(s) should be set:

SubAgent=filemgr.nsm
[FILEMGR]
RootFolder=C:\


In current version all folders along the path should exists on the target system. In future versions agent will create folders. Files are only sent to agents, they are not deleted, when removed from policy / renamed in a policy.

If you edit agent policy, the settings will get applied (files sent to agents) the moment, when you close the list of agent policies. They should also get applied on configuration poll. And in context menu of template there's an option "Force deployment of agents policies".
#1502
templates = $node->templates;
foreach(t : templates)
{
   if (t->name == "Windows") {
      $node->setMapImage("Windows");
      break;
   }
}
#1503
Логика такова, что диапазон для обнаружения элементов сети определяет только то, какие именно IP адреса сервер пробует, на маску подсетей, которые создадутся в Entire Network это не оказывает никакого влияния.
Маску сервер пытается получить с обнаруженных девайсов, но для этого нужно, чтоб девайс на девайсе был или агент или SNMP. Если устройство только ответило на пинг, но больше про него ничего не известно, то будет создана подсеть /24. Далее, если найдется хоть одно устройство, которое сообщит, какая у него маска, то сервер должен поменять маску на правильную.
Есть ли у вас там устройства, сообщающие свою подсеть. Если да, то стоит посмотреть в логах, что конкретно происходит при обнаружении.
#1504
You could create Hook::ConfigurationPoll script and change icon for node with NXSL script. It is necessary to specify GUID of image, currently in image library GUIDs are not visible, but will be visible starting from version 3.2 that should be out soon.
#1505
General Support / Re: service down and unable to start
January 24, 2020, 04:38:31 PM
Can you set DebugLevel=6 in netxms server configuration file and show what's in the log file?

Also, how did you create the database? Using NetXMS installer? Can you just attach a screenshot of netxms installer on the step called "Select database" with all the checkboxes in the state as you use them to created the database?
#1506
General Support / Re: service down and unable to start
January 24, 2020, 03:26:26 PM
There is a log file you can inspect to find the reasons. The exact file name is specified in NetXMS server's config file, usually it's  C:\NetXMS\log\netxmsd.log.

#1507
General Support / Re: cant get powershell script to run
January 23, 2020, 03:18:03 PM
What is your PS and Windows versions?
#1508
General Support / Re: failed to initializing db
January 22, 2020, 04:09:42 PM
Can you please attach a high-resolution screenshot and describe what you were doing:
- from what version you were upgrading
- to what version
- exact steps you did
#1509
Occurs in Firefox also. Created https://track.radensolutions.com/issue/NX-1765 issue for that.
#1510
Hi!

Can we get some more details on how exactly it's not working? Can you may be try to call a command file, that logs parameters that it's receiving and show what is in netxms agent's log and what that command file gets?
#1511
General Support / Re: cant get powershell script to run
January 14, 2020, 05:30:22 PM
Yes, right, it's not the timeout, otherwise there would be a message on 4-th debug level:
command "powershell.exe C:\test3.ps1" execution timeout (70 seconds)

Can you increase debug level to 7 and attach the log.

#1512
General Support / Re: cant get powershell script to run
January 13, 2020, 07:23:43 PM
There is agent configuration parameter ExternalParameterProviderTimeout that sets timeout for external parameters provider execution. By default it's equial to 30 seconds. The behavior you describing might be happening if your script runs longer then 30s.
#1513
There's a couple of minor things that are causing issues here. NetworkMapLink expects IDs within map, not netxms object IDs, so there's a function to convert. And we need to explicitly specify that IDs of status-providing nodes are of type "Long". Here's an example of working script:

from java.util import ArrayList
from java.lang import Long

amap = s.findObjectById(2722)
mapPage = amap.createMapPage()

cd = NetworkMapLink(NetworkMapLink.NORMAL, mapPage.findObjectElement(672).id, mapPage.findObjectElement(674).id)

sList = ArrayList()
sList.add(Long(674))
sList.add(Long(672))

cd.setStatusObjects(sList)

cd.setRouting(NetworkMapLink.ROUTING_DIRECT)
cd.setColorSource(LinkConfig.COLOR_SOURCE_OBJECT_STATUS)

mapPage.addLink(cd)

data = NXCObjectModificationData(2722)
data.setMapContent(mapPage.getElements(), mapPage.getLinks())
s.modifyObject(data)

#1514
I forgot to mention, that you should wait for netxms to hang first and then launch the script. So can you please wait for it to hang on it's own and then run the script.
#1515
Ok, let's try to get some debug information with this script: https://github.com/netxms/netxms/blob/master/tools/capture_netxmsd_threads.sh

In order for this to work you should have gdb and all relevant netxms-*-dbg packages installed. Is netxms installed from packages?

Script will produce output file in /tmp. Please attach it here.