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

#1
General Support / Script execution error
May 20, 2021, 01:51:41 PM
Hi,

I have a script execution error since upgrading to 3.8-366.  Is it a problem with the script?

Script (Hook::ConfigurationPoll) execution error: Error 14 in line 2: Function or operation argument is not an object

// remove dynamic interfaces on Mikrotik, e.g. VPN users
if ($node->driver  == "MIKROTIK")
{
  intArray = GetNodeInterfaces($node);
 
  foreach (int : intArray)
  {
    // if the interface is dynamic
    if ((left(int->name, 1) == "<") && (right(int->name, 1) == ">"))
    {
      // delete the interface
      DeleteObject(int);
    }
  }
}


Thanks in advance.
#2
General Support / Web console installation
September 16, 2020, 12:16:20 PM
I am trying to run the latest (3.5.90) WebApp on Ubuntu 20.04 with Jetty but get this when I browse to the URL.  Have tried different versions of Java and also tried Tomcat as well.  What have I missed?  Thanks.

{"description":"NetXMS web service API version 3.5.90","version":"3.5.90","build":"3.5-90-g215397d8e7"}
#3
General Support / Network map link speed colours
January 25, 2017, 12:51:26 PM
Apologies if this has been covered before but I am not managing to find the details.

I am looking to colour the links on a network map based on the throughput as a percentage of the link speed.  Is this possible and, if so, how do I do it?

Many thanks.
#4
Hi,

As a new user to NetXMS I still cannot believe just how easy it is to use.  I have been looking for a replacement to the old RRD based systems for a while and this is blowing everything else away.  I just have a couple of things I am struggling to get worked out (custom scripting seems the way to go with these) that I would like to iron out before I add it to my production.  I have split them in to two posts to keep it simpler.

This topic is about reading data from a text file.  I am using MikroTik APs managed from a central device.  It is possible, using SNMP, to get a count of all clients attached across all the radios but I am looking to go in to more detail, e.g. clients per radio or clients per SSID.  I cannot get this from SNMP so have scripted the MikroTik to dump a text file at regular intervals listing the SSID and radio ID for each active client.  Here is an example of what it looks like.

ssid1::cap001-1
ssid1::cap001-2
ssid1::cap002-1
ssid1::cap002-2
ssid1::cap001-2
ssid1::cap001-1
ssid1::cap002-2
ssid1::cap001-2
ssid2::cap002-1-1
ssid2::cap001-2-1


The big question is how can I filter that in to results.  So maybe counting all the lines containing cap001 or cap001-2 (for the specific radio in a dual band device) or even more granular for ssid1::cap001-2 for all client connected to that SSID on that band on that radio.

Anything to point me in the right direction would be appreciated.

Many thanks.
#5
General Support / Count SNMP walk results
June 07, 2016, 10:50:53 PM
Hi,

As a new user to NetXMS I still cannot believe just how easy it is to use.  I have been looking for a replacement to the old RRD based systems for a while and this is blowing everything else away.  I just have a couple of things I am struggling to get worked out (custom scripting seems the way to go with these) that I would like to iron out before I add it to my production.  I have split them in to two posts to keep it simpler.

This topic is an SNMP Walk query.  I am trying to work out how I can count the lines in a SNMP Walk.  For example, I might want to count the number of Arp entries where no SNMP OID exists.  I would like to be able to get just a count as an integer from walking 1.3.6.1.2.1.4.22.1.2.  Is this possible?

Many thanks.
#6
Hi,
I have been trying to work out why my NetXMS install is not giving me a Layer 2 map.  It is only a small test network with a Mikrotik CRS in the centre (sat between a Mikrotik router and a couple of Mikrotik access points).  I think I have narrowed it down to NetXMS being unable to retrieve the forwarding database from the switch.  Does anyone else have a similar experience and/or what can I do to get these values so NetXMS can retrieve it.
Many thanks.