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

#6271
General Support / Re: Clustering with SNMP Proxy
December 07, 2010, 09:52:00 AM
Quote from: Sumit Pandya on December 06, 2010, 04:33:54 PM
Dear Victor, The script you shared did not worked. I tried to "Test" above transformation with Test value = 2(random), I get error "Error 14 in line 2: Left argument of -> must be a reference to object". I further added a check
if (node2 == null)
      return 0;   // No such node or access denied

and surprisingly I get this "0" returned. Please note that my nodes are part of cluster. Is that could be limitation?

Did you set trusted nodes as described here: https://www.netxms.org/forum/configuration/nxsl-and-dci/msg4633/#msg4633? Most likely it's an access control issue.

Quote from: Sumit Pandya on December 06, 2010, 04:33:54 PM
Using the approach you suggest, I may loose information of my one node. I just wonder if you can have some push method from scripting. Can I create a dummy node, define data collection with origion "Push Agent". Then define a schedule to run every minute "1 * * * *". Finally do something like below into Transformation?

node1 = FindNodeObject($node, "system-1");
value1 = GetDCIValue(node1, FindDCIByDescription(node1, "Auth-Req"));
node2 = FindNodeObject($node, "system-2");
value2 = GetDCIValue(node2, FindDCIByDescription(node2, "Auth-Req"));
return value1 + value2;

I'd even fine if database triger level of twick can be done as some very advance level.

You can create additional DCI with source "Internal" and name "Dummy" (of course description can be any). It will always have value of 0, and you can schedule it like any other DCI and use transformation script to get values from two "real" DCIs and sum them.

Best regards,
Victor
#6272
General Support / Re: NetXMS Console problem
December 07, 2010, 12:09:54 AM
If everything is set up correctly (device responds to SNMP requests from NetXMS server and provides information via CDP MIB) you should see picture like attached.

Also, may be I didn't understand your question correctly - NetXMS is able to collect information from CDP-enabled devices (like switches or routers) and display it. NetXMS server or agents by itself does not work as CDP peers.

Best regards,
Victor
#6273
General Support / Re: Clustering with SNMP Proxy
December 06, 2010, 03:20:32 PM
Hi!

You can use transformation scripts to get values from different nodes and sum them up to value of current DCI. For example, if you have DCIs named "Param1" on nodes node1 and node2, you can create the following transformation script on node1 to add up value from node2:


node2 = FindNodeObject($node, "node2");
value = GetDCIValue(node2, FindDCIByDescription(node2, "Param1"));
return $1 + value;


See also the following topics:
https://www.netxms.org/forum/configuration/findnodeobject-not-working-%28for-me%29/
https://www.netxms.org/forum/configuration/nxsl-and-dci/

Please also note that if you are using server older than 1.0.8, you must explicitly define main function in your script, i.e.


sub main()
{
   node2 = FindNodeObject($node, "node2");
   value = GetDCIValue(node2, FindDCIByDescription(node2, "Param1"));
   return $1 + value;
}


Best regards,
Victor
#6274
General Support / Re: NetXMS Console problem
December 06, 2010, 02:04:11 PM
Yes, you can see topology information for CDP-enabled devices (on "Topology" tab).

Best regards,
Victor
#6275
General Support / Re: NetXMS Console problem
December 06, 2010, 11:43:46 AM
Hi!

NetXMS server has it's own user database. Default login name is admin with password netxms.

Best regards,
Victor
#6276
Общие вопросы / Re: communication failure
December 06, 2010, 10:41:34 AM
Да, я так и понял. Я и имел ввиду, что даже на локальном по отношению к серверу агенте надо прописывать адрес его самого, не только 127.0.0.1.
#6277
Да, новая консоль рассчитана на работу с сервером 1.0.8.
#6278
General Support / Re: Clustering with SNMP Proxy
December 04, 2010, 08:03:00 PM
Hi!

During configuration poll, NetXMS server tries to detect SNMP agent by sending requests for OID .1.3.6.1.2.1.1.2.0. If agent present, but does not respond to this request, it is considered as unavailable. Later during data collection, if node is not marked as SNMP-capable, SNMP DCIs not collected - the only exception is DCIs with custom SNMP ports. If you SNMP agent which does not support standard MIB-2 OIDs, then better way is to disable SNMP for given node and set port number explicitly for each SNMP DCI.

SNMP requests to port 260 generated during configuration poll in attempt to detect Check Point SNMP agent.

Best regards,
Victor
#6279
Выложил обновленную версию консоли (названия файлов не изменились). Попробуйте.
#6280
Hi!

Versions starting from 0.2.23 available at https://www.netxms.org/download/archive. You can try to use console version 0.2.23. If it will not work, I'll try to find 0.2.22 version installer.

Best regards,
Victor
#6281
Общие вопросы / Re: communication failure
December 03, 2010, 12:53:51 PM
В параметре MasterServers надо указать и 127.0.0.1, и адрес NetXMS сервера. Если адресов несколько, то указать выбранный как "primary IP address" для узла сервера NetXMS, или все.
#6282
Net, prosto
/usr/local/lib

I ne zabit' zapustit' potom ldconfig.
#6283
Добрый день!

Скорее всего проблема в том, что не загружен субагент portcheck.nsm (libnsm_portCheck.so) на сервере.

Виктор

P.S. Похоже на https://www.netxms.org/forum/configuration/service-configuration-error/ ...
#6284
А /usr/local/lib прописан в ld.so.conf?
#6285
Announcements / NetXMS 1.0.8 released
November 30, 2010, 05:51:42 PM
Hi all!

NetXMS 1.0.8 is out. Changes from previous release:

- Added support for custom SNMP ports on node and DCI level
- NXSL:
   - now possible to create scripts without explicit main()
   - named parameters added
   - New functions: GetNodeParents, PostEvent
- Fixed issues: #311, #312, #316, #317
- Various minor and cosmetic fixes

Best regards,
Victor