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

#2551
Скриншот в аттаче, но я поторопился - bridge port number там не показан. Попробуйте запустить такой скрипт (через execute server script на ноде):


foreach(i : GetNodeInterfaces($node))
{
println i->name . " ifIndex=" . i->ifIndex . " bridgePortNumber=" . i->bridgePortNumber;
}


и прислать результат.
#2552
General Support / Re: DCI timestamp delay
April 21, 2016, 04:49:53 PM
Hi,

you can pass desired timestamp to nxpush using -t or -T option. For example, to pass current timestamp on UNIX system, you can do it like this:

/opt/netxms/bin/nxpush -u admin -t `date +%s` 127.0.0.1 hp8570w:PushTest=1

Best regards,
Victor
#2553
Hi,

currently it's not possible (but we can add that in the future). As a workaround, you can use "execute server script" option for node or container. It requires more mouse clicks but still allows you to run scripts on node.

Best regards,
Victor
#2554
Maybe using script DCIs will be better solution in your case. You can create script in a library which will be called by data collector, and that script will have access to all attributes of a node and can read appropriate data from agent or SNMP using AgentReadParameter or SNMPGetValue functions.

Best regards,
Victor
#2555
General Support / Re: dashboard
April 21, 2016, 04:36:52 PM
Hi,

no, currently it's not possible.

Best regards,
Victor
#2556
General Support / Re: Network switch SNMP acting up
April 21, 2016, 04:36:25 PM
Hi,

could you please provide results of SNMP walk on OID .1.3.6.1.2.1.2.2.1 for that switch?

Best regards,
Victor
#2557
There is section in manual on log monitoring (including Windows Event Log): https://www.netxms.org/documentation/adminguide/common-tasks.html#log-monitoring

Best regards,
Victor
#2558
Hi,

you cannot add another placeholder, but you can concatenate anything you need into {instance-name} in filter script. For example, to add prefix "instance" to every instance name return from script as following:

return %(true, $1, "instance: " . $1);

first element is acceptance indicator, second is instance ({instance} will be replaced by it), third is instance name. There should be examples on the forum for filtering scripts used to return meaningful interface names in {instance-name}.

Best regards,
Victor

#2559
General Support / Re: Deleting files script
April 21, 2016, 04:28:56 PM
Hi,

yes, you can define action in agent (using Action or ActionShellExec entries in nxagentd.conf) and then define object tool to run it manually or server side action of type "execute action on remote agent" to run it automatically from event processing policy.

Best regards,
Victor
#2560
Hi,

it seems that actual problem was cache load without locking: CacheLoadingThread calls updateDciCache on every node, which in turn calls updateCacheSize on every DCI, and there was no lock on DCI level inside, so any access to DCI at that moment may cause unpredictable results. And because you have NXSL scripts accessing DCI data running at same moment as well as templates removal it happens. I've changed cache loading to use proper locks on DCIs, that should solve this issue (changes already pushed to develop and stable-2.0 branches).
Btw, you could avoid template unbinding on startup by checking return value of GetDCIValue function for being null aborting auto-apply script (using abort statement) - system will make no change in current binding status if script completes with runtime error.

Best regards,
Victor
#2561
General Support / Re: MIB Browser problem
April 19, 2016, 06:08:34 PM
It should be C:\NetXMS\var\netxms.mib

Best regards,
Victor
#2562
Hi,

it's actually a bug, diff definitely should be treated as signed value. I'll register it in our issue tracker.

Best regards,
Victor
#2563
General Support / Re: Windows updates
April 19, 2016, 04:34:43 PM
Hi,

it's time of last system update detection, download, and installation as UNIX time (seconds since epoch).

Best regards,
Victor
#2564
Hi,

what direction you need to transform? From UNIX timestamp to textual representation or vice versa?

Best regards,
Victor
#2565
General Support / Re: MIB Browser problem
April 19, 2016, 04:32:41 PM
Hi,

did you put compiled MIB file into correct location? Also, console synchronize MIB file only on startup, so you need to re-login after updating it.

Best regards,
Victor