Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

S

squeezypiano

@squeezypiano
Unfollow Follow
About
Posts
28
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Script execution error
    S squeezypiano
    Support

    Thanks, that looks to have sorted it. Strange that script has been running for a year and only broke after the last update.


  • Script execution error
    S squeezypiano
    Support

    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.


  • Set Web Console server IP
    S squeezypiano
    Support

    I had the same a few months ago and found it easiest to add a hosts file entry for NETXMS_SERVER on the host running the Web GUI.


  • Web console installation
    S squeezypiano
    Support

    Thanks so much for the help and guidance, it's much appreciated.  All working happily now and my frustration is over 🙂


  • Web console installation
    S squeezypiano
    Support

    I definitely do not have an entry anywhere but by adding it I can now log in to the WebUI.  So does it not attempt local before checking for NETXMS_SERVER or should there always be an entry for NETXMS_SERVER?


  • Web console installation
    S squeezypiano
    Support

    Oh now that's interesting.  Hadn't found that log file but in there it has:

    !MESSAGE Server address resolved from NETXMS_SERVER: x.x.x.x
    

    The address being returned is not the address of itself but for the @ record for the machine's domain, which in this case is a public address.  What is it trying to resolve to get that?  As far as I can tell /etc/hosts and DNS are set up correctly.


  • Web console installation
    S squeezypiano
    Support

    Ah, yes, OK.  So HTTP loads but gives the connect error when I try to log in.  The server is running and I can connect from the desktop console just not the WebUI.


  • Web console installation
    S squeezypiano
    Support

    Thanks, but I don't think I have SSL enabled and the page loads fine just will not connect to the service.  When I try to log in I get 'Connection error, connected timed out'.  Does it need SSL enabling?


    Screenshot.png


  • Web console installation
    S squeezypiano
    Support

    Is anyone able to help, please?  Still cannot get it working.  Here is what I did on Ubuntu 20.04 to install...

    wget http://packages.netxms.org/netxms-release-latest.deb
    dpkg -i netxms-release-latest.deb
    
    apt-get update
    
    apt-get dist-upgrade -y
    
    apt-get install postgresql postgresql-contrib tomcat9 -y
    
    sudo -u postgres psql
    
    CREATE DATABASE netxms;
    CREATE ROLE netxms WITH LOGIN;
    \password netxms
    GRANT ALL PRIVILEGES ON DATABASE netxms TO netxms;
    \q
    
    apt-get install netxms-server netxms-dbdrv-pgsql netxms-agent -y
    
    nano /etc/netxmsd.conf <-- uncomment psql and add password
    
    nxdbmgr init
    
    systemctl enable netxmsd
    systemctl restart netxmsd
    
    cd /tmp
    wget https://www.netxms.org/download/releases/3.5/nxmc-3.5.90.war
    mv nxmc-3.5.90.war /var/lib/tomcat9/webapps/nxmc.war
    

  • Web console installation
    S squeezypiano
    Support

    Yes, desktop client is working just fine.


  • Web console installation
    S squeezypiano
    Support

    Hi Victor.
    Log files attached following a clean install.
    Many thanks.


    catalina.2020-09-21.log

    localhost_access_log.2020-09-21.txt


  • Web console installation
    S squeezypiano
    Support

    OK, so now I can get the page to load but it will not log in.  System is Ubuntu 20.04 (also tried on 18.04) and tried with native JDK, openjdk-8-jdk on both jetty9 and tomcat9 but all combinations it fails with 'connect timed out'.  Server is running and can connect from desktop console and WebUI is installed on the same machine as the server with firewall disabled.  What am I missing?


  • Web console installation
    S squeezypiano
    Support

    Yeah, that would do it.  Apologies.  All the usual excuses but none of them valid  ::)


  • Web console installation
    S squeezypiano
    Support

    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"}
    

  • Network map link speed colours
    S squeezypiano
    Support

    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.


  • Read text file and count matched items
    S squeezypiano
    Support

    Genius! Thank you. Tested that and it all started working.  Switched CheckTrustedNodes back to 1 and added Trusted Nodes to the node containing the DCI and that is working now too.  It seems slightly strange, however, that to use the -o option to send a value for the node doing the actual sending requires it to list itself in Trusted Nodes.

    Thanks again 🙂
    P


  • Read text file and count matched items
    S squeezypiano
    Support

    I have spun up another box in case there was a problem with something on it and can now get data from, for example,

    nxapush param1=4
    

    Still cannot get anything using -o to push on behalf of another node.  I can work around this but it would nice if I could work it as it would keep a cleaner config.

    Thanks for your help.


  • Read text file and count matched items
    S squeezypiano
    Support

    I am using the paramater not description so should be good there.  Can you confirm which ID the object ID is, please?  Is it the ID of the DCI?


  • Read text file and count matched items
    S squeezypiano
    Support

    Thanks for replying.  I have tried now with -o using DCI ID and node ID but neither is working still.


  • Read text file and count matched items
    S squeezypiano
    Support

    Hello,

    I am having trouble getting the push DCIs to receive values.  I followed these steps so far.

    1. Set your DCI’s origin to Push Agent and configure other properties as usual, excluding polling interval which is meaningless in case of pushed data.
    2. Create separate user account or pick an existing one and give “Push Data” access right on the DCI owning node to that user.
    3. Use nxapush utility for pushing data.

    I have tried nxapush with and without the user account I created, e.g.:

    ./nxapush param1=5
    

    and

    ./nxapush -u user -P password param1=5
    

    but I do not get any data in NetXMS.  I have used tcpdump on the agent and server machines (both Ubuntu) and can see the data bent sent and received by the OS.  I have also tried the same commands using nxapush on the NetXMS server too.

    If I run nxapush with -vv I get only one line out saying 'Connected to NetXMS agent' and that is all (was expecting a full debug).

    I guess I'm missing something but I cannot work out what.  Can anyone give me some guidance, please?

    Thanks in advance,
    P

  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups