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!
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!
Fancy! Thanks for the suggestion. I'll give it a shot.
Thanks,
Zach
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
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
Thanks so much for all your replies! Super helpful, and I appreciate it.
Thanks,
Zach
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
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
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
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
You nailed it again! Thanks for the help.
Thanks,
Zach
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
That's it! I didn't realize it was a status object, thank you for the help!
Thanks,
Zach
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
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
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
Hello all,
We have a lot of nodes that flap on SNMP availability due to routing issues. However, graphs can be deceiving as they simply replace any empty zones with a line connecting the two pieces of "real" data on either side.
Is there a good way to replace lost data with zeros, -1's, anything to make it obvious that it's an outage? I was thinking at worst I could add a transformation script, but something smarter would be preferred.
Thanks,
Zach
Ah. It would appear I misunderstood what this means. I was hoping to filter tools based on which OS the client is running, as many of our object tools are local commands to the client.
Is there any way to do that? If not, we'll stick with our nested menus.
Thanks,
Zach
Hi all,
I'm interested in filtering object tools by OS, as we have to keep up a few tools for linux, mac, and windows and it's starting to crowd menus.
I know there's a System OS name filter on object tools, but I could not figure out (by guessing likely candidates) what the OS names might be. Is there a way to check what NetXMS thinks my OS name is?
Thanks,
Zach
Yes, that's what I'm saying. Since you deleted the node, it's not in the entire network anymore. You are only searching nodes in your network, when you select "Entire Network." However, I would suggest taking Tatjana's advice and checking on the server configuration, so that it doesn't happen again.
Hey, thanks! That works perfectly. Thanks again for all your work + help!
Have a good one,
Zach