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 - Alex Kirhenshtein

#496
General Support / Re: SNMPV3
December 15, 2015, 12:36:31 AM
I've fixed that, now snapshots should work as well
#497
General Support / Re: SNMPV3
December 15, 2015, 12:27:40 AM
Script, which generate this header require git repo, not a snapshot. It's a bug.
However, if you clone repo instead of using snapshot – it will work.
Repository url for clone is https://git.netxms.org/public/netxms.git

P.S. don't forget to switch branch to "develop" (git checkout develop)
#499
I removed big chunks of the text (unrelated to MIB definition) from top and bottom of the files.
#500
Fixed files in attachment
#501
Feature Requests / Re: OTRS Integration
December 14, 2015, 11:58:17 AM
You need to create new shared library with custom implementation of HelpDeskLink class. I'm afraid we don't have any documentation on developing modules, but it's pretty much straight forward.

Here is interface definition: https://git.netxms.org/public/netxms.git/blob/refs/heads/develop:/src/server/include/hdlink.h?js=1

You can check existing JIRA implementation:
https://git.netxms.org/public/netxms.git/blob/refs/heads/develop:/src/server/hdlink/jira/jira.cpp?js=1
https://git.netxms.org/public/netxms.git/blob/refs/heads/develop:/src/server/hdlink/jira/jira.h?js=1
#502
You can try to use netsvc subagent instead (which is libcurl based) and set http_proxy variable before starting agent. It's a bit ugly, but should work.
Details on netsvc: https://www.netxms.org/forum/configuration/servicecheck-http-2780/msg12143/#msg12143
A bit details on libcurl proxy support: http://curl.haxx.se/libcurl/c/CURLOPT_PROXY.html

Another option is to use configure external parameter using curl / wget:ExternalParameter=CheckHTTPWithProxy:curl -o /dev/null -s -x http://proxyhost:3128 $1; echo $?

Then use it like this:nxget localhost 'CheckHTTPWithProxy(https://www.google.com/)'
#503
1) Event log ("event_log" table) have it's own retention time and it's completely independent from DCI history.
Retention time is controlled by server parameter "EventLogRetentionTime". Default value is 90 days.

2) Two options: create object tool with type "Download" pointing to server's log (enabled "follow changed", if desired), or enabled filemgr subagent on the agent and use file manager functionality for that.

http://netxms.readthedocs.org/projects/admin/en/latest/object-management.html#download-file
http://netxms.readthedocs.org/projects/admin/en/latest/remote-file-management.html
#504
Feature Requests / Re: The Dude Exporter
December 08, 2015, 10:05:40 AM
Can you share some sample database? It will be quite easy to change your code into migration tool, but I need some data to test is on.
#505
General Support / Re: Database Issues
December 08, 2015, 09:57:19 AM
This issue is already fixed in trunk.
#506
General Support / Re: No route to host
December 08, 2015, 09:55:42 AM
Looks like network configuration issue. Check that server is reachable (4701/TCP) from your workstation.
#507
General Support / Re: IP/Mac Address lookup
December 03, 2015, 09:48:02 AM
Try attached script.
#508
General Support / Re: IP/Mac Address lookup
December 01, 2015, 10:20:44 AM
Yes, it's possible to do with nxshell. Some examples:

find by mac:
import sys
mac = sys.argv[1].upper()

for node in [o for o in s.getAllObjects() if isinstance(o, objects.Node)]:
    interfaces = node.getAllChilds(objects.GenericObject.OBJECT_INTERFACE)
    for interface in interfaces:
        if mac in interface.getMacAddress().toString().upper():
            print "%s(%d) - %s - %s" % (node.getObjectName(),
                                        node.getObjectId(),
                                        interface.getMacAddress(),
                                        interface.getIpAddressListAsString())


find by ip:
import sys
ip = sys.argv[1]

for node in [o for o in s.getAllObjects() if isinstance(o, objects.Node)]:
    interfaces = node.getAllChilds(objects.GenericObject.OBJECT_INTERFACE)
    for interface in interfaces:
        for interface_ip in interface.getIpAddressList():
            if ip in interface_ip.toString():
                print "%s(%d) - %s - %s" % (node.getObjectName(),
                                            node.getObjectId(),
                                            interface.getMacAddress(),
                                            interface.getIpAddressListAsString())


Sample session:
~/Development/netxms/src/java/nxshell/target (develop|...)% java -Dnetxms.server=127.0.0.1 -Dnetxms.login=admin -Dnetxms.password=netxms -jar nxshell-2.0-RC2.jar find_by_mac.py B2:00:1C:15:BC:E0
AirAlk.local(100) - B2:00:1C:15:BC:E0 - 0.0.0.0/0
~/Development/netxms/src/java/nxshell/target (develop|...)% java -Dnetxms.server=127.0.0.1 -Dnetxms.login=admin -Dnetxms.password=netxms -jar nxshell-2.0-RC2.jar find_by_ip.py 127
AirAlk.local(100) - 00:00:00:00:00:00 - 127.0.0.1/8
#509
General Support / Re: MIB Import bug
November 20, 2015, 11:46:45 PM
Works for me.
Make sure that you updating correct file – we've changed filesytem layout a bit, now it's in $prefix/var/lib/netxms.
Start server with debug level 1 or higher and search for this line in log:
[20-Nov-2015 23:45:12.379] [DEBUG] Data directory set to /opt/netxms/var/lib/netxms
#510
General Support / Re: MIB Import bug
November 20, 2015, 11:30:36 PM
Please attach mib file