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

#1606
General Support / Re: Nxagentd binding problem
June 21, 2018, 10:56:17 AM
Then don't use -r option, just run agent as a service. Make sure server can connect on port 4700 (agent installer should add firewall exception). You can use nxget on NetXMS server to test connection. If it returns error 408 (timeout), then it's likely firewall issue. If it is error 500 (or other 5xx) then most likely source address of incoming connection is not listed in MasterServers.

Best regards,
Victor
#1607
General Support / Re: Install Agent 2.2.1 fails
June 21, 2018, 10:53:40 AM
Hi,

then it looks like VMWare tools service is subscribed to event log and so event log service has to hold the lock on nxagentd.exe. I see two possible solutions:

1. Check if nxagentd.exe is locked, attempt to stop VMWare Tools service and retry (probably multiple times).

2. Check if nxagentd.exe is locked, rename it (should be allowed), and retry installation. Then attempt to delete backup file(s) on next upgrade or at system restart. This is universal as it is not important what exact process causing lock.

I'll try to implement one of these in 2.2.7 installer.

Best regards,
Victor
#1608
Hi,

where this certificate is located? If it is web site certificate or file on file system you can use openssl command line tool to extract it (and run it as ExternalParameter in NetXMS agent). For example, the following external parameter will extract certificate validity date for given web site:


ExternalParameterShellExec = HTTPS.CertificateExpireDate(*):echo | openssl s_client -showcerts -servername netxms.org -connect netxms.org:443 2>/dev/null | openssl x509 -inform pem -noout -enddate | cut -d = -f 2


Requesting it as

HTTPS.CertificateExpireDate(netxms.org)

will return

Sep  2 21:57:24 2018 GMT

Then you can use NXSL transformation script to convert it to UNIX timestamp:


if ($1 match "^\\s*([A-Za-z]+)\\s+([0-9]+)\s+([0-9]+):([0-9]+):([0-9]+)\s+([0-9]+)")
{
   t = new TIME();
   t->year = $6;
   t->mon = MonthFromName($1);
   t->mday = $2;
   t->hour = $3;
   t->min = $4;
   t->sec = $5;
   t->isdst = -1;
   return mktime(t);
}
else
{
   return 0; // error
}

sub MonthFromName(name)
{
   m = 0;
   for(n : %("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"))
   {
      if (n == name)
         return m;
      m++;
   }
   return 0;  // error
}


Alternatively you can use


   return mktime(t) - time();


to get number of seconds till certificate expiration.

Best regards,
Victor
#1609
General Support / Re: Install Agent 2.2.1 fails
June 20, 2018, 04:26:24 PM
After some more testing it seems that logwatch itself is not an issue - event log service will open nxagentd.exe when there are active event log viewer with "System" log open (or any other process that reads event log via Wevt API) - but event log service will close it when reader terminates. Can you check if there are active event log viewer process or any other process that possibly reads system event log? If yes, can you close/restart those processes?

Best regards,
Victor
#1610
General Support / Re: Install Agent 2.2.1 fails
June 20, 2018, 03:57:09 PM
Hi,

I can confirm that issue is caused by logwatch subagent usage. Event log service process keeps agent exe file open. I'm working on fix/workaround for this.

Best regards,
Victor
#1611
Default image size is 800 x 73 pixels. Custom image could be bigger - client will resize it when drawing, but it should have same aspect ratio (800:73).

Best regards,
Victor
#1612
General Support / Re: Nxagentd binding problem
June 20, 2018, 12:17:01 PM
Hi,

do you want server to connect to agent, or vise versa? Try to make agent running without registration option. If connection from your NetXMS server is NAT'ed, make sure that you have listed correct address in MasterServers (it should be address that agent sees). You can set logging to file and run agent with debug level 6 or higher - then you'll see if there are any incoming connections and if they are rejected.

Best regards,
Victor
#1613
Через встроенную поддержку XMPP нельзя. Только если использовать какой-нибудь внешний клиент который можно дергать через скрипт.
#1614
Общие вопросы / Re: 2.2.6 и Juniper
June 18, 2018, 09:59:12 PM
Добрый день,

пришлите пожалуйста вывод nxsnmpwalk по интерфейсам.
#1615
Hi,

actually NetXMS will use MAC address tables on switches to build network topology. There is also function "Find MAC address" where you can check if location of specific MAC is known. But connection between switch object and node object will only appear on layer 2 map if node's MAC address is the only MAC on switch port - otherwise server will assume that there are some unknown device in between. Also, if you are building automatic L2 maps, make sure that you have checked "include end nodes" option in map properties if you want to see node objects on the map.

Best regards,
Victor
#1616
Just notice that you probably want to get available RAM, not free RAM. Are you using System.Memory.Physical.Available or System.Memory.Physical.Free? Available memory includes for example cache pages that can be freed.

Best regards,
Victor
#1617
Hi,

seems to be an issue that was solved in one of recent upgrades. Try to upgrade agent to version 2.2.6 (it will work with older server).

Best regards,
Victor
#1618
Hi,

that's an inconsistency in API - you should set all status calculation and propagation properties when modifying any of them. So in your case you have to call on md object: setStatusPropagationMethod, setFixedPropagatedStatus, setStatusShift, setStatusTransformation, setStatusSingleThreshold, setStatusThresholds. You can just pass values from appropriate getters on mdgr object.

Best regards,
Victor
#1619
Hi,

try to check trusted nodes settings in server configuration and turn off "check trusted nodes" if it is on. This is likely issue for sources DCIs not working.

Best regards,
Victor
#1620
General Support / Re: OID UNSUPPORTED
June 11, 2018, 12:16:57 PM
Just a hint - to simplify DCI creation from OIDs and avoid mistakes, you can right-click on walk result and select "Create DCI".

Best regards,
Victor