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

#1
General Support / Re: Error installing nxmc 3.8
February 22, 2021, 10:36:10 PM
i also ran into this today. Tried to download java but i just did not have the energy to go through the oracle signup mess.
I uninstalled java 8 and tried to install openjdk 15.0.2 by using chocolatey on Windows. Worked!
#2
ok i just saw a new netxms build and i upgraded the server to 3.0.2284 and web service API using netxms-websvc-3.0.2284.war
after that, DCI values showed up within grafana graphs. No error 46 anymore.

Not sure what the fix was, but hey, it works. Happy ;D
#3
I'm using NetXMS v3 and Grafana 6.3.x and succesfully deployed the NetXMS datasource on grafana. It connects to the webapi and is able to show alarms.
However, DCIs do not show points on the graph. I can select the DCIs but grafana is not able to pull points for the DCI.
The grafana query to the API returns error 46.

below is the query inspector result from grafana.
i found the following wiki page, and statement about java.xml.bind module.
However, i'm on ubuntu 18.04 , tomcat9 and java 11

any idea what's wrong? Connectivity and authentication seems right because i do get to see alarms in a grafana table just fine.

java -version
openjdk version "11.0.4" 2019-07-16
OpenJDK Runtime Environment (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3)
OpenJDK 64-Bit Server VM (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3, mixed mode, sharing)


"If curl test works but grafana returns "Internal error" ({"description":"Internal error","error":46}")
Add "--add-modules java.xml.bind" to JAVA_OPTS in /etc/default/tomcat8 "


https://wiki.netxms.org/wiki/Web_service_API




Object
xhrStatus:"complete"
request:Object
method:"GET"
url:"api/datasources/proxy/20/grafana/datacollection"
data:null
params:Object
interval:200
from:_
to:_
targets:"[{"dci":{"id":"945","name":"Inbound traffic on NET_STOR (bits/sec)"},"dciTarget":{"id":"3370","name":"host01.corp.local"},"legend":"","refId":"A","type":"DCI","datasource":"NetXMS"},{"dci":{"id":"946","name":"Outbound traffic on NET_STOR (bits/sec)"},"dciTarget":{"id":"3370","name":"host01.corp.local"},"legend":"","refId":"B","type":"DCI","datasource":"NetXMS"}]"
response:Object
description:"'java.util.Iterator org.json.JSONArray.iterator()'"
error:46
#4
Quote from: ntnam on August 19, 2019, 07:11:14 AM
Thanks you. It's simple.

if ($1->ifType == 6)
   return true;
else
   return false;


could you please explain this a bit further? About ifType and how come a value of "6" is what you're looking for?

edit: nevermind, i found this, explains it i think: https://www.iana.org/assignments/ianaiftype-mib/ianaiftype-mib
#5
General Support / Re: Deleting Objects interfaces
August 19, 2019, 12:07:19 AM
that sums it up quite good! great stuff, thanks.
with debug console i actually meant the server console from the Tools menu.
#6
General Support / Re: Deleting Objects interfaces
August 18, 2019, 10:33:00 AM
Ok thanks.
About running such one-time scripts:
Would i need to create a script in the script library and run it in the debug console with exec command? Or is there a easier "run this script now" functionality?
#7
General Support / Re: Deleting Objects interfaces
August 18, 2019, 12:27:54 AM
I also resolved the (re)addition issue using the Hook::CreateInterfaces script and filter some names there, but what would be the easiest way to remove the unwanted interfaces across a bunch of nodes that got added before filtering?
#8
has there been any change regarding the support of vmgr subagent on a windows agent?
#9
great stuff! Thanks alot!

I'm not looking to provide access to customers, so that's not an issue. I should have put that in my post, sorry. Good to see confirmation that providing customer access is not ideal.

So we'll go for a scenario in which we are the only one configuring the software and the only with access.

So in your environment, you have EPRs for every customer? Seems logical, as actions differ between customers offcourse.

I still struggle a bit with the event strategy. for example: What would be use cases to NOT share events between customer but instead create dedicated set of events for a customer?
#10
I was wondering if there are some tips that can be shared for configuring NetXMS for a few (<10) small/smb organizations. I already found out about zoning. That's clear. Proxy functionality is also clear to me now.

Perhaps more on configuratoin topics like:

  • A Template strategy
  • A Policy strategy
  • Mapping customers and nodes to containers/folders
  • A strategy arround Event Policy rules to stay flexible and deal with per-organization requirements and/or SLA's ?
  • A event strategy
  • A action strategy

I know it all falls into the category "it depends", but there must be some things you ran into that made some changes happen.

Basically, any do's and dont's available for such a setup  :)
#11
yes i created a DCI parameter on the node and selecting the agent as "origin" i then selected the BytesIn. When i do that, it sets it to BytesIn(*). So i did some assumption it would enumerate something.
All comes down to better understand data collection and instance discovery. I'll read up further.
#12
ah my bad indeed on the Free vs Available part. classic mistake. sorry. understood.
#13
ahhh ok so they do come from the template orginally. I got confused by the column name being "template" and a node name showing up over there besides the actual template name used. I'll read up a bit more/again using suggested documentation.

Thanks!
#14
i've attached a screenshot to clarify the DCI items i cannot fully explain.
I'm not following you on the part "the ones generated on the node based on that {instance} DCI as part of instance discovery".
Can you elaborate a bit further maybe?
#15
General Support / Templates and default DCI on node
August 10, 2019, 02:51:29 PM
When i add a node (windows server) running an agent and assign a tempalte for DCI's, i can also see some DCI paramters configured on the node itself. When i check the "template" column of the DCI configuration of the node itself, i can see parameters coming from the template definition and the nodename itself.
Where do the DCI parameters on the node itself come from?