News:

We really need your input in this questionnaire

Main Menu
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 - zshnet

#1
Worked like a charm! Just had to change something in the python hmac_auth library because Jython is strongly typed, but otherwise it was no sweat.

Thanks again for the help!
#2
Fancy! Thanks for the suggestion. I'll give it a shot.

Thanks,
Zach
#3
General Support / Adding libraries to nxshell Jython?
August 17, 2016, 03:20:57 PM
Hi all,

I'd like to use the python library "requests" with Jython, but I can't seem to find where NetXMS installs it. Is it balled up in the nxshell Jar? Is there a way I could add libraries to Jython? I looked, and apparently requests is compatible with Jython.

Thanks,
Zach
#4
Hi all,

I'm having an issue with accessing my main NetXMS server from a separate private network. I have a computer with  a public address through 1 to 1 NAT, which tries to use nxshell to run a script. This computer talks to the NetXMS server's public IP address (which I can use to access the NetXMS console, so it does work). Any time I try to do this, the process hangs for many minutes (>10) and then eventually ends with an NXCsession timeout error.

Is there anywhere I can find more information? I didn't see anything in the logs, but is there a keyword I should be looking for? It seems to be specific to this private network (others can access the NetXMS server fine). When I run packet capture on one of the intervening routers, I can see that the two talk and send acknowledgement packets, but no data is ever exchanged.

Thanks,
Zach

P.S.
For clarification, I have the following topology when trying to access NetXMS


|----------------Private Network 1----------------- ------------------------------------------------| ------------Public Internet-----------| --------------------Private Network 2-----------------------------------------------------------------|

Server with NAT-ed public IP address, ==> Router with public internet access====>         Fiber head-end       ====>  Router with public internet access====> NetXMS server with public IP address
so it can reach public internet                                                                                         to public internet
#5
General Support / Re: GPS Directly from SNMP?
August 15, 2016, 09:19:08 PM
Thanks so much for all your replies! Super helpful, and I appreciate it.

Thanks,
Zach
#6
General Support / Re: GPS Directly from SNMP?
August 08, 2016, 10:02:14 PM
Huh. Is there an easy way to find where the world map code exists? I'd be interested in taking a look at what it does, but I'm unfamiliar with the NetXMS code structure. Would I find that in the bug tracker?

Thanks,
Zach
#7
General Support / Re: GPS Directly from SNMP?
August 08, 2016, 07:36:06 PM
Cool! I'll see whether my team thinks that's a good architecture choice. Don't want code in too many places, but I do like NXSL.

On a side-note: Do you know if links are possible on the World Map? Or is it just icons?

Thanks,
Zach
#8
General Support / GPS Directly from SNMP?
August 08, 2016, 06:43:27 PM
Hi all,

We have a bunch of Airfiber 24's which have GPS receivers. They report GPS based on SNMP (one for Lat, one for Long), and I'd love to directly plug that into the geolocation attribute. Is there any way to do this? If not, I'll just use NXshell to take the data and plug it directly.

Thanks,
Zach
#9
Hi all,

We had a very bad crash on our system, and luckily we could recover the database files.

I replaced the files in /var/lib/postgresql/version/main with all the old database files,  I could view the files in the database, and I could run the nxdbmgr check without any errors.

However, when I ran Netxms, it just sat, pouring out tons of select queries. I could not log in, receiving a "connection refused."

After a lot of troubleshooting, I discovered my error was similar to this:

ERROR: could not access status of transaction 4244329
DETAIL: could not open file "/var/lib/postgresql/9.3/main/pg_clog/0004"

I needed to fill the file with zeroes so that postgresql would decide that row was full of zeroes and continue on. Once I had solved all of those errors (I tried to pg_dump a specific table and it told me the files to fix) I was able to run NetXMS without issue.

Is there any way for nxdbmgr to find that sort of error? I don't know much about databases, but I figured it might help to have this error be visible.

Finally, I'm curious what the nxdbmgr means when it says a database is "Locked by the server." I could not find an answer through Googling, though it wasn't the most thorough search. Any suggestions?

Thanks,
Zach
#10
You nailed it again! Thanks for the help.

Thanks,
Zach
#11
No, no. I mean NetXMS's Event Log. I'm using nxshell to query the log for certain events, like so:

sourceFilter = ColumnFilter(java.lang.Integer(ColumnFilter.EQUALS),0)
#Time filter is over 24 hours, or 86,400 seconds
timeFilter = ColumnFilter(long(time.time()-86400),long(time.time()))
#Start a log filter, and add our filters to the two  columns
logFilter = LogFilter()
#Columns  in the Event Log are: event_id, event_timestamp, event_source, dci_id, event_code, event_severity, event_message, user_tag, root_event_id
logFilter.setColumnFilter("event_severity",normalFilter)
logFilter.setColumnFilter("event_timestamp",timeFilter)
eventLog.query(logFilter)
critTable = eventLog.retrieveData(0,1)


Rather than just filtering for Critical or Normal events, I'd like to build a ColumnFilter that filters for both, so that I don't have to do two separate queries. Any ideas?

Thanks,
Zach
#12
That's it! I didn't realize it was a status object, thank you for the help!

Thanks,
Zach
#13
Hi all,

I am looking into more event log filtering, and I'm unsure from the documentation how exactly to create an OR filter. I would like to filter events with severity 0 OR severity 4, rather than filtering them separately. Anyone have any suggestions where to look?

Thanks,
Zach
#14
Hi all,

I can see in the docs there's a SetObjectManaged call from NXCSession. Is there a way to get the managed state?

Thanks,
Zach
#15
General Support / De-duplicating nodes?
July 07, 2016, 08:10:14 PM
Hi all,

I have three nodes that are the same object (found, I assume, through network discovery). Normally when this happens, the nodes appear to have some difference between their interfaces, and I chalk the duplication up to that. However, these three have all the same interfaces. Is there any way to de-duplicate this node?

They all have different primary hostnames, of course, but under the interfaces tab there's no difference. Any guesses?

Thanks,
Zach