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

#331
Quote from: Kriptoker on June 07, 2022, 06:13:44 PM
As far as disabling the ssh.nsm local agent, that would be by removing that line 'SubAgent = ssh.nsm' from /etc/nxagentd.conf correct?

Correct.
#332
Try to run netxmsd with elevated debug by adding
DebugLevel = 6
to /etc/netxmsd.conf and share log file for startup.

Best regards,
Victor
#333
General Support / Re: nxadm: Server error 2
June 07, 2022, 09:54:31 AM
Make sure you put password in single quotes. Also, user should have appropriate access rights ("access server console" in global system access rights).

Best regards,
Victor
#334
There is a bug that NetXMS server attempts to access SSH even with empty credentials. It will be fixed in upcoming patch release.

Also, if you are not using SSH, make sure that ssh.nsm is not loaded on server's local agent.

Another option is to use NXSL configuration poll hook to disable SSH on each node by calling

$node->enableSsh(false);


Best regards,
Victor
#335
Actually 6733 (first part of primary key) should be ID of the node this package belongs to.

Best regards,
Victor

#336
General Support / Re: Cisco CBS switches driver
June 07, 2022, 09:49:10 AM
Does it report VLANs correctly with GENERIC driver? If not, does forcing CISCO-SB helps?

VLAN information is most common place where custom driver is required.

Best regards,
Victor
#337
Yes, they are universal. Below is ad-hoc example of script that reads DHCP leases from Mikrotik router and prints IP address of specific node, if found:


for(line : $node->executeSSHCommand("/ip dhcp-server/lease/print"))
{
if (line->contains("raspberrypi") and line ~= '^\s?[0-9]+\s+([0-9.]+).*')
   println("address:", $1);
}


Best regards,
Victor
#338
Hi,

Yes, I think we will use SSH more. Some automation with SSH is already possible - like execute command as a reaction for an event for example, or execute command from script and process output. One obvious direction for improvement is to introduce concept of SSH session to NXSL scripts and allow execution of multiple commands within single session.

Best regards,
Victor
#339
I just checked and there is a bug in SSH polling code - server attempts to connect with empty user name and password if nothing is set. We will fix it until next patch release.

For disabling SSH polling you can use NXSL method enableSsh on node object - either add it to configuration poll hook or run once script that will enumerate all nodes and set SSH flag to false. Also, if you are not using SSH functionality, you can disable SSH subagent on server's local agent and on proxy nodes.

Best regards,
Victor
#340
Hi,

looks like nobody checked that client proxy actually compiles. Do you really use it? If not, just remove --with-client-proxy from configure (we will fix compilation anyway though).

Best regards,
Victor
#341
Hi,

version 4.1 attempts to detect SSH availability during configuration poll. Most likely other switches just don't report failed SSH login attempts, or they have valid credentials. If you don't need SSH access to problematic switches you can disable SSH polling in node properties on "Polling" page.

Best regards,
Victor
#342
Hi,

it's possible to some degree. Few options here:

1. Create circular status map - you can define root object, and status map will show sub-objects and their statuses as sunburst diagram. However, drilldown action is hardcoded and will open list of active alarms for selected object.

2. Create network map - you can place any object on a map, and as drilldown you can set other map or dashboard. This will not be sunburst diagram however - although you can represent objects in some logical layout.

Best regards,
Victor
#343
Not each output of powershell begins with empty line, only this specific command does. You can filter output further, probably from powershell itself as well, but I don't know how (not using it). However, command line pipe should work as well (I assume you are interested in line with version number):


ExternalParameterShellExec = ExchangePatchNumber:pwsh -Command { Get-Command Exsetup.exe | ForEach {$_.FileVersionInfo} } | find "ExSetup.exe"


Best regards,
Victor
#344
General Support / Re: Overview Tab SLOW (4.1.283)
May 24, 2022, 10:27:11 AM
Hi,

I just fixed this issue, fix will be included into next patch release. Current workaround is to press refresh if overview is not shown for too long.

Best regards,
Victor
#345
General Support / Re: SSH Monitoring "Sensitive"
May 23, 2022, 03:35:07 PM
Hi,

can you check log on proxy agent around time when SYS_SSH_UNREACHABLE generated? Make sure you have debug level 6 or more for tag "ssh".

Best regards,
Victor