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

Topics - mitchellj

#1
General Support / Read external web API as DCI
November 08, 2016, 02:39:03 AM
I have a remote API that counts a 'queue' in a remote system. I'd love to monitor the results in NetXMS so I can be alerted if the size grows to a uncontrollable size.

I've been having a look through the docs and so far can't see a simple way to do it.

If i visit the URL https://example.org/status/queueSize  I get a raw integer back - I'm trying to chart that number.

Any suggestions?
#2
Hey,

So I'm trying to add instance discovery for some drives I've set the instance to be

FileSystem.MountPoints

Which works perfectly

However when I try to put any filter in (even if its just return true;) it seems to be not discovering any instances. I noticed in the recent changelog there was a tweak to filtering for instances, has something changes and I'm potentially doing something incorrect?

The Server is RC2
The Agent is RC2
The Console is RC2

Thanks!
mitch
#3
So like a few others I'm trying to get the 95th percentile for a interface, the way I'm trying to solve this would be to make a new DCI which takes all the values of a DCI, bubblesorts them and lops off the top 5% and then takes the next item.

The roadblock i'm running into :- is there a function to get a array of all previous DCI values?

If there isn't I don't suppose I can put in a feature request could I? GetDCIValues(nodeID, startTime, endTime) which just accepts a node id, a unix timestamp start time and a unix timestamp end time and all it does is spit out an array of all the DCI Values between the two values?

Thanks!
mitch
#4
Hey,

Is it possible to use functions in transformation scripts? What I'm trying to do is get the load average over the processor count.

So I would assume something along the lines of

sub main()
{
   return ($1 / System.CPU.Count());
}

Is this possible and if so what am I doing wrong? :)

Thanks !!
#5
General Support / Using variables in parameters
August 16, 2013, 04:58:19 PM
Hey,

So I'm trying to get a CheckSSH function working (in a template).  I am trying to check (through a proxy) that the SSH port is open.

Is there any way to get the ipAddress for the current node in the parameters function of the DCI configuration page.

I've tried

ServiceCheck.SSH($node->ipAddr)
ServiceCheck.SSH(%{node_primary_ip})
ServiceCheck.SSH($1->ipAddr)

But no luck, is there a way? It is highly possible I just can't find the docs that show how to do it.

Thanks!
mitch
#6
Hiya,

I am hoping someone can point me in the right direction. What I'm trying to do is

When a new node gets added to the netxms server, if the node is an agent and is linux then automatically join it to a container called "Linux Servers".  <-- I can do this part easy enough
Once a node has joined the Linux Servers container then automatically create a DCI (if it doesn't exist) on another Node (MonitoringServer) which performs a PortCheck on SSH

I'm struggling with this second part, mainly finding someone to hook the "has joined" script onto, is this even possible? What I'm trying to accomplish is when a new node is added (of type linux) to the server I start monitoring its SSH port to make sure SSH is up and running.

Thanks!
mitch