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 - gmonk63

#106
General Support / DCI checks over SSH
August 04, 2016, 04:08:29 AM
Is there a way through scripting or other to do checks on nodes that dont either support SNMP or Agent  but have ssh access.   Since ssh supports running remote commands such as  if i run "ssh me@remotenode uname -a "  will give me system identification info  could I create a DCI that could run these remote commands via SSH to gather data ?  I have a switch that does not fully support SNMP and  only way to gather interface,cpu or temp stats is either via web or login and run a custom executable which comminticates with switch chip ...so my only options is try and scrape the data from the gui or run the custom commands over ssh and return it to NETXMS but i dont see any way to do that in the DCI setup options...



Thanks
#107
For any one interested I compiled a Agent that will run on a Ubiquity Edge Router/Lite products ... I currently use these as Pollers to proxy snmp or icmp polls  to ease the load on the main server. They also act as distribution devices to the field so it helps to be able to get interface BW and CPU usage for a segment .. Also here is the script that i use to assign nodes to these so i dont have to go one by one ...Just grab the object id of the poller and add the object names in the .txt file   You will have to scp the deb file to the router then run sudo dpkg -i netxms_ubnt_2.0.5.deb to install this will install to /usr/local  and config files to /etc/nxagentd.conf   also you will need to run "sudo ldconfig" after install or else you will have errors when attempting to start  with  "sudo service nxagentd start "  You will also need to vi the nxagentd.conf with your own params....  Hope this can be useful to someone


from org.netxms.client.objects import Node

for name in open("snmp-proxy.txt").readlines():
    node = session.findObjectByName(name.strip())
   
    if node:
        md = NXCObjectModificationData(node.getObjectId())
        proxy = 10254
        md.setSnmpProxy(proxy)
        session.modifyObject(md)
#108
General Support / Re: Migrating to new server
July 04, 2016, 03:30:16 AM
Never mind i figured it out.  I just did a mysql dump then restore on the new server and then ran the nxdbmgr upgrade ... Not sure why but when I tried using nxdbmgr to export then import on the new server it always failed
#109
General Support / Migrating to new server
June 30, 2016, 11:27:43 PM
Question I currently have a server ubuntu 14.04 with netxms 2.0.1   I have purchased a newer server and want to migrate all data to the new server which is ubuntu 16.04  but I want to install the latest Netxms version 2.0.4   can i simply install the new version and dump and restore the data base using mysql tools or do i need to do this using nxdbmgr  and what is the difference between using nxdbmgr vs mysql dump  does dbmgr only grab the schema and not the data ?



Thanks
#110
General Support / OpenWRT Agent
June 03, 2016, 02:23:13 AM
Just curious what versions of WRT is netxms agent compatible with ?  I tried to build it on 15.05 and got the following



make[6]: Entering directory `/home/gmonk/Desktop/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/netxms-agent-nossl/netxms-2.0.2/src/libnetxms'
  CXX      libnetxms_la-tools.lo
In file included from libnetxms.h:27:0,
                 from tools.cpp:23:
../../include/nms_common.h:1175:13: error: previous declaration of 'void nx_free(void*)' with 'C++' linkage
inline void nx_free(void *p)
             ^
In file included from /home/gmonk/Desktop/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/include/features.h:416:0,
                 from /home/gmonk/Desktop/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/include/wchar.h:28,
                 from ../../include/unicode.h:119,
                 from ../../include/nms_common.h:72,
                 from libnetxms.h:27,
                 from tools.cpp:23:
/home/gmonk/Desktop/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/include/malloc.h:119:18: error: conflicts with new declaration with 'C' linkage
extern void free __MALLOC_P ((__malloc_ptr_t __ptr));
                  ^
make[6]: *** [libnetxms_la-tools.lo] Error 1
make[6]: Leaving directory `/home/gmonk/Desktop/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/netxms-agent-nossl/netxms-2.0.2/src/libnetxms'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/gmonk/Desktop/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/netxms-agent-nossl/netxms-2.0.2/src'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/gmonk/Desktop/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/netxms-agent-nossl/netxms-2.0.2'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/gmonk/Desktop/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/netxms-agent-nossl/netxms-2.0.2'
make[2]: *** [/home/gmonk/Desktop/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/netxms-agent-nossl/netxms-2.0.2/.built] Error 2
make[2]: Leaving directory `/home/gmonk/Desktop/openwrt/feeds/netxms/admin/netxms'
make[1]: *** [package/feeds/netxms/netxms/install] Error 2
make[1]: Leaving directory `/home/gmonk/Desktop/openwrt'
#111
What type of the Device is this ?  Is sounds like this might be a ppoe router of some sort.   So your best bet would be to setup a port based translation that would translate any requests to the public address:port  to the internal  address:port  but since it changes every four hours you would have to setup dyndns or no-ip  and refer to it by dns or else you will have to update your netxms configs
#112
General Support / DCI timestamp delay
April 20, 2016, 07:38:48 AM
Greetings,


I have a script which sends data via nxpush to a DCI and i have noticed that it takes almost 30seconds for the dci to reflect the changes ... is there a way to specify the time stamp using nxpush instead of having  time stamped by the server when it is recieved
#113
General Support / Re: Dash Board
March 31, 2016, 06:14:54 PM
got it working now ... Thanks for the help
#114
General Support / Re: Dash Board
March 25, 2016, 02:22:17 AM
Where exactly would i make these changes I do not see an eclipse.ini  file



Thanks
#115
General Support / Line Chart Question
March 25, 2016, 02:21:10 AM
Is it possible to assign  data points to the line chart  maybe with a dot or something visible.  It is hard to distinguish  visible changes on the line when there are only slight changes in the data which almost makes it look like a single line that continues to rise slightly
#116
General Support / Dash Board
March 10, 2016, 05:18:20 PM
Does the Dashboard web page element use a internal browser ?  And is there a way to tell it you use a local browser like chrome or FireFox when rendering web pages



Thanks
#117
General Support / Re: SNMP Proxy
February 17, 2016, 06:35:45 PM
I think I got it let me know if this correct or not but it seems to work  this will read in from a list of nodes and set each nodes snmp proxy to the following id 10236


from org.netxms.client.objects import Node

for name in open("snmp-proxy.txt").readlines():
    node = session.findObjectByName(name.strip())
   
    if node:
        md = NXCObjectModificationData(node.getObjectId())
        proxy = 10236
        md.setSnmpProxy(proxy)
        session.modifyObject(md)
#118
General Support / SNMP Proxy
February 17, 2016, 05:05:27 PM
Is it possible to configure snmp proxy via nxshell  I see that its is possible during creating but what about after the fact



Thanks
#119
General Support / Re: Duplicate Node generated
February 13, 2016, 09:48:13 PM
I think this may have been just a weird glitch ..I noticed that only one switch was being duplicated and not the other I deleted the switch and did a db check which found lots of errors that were fixed and added the offending switch  again and so far no duplicates i will update if anything changes
#120
General Support / Re: Duplicate Node generated
February 12, 2016, 06:11:23 PM
The primary node name was automatically set to the IP of each vlan interface