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

#16
General Support / Re: Max Parameter Length?
July 10, 2018, 09:38:48 PM
On further investigation, this doesn't seem to be limited to just Service.Check(*). Unless I'm looking at this wrong, all checks and DCIs seem to break after the parameters reach a certain length.
#17
General Support / Max Parameter Length?
July 10, 2018, 09:09:55 PM
I'm trying to use Service.Check(*) to check a URL. Unfortunately, the URL I need to check is really long and looks like this:

https://hosta.mydomain.com/file1.aspx?KaB6rTg6%2fcIKlmbmN%40ecOi%2fjkr%407oXTOfLonrtxEolozX7HjHuvdXzfSZLXGSyM%2fz%2f88GXwVAXPhKIP893OYWC1N4zkKcFEoGnXlORpSV0GyA%40ljEZT3xDK72S46Y6luNEnz0lBYEqb8bzPEJ%40V28pJbIRpMLDp3uKPUnqit19t%40I5uY%40bZtcGI7NXZ5O81c8HDPmmxYci%40xpL7oAqLR9A%3d%3d

The URL above doesn't work and results in a "Cannot get current parameter value: Requested data collection item is not supported by agent" error.
If I shorten the URL slightly, the error goes away and it actually makes the call (but then obviously I have the wrong URL!)

https://hosta.mydomain.com/file1.aspx?KaB6rTg6%2fcIKlmbmN%40ecOi%2fjkr%407oXTOfLonrtxEolozX7HjHuvdXzfSZLXGSyM%2fz%2f88GXwVAXPhKIP893OYWC1N4zkKcFEoGnXlORpSV0GyA%40ljEZT3xDK72S46Y6luNEnz0lBYEqb8bzPEJ%40V28pJbIRpMLDp3uKPUnqit19t%40I5uY%40bZtcG

... works. If I add one more character, it stops working.

Is there a length limit to what's passed to Service.Check? If so, what's the limit?
Thanks!

Peter

#18
You can use /CENTRALCONFIG or /LOCALCONFIG to set this (defaults to /LOCALCONFIG).
We use "/VERYSILENT /DIR="C:\Program Files\NetXMS" /CENTRALCONFIG /SERVER=hostname_of_netxms_server /NOSUBAGENT=winperf" to do a completely blank install, and then serve the config from the server.

Peter
#19
General Support / Re: Parameters with quotes?
March 23, 2018, 07:05:47 PM
I see what you're doing. Thanks!
#20
General Support / Parameters with quotes?
March 23, 2018, 03:39:48 PM
Trying to run WMI.Query(/root/somenamespace, SELECT * FROM class WHERE name="value", property)
WQL needs the quotes, but by the time the query executes the quotes have been stripped. The same issue exists when trying to pass something in quotes to a ExternalParameter, or any parameter for that matter.

Is there a way to use quotes in parameters?

Going through the code, it seems the quotes are being removed in AgentGetParameterArg....
#21
General Support / Re: Templates reset?
October 30, 2017, 07:57:32 PM
DOH!
Thank you so much.
#22
General Support / Templates reset?
October 30, 2017, 05:11:07 PM
A few times I have made changes to the Windows template under \Templates\Operating Systems, only to find that it somehow automatically reverts overnight. Do the pre-built templates get recreated on a schedule somehow?
#23
General Support / Re: [Windows] Web Api install?
September 08, 2017, 04:52:27 PM
Here's what I ended up doing. Good or bad, it seems to work :)


  • In the webui folder (probably C:\Netxms\WebUI), make a folder called "webapi".
  • Download the webapi .war file and save it in the webapi folder as "webapi.war"
  • Create a jetty-web.xml file in the webapi folder, with the following content:
    <Configure class="org.eclipse.jetty.webapp.WebAppContext">
      <Set name="contextPath">/webapi</Set>
      <Set name="war"><SystemProperty name="jetty.home"/>\webapi\webapi.war</Set>
      <Set name="tempDirectory">webapi</Set>
    </Configure>
  • In the registry, update HKLM\SOFTWARE\WOW6432Node\Apache Software Foundation\Procrun 2.0\nxWebUI\Parameters\Start\Params and add the following line at the end:
    C:\NetXMS\WebUI\webapi\jetty-web.xml (change as appropriate to point to the jetty-web.xml file you made in the previous step)
  • Restart the NetXMS WebUI service.
The webapi should now be available at http://localhost:8080/webapi

Hope this helps somebody!
Peter

#24
General Support / Re: [Windows] Web Api install?
September 07, 2017, 06:37:19 PM
Thanks Eriks.

I installed the webui using the installer. This seems to install a minimal installation of Jetty, pointed at the webui. I'm a Windows guy and thus (almost by definition) pretty ignorant when it comes to deploying anything Java related! I download the web service .war - now where do I put it so that Jetty can pick it up and serve it?

Thanks!

Peter
#25
General Support / [Windows] Web Api install?
September 06, 2017, 12:16:20 AM
I feel dumb for asking this, but going to ask anyway: Using a standard out-of-the-box netxms installation on Windows, how do you install the WebApi?

I understand that the WebUI runs on Jetty so there should already be a server. How do we add the web api to this so we have something to point Grafana to?

Many thanks!
#26
Feature Requests / Dashboard Viewer?
June 04, 2014, 05:34:49 PM
I might have missed it, but I'm looking for a way to display dashboards not unlike the alarm viewer application.

Our current setup has 8 dedicated monitors that display various dashboards (they're just full screen web pages). Is there anyway I can display netxms dashboards this way?
#27
General Support / Re: Install Web Interface
April 26, 2012, 08:10:56 PM
Testos: You're a genius! This only seems to happen with IE8. Tried with IE9 and Chrome, and it's fine!

Awesome....
#28
General Support / Install Web Interface
April 23, 2012, 07:04:03 AM
Windows 2008R2 (x64)

Although you can check the box in the installer (netxms-1.2.0-x64), it doesn't seem to install the webui. The separate webui install does create the WebUI folder and everything in it, but the service just hangs on "starting". The logs say that it can't find a jre, so I set JAVA_HOME to c:\netxms\bin\jre\bin and that makes it happier. However, it still won't start as "Local System", since it seems to search for temp folders. Manually running "java -war start.war" starts up the server properly in the console, but the gives the following error when you try to access the page:


Could not process server response:

Error: Operation "create" on target "w4" of type "null" failed:
No Adapter for type forms.widgets.Hyperlink
Properties:
parent = w12
style = NONE
bounds = 214,161,81,34
children =
tabIndex = 8

Uninstalled everything, reinstalled just the server. Installed tomcat 6 and deployed the nxmc war manually. Same error.

What am I missing???
Thanks!

Peter
#29
Server is Win 2008R2, client is Win7 (32 bit).
#30
Feature Requests / Re: Maintenance Mode
December 21, 2011, 06:12:47 PM
The fact that it's hierarchical is actually great, I think. If the box gets put into maintenance mode, all its children should also be in maintenance mode anyway (unless they were unmanaged to begin with - they should!)

The issue with using managed/unmanaged as a maintenance mode is that it indeed changes the way you had things setup. On our switches, I only have a few things that need managed. 90% of the interfaces is set to unmanaged. I'd have to redo that setup every time.

If you can, have a look at how "What's Up Gold" does maintenance mode. Is really basic, but it works surprisingly well.
http://docs.ipswitch.com/WhatsUp_Gold_v12.3/WebHelp/13689.png