Skip to content

Support

5.1k Topics 22.0k Posts

Questions about installing, configuring and using NetXMS.

  • [SOLVED] Alarm summary mail shows alarms from deleted nodes

    2
    0 Votes
    2 Posts
    11k Views
    T
    Dear all, this was simply not true. The node we assumed we had deleted was still visible in "Entire Network" and therefore not deleted. Really deleting the node removed also the alarms (on-screen and in the summary mail). Kind regards, Thomas
  • MQTT on windows

    2
    0 Votes
    2 Posts
    14k Views
    V
    Hi, looks like we did not rebuild libmosquitto (we ship agent with our own build) after moving to OpenSSL 1.1. Attached is correct version of libmosquitto.dll - replace old one in NetXMS\bin and subagent should start. I assume you have 64 bit system - let me know if you need 32 bit version of dll. Best regards, Victor libmosquitto.dll
  • db query issues v2.2.11

    2
    0 Votes
    2 Posts
    17k Views
    hayarmH
    https://www.netxms.org/forum/installation/update-from-2-2-10-to-2-2-11-log-flooding/
  • Anyone Monitoring Powerdns Recursor or Authoritative server with NetXMS

    1
    0 Votes
    1 Posts
    16k Views
    C
    Hi I would like to monitor PowerDNS Server, its stats and status and graphs like QPR, RPS, Stats of Query types etc, Has anyone been able to get this working? Regards Clifford Dsouza
  • Add NetXMS datasource in Grafana

    Locked
    3
    1
    0 Votes
    3 Posts
    20k Views
    G
    Hello, Thanks you for your response ! I solved my problem, the reason is due a non configuration of my API
  • Script for synology NAS

    5
    0 Votes
    5 Posts
    26k Views
    C
    Hi, I have resolved this script error. I found mistake on first line "raid_Status= GetDCIValueByName($node, "raidStatus");" DCI parameter must be configured by DCI ID "raid_Status= GetDCIValueByName($node, "1.3.6.1.4.1.6574.3.1.1.3.0"); Now everything is working fine. First I am put suggested code to eliminate error for null value of DCI parameter and after that I went to read again function GetDCIValueByName and found my mistake of parameters description. Also, I will try the second suggestion to put script directly in Threshold of DCI value but I have only one solution resolved. Thanks guys, Have a nice day and happy new year 2019. Tomislav
  • [SOLVED] format string in DCI Container not working

    6
    0 Votes
    6 Posts
    23k Views
    A
    Hello, Thanks for all the feedback. My problem was (of course) entirely my mistake. I did not understand the difference between integer and Floating Point data type. An integer is just that, a whole number and so cannot get decimal places. So trying to use %.2f format string with integer cant work. I Changed my DCIs to Floating point, and now %.2f for 2 decimal places is working fine. Apologies to all. Alex
  • MIB explorer does not show anything. OID not appear

    5
    0 Votes
    5 Posts
    25k Views
    V
    Hi, do you have any errors in GUI client log file? It is usually called .nxmc/data/.metadata/.log under your home directory. Best regards. Victor
  • 0 Votes
    7 Posts
    29k Views
    T
    Yes, you'll need to upgrade. I think your version is about four years old, there have been a lot of changes and improvements since then.
  • [SOLVED] Networks Maps broke

    4
    0 Votes
    4 Posts
    20k Views
    A
    Hi Victor, Thanks. That works. Alex
  • Problems with startup (DB, service netxmsd)

    2
    0 Votes
    2 Posts
    13k Views
    T
    You are trying to import a binary file, not the actual dbinit file. For Postgres, the file you need to import is named dbinit_pgsql.sql. The documentation (https://www.netxms.org/documentation/adminguide/installation.html) gives the following sample command (your actual paths will likely differ): /usr/local/bin/nxdbmgr init /usr/local/share/netxms/sql/dbinit_pgsql.sql
  • [SOLVED] GeoLocation function not found

    4
    0 Votes
    4 Posts
    14k Views
    L
    That was the fix, thanks!
  • NetXMS generating errors in hosting server event log

    4
    0 Votes
    4 Posts
    22k Views
    V
    Fixed in 2.2.11
  • solved & new nxsl script: multiple objects representing single device

    4
    1
    0 Votes
    4 Posts
    23k Views
    meshnetM
    Well, the post pretty much answers itself. Without an 'entire network' object/container, all nodes end up being bound/binded to Infrastructure Services. So... Also wrote a script (first draft, you should optimize this or add it to another Hook:: script for efficiency) to block unwanted auto-discovery networks. This tremendously helps anyone create Layer-3 IP generated NetXMS Maps by removing 'common' subnets such as 192.168.88.1 or 192.168.20.1 or 169.254.0.1 etc.. So Here's the script, it does a few simple things but most importantly removes any 'unwanted' networks from the 'Entire Networks' container/zone How can this script be improved? Should it exist in configuration? Or in Hook::AddNode? (is that it?) It's been hand edited/cleaned up, and untested.. so please don't run this on production without reviewing everything it does. sub main() { $logo = "Hook::ConfigurationPoll "; trace(1, $logo . "Review and Edit this hook script dummy!"); return; // // Rename if Null (For say, Netonix PoE switches) // if (($node->snmpSysName != null) && ($node->snmpSysName != "")) { if ($node->name != $node->snmpSysName) { RenameObject($node, $node->snmpSysName); } } // // Shut SNMP polling off for Agents, and vice versa. // if ($node->isAgent == 1) { $node->enableSnmp(false); } else if ($node->isSNMP == 1) { $node->enableAgent(false); } $only_allow_example_address = "10.69.0.0"; $only_allow_example_subnet = "255.252.0.0"; interfaces = GetNodeInterfaces($node); foreach(iface : interfaces) { addrList = iface->ipAddressList; // // Nuke interfaces which do not have an IP address. Some devices may have 4,000 VLANs created by default. // if ((addrList[0] == null) && (iface->status == managed_status_code)) { trace(1, $logo . "(" . string($node->name) .") No IP addresses on interface -- UNMANAGED: " . string(iface->name) ); UnmanageObject(iface); } $i = 0; foreach(ip : addrList) { $i = $i + 1; trace(1, $logo . "addrList[" . iface->name ."]:: " . $node->name . " - #". $i ." ". ip->address); $is_example_address_valid = AddrInSubnet(ip->address, $only_allow_example_address, $only_allow_example_subnet); if ($is_example_address_valid == false) { trace(1, $logo . "Unwanted ip address found: " . ip->address); parents = GetNodeParents($node); foreach(p : parents) { if (p->type == 1) { $is_node_subnet_valid = AddrInSubnet($ipAddr, $only_allow_example_address, $only_allow_example_subnet); $is_example_address_valid = AddrInSubnet(ip->address, $only_allow_example_address, $only_allow_example_subnet); // // While iterating, we stumbled on and are now removing: Unwanted Subnet in Object: " . p->name . " @ id #" . p->id . " (" . p->type . ")" ); // if ($is_example_address_valid == false) { DeleteObject(FindObject(p->id)); } // // Found exact and unwanted Subnet in Object: " . p->name . " @ id #" . p->id . " (" . p->type . ")" ); // $this_ip_in_subnet_object = AddrInSubnet(ip->address, p->ipAddr, "255.0.0.0"); if ($this_ip_in_subnet_object) { // // This is where you can run p->setExcludeFromTopology(true); // DeleteObject(FindObject(p->id)); } } // end if: (type == subnet) } // end of foreach: parents->GetNodeParents(node) } } // end foreach: iface->ipAddressList } // end foreach GetNodeInterfaces } // end Main
  • 0 Votes
    1 Posts
    13k Views
    R
    I am currently having problems checking open ports with the Network Service Object. OS: Ubuntu 16.04.5 LTS NetXMS: 2.2.10 NxAgent: 2.2.10 CPU: 4 Cores RAM: 4GB I have installed the SubAgent PORTCHECK and it loads successfully. But every device the port check returns with the error "Unable to check service status due to agent or communication error". I have checked, Agent is running Firewall NMAP on server returns open ports Reboot Server Restart NetXMS and NXAgent service   NxAgent Output 2018.12.18 10:42:09.195 Log file opened (rotation policy 2, max size 4194304) 2018.12.18 10:42:09.196 *D* Log rotation policy set to 2 (size=16777216, count=4) 2018.12.18 10:42:09.196 *I* Core agent version 2.2.10 2018.12.18 10:42:09.196 *I* Additional configs was loaded from /etc/nxagentd.conf.d 2018.12.18 10:42:09.196 *I* Debug level set to 0 2018.12.18 10:42:09.196 *I* Data directory: /var/lib/netxms 2018.12.18 10:42:09.196 *I* File store: /tmp 2018.12.18 10:42:09.212 *I* DB Library: Database driver "sqlite.ddr" loaded and initialized successfully 2018.12.18 10:42:09.349 *I* Agent ID is 0e337872-fd79-45a7-9d3c-af97e58362e6 2018.12.18 10:42:09.358 *I* Local host name is "NetXMS.office.pocketinet.com" 2018.12.18 10:42:09.358 *I* Using system name "NetXMS" 2018.12.18 10:42:10.375 *I* Subagent "Linux" (linux.nsm) loaded successfully (version 2.2.10) 2018.12.18 10:42:10.377 *I* Subagent "PORTCHECK" (portcheck.nsm) loaded successfully (version 2.2.10) 2018.12.18 10:42:11.382 *I* Listening on socket 0.0.0.0:4700 2018.12.18 10:42:11.382 *I* Listening on socket [::]:4700 2018.12.18 10:42:12.383 *I* NetXMS Agent started 2018.12.18 11:12:02.051 *I* NetXMS Agent stopped Node Status Poll [20.12.2018 08:44:57] **** Poll request sent to server **** [20.12.2018 08:44:57] Poll request accepted [20.12.2018 08:44:57] Starting status poll for node Unifi Controller [20.12.2018 08:44:57]    Starting status poll on interface unknown [20.12.2018 08:44:57]      Current interface status is NORMAL [20.12.2018 08:44:57]      Starting ICMP ping [20.12.2018 08:44:57]      Interface is NORMAL for 2421 polls (1 poll required for status change) [20.12.2018 08:44:57]      Interface status after poll is NORMAL [20.12.2018 08:44:57]    Finished status poll on interface unknown [20.12.2018 08:44:57]    Starting status poll on network service Port 8080 [20.12.2018 08:44:57]      Current service status is UNKNOWN [20.12.2018 08:44:57]      Polling service from node NetXMS [IP REDACTED] [20.12.2018 08:44:57]      Unable to check service status due to agent or communication error [20.12.2018 08:44:57]    Finished status poll on network service Port 8080 [20.12.2018 08:44:57]    Starting status poll on network service HTTP [20.12.2018 08:44:57]      Current service status is UNKNOWN [20.12.2018 08:44:57]      Polling service from node NetXMS [IP REDACTED] [20.12.2018 08:44:57]      Unable to check service status due to agent or communication error [20.12.2018 08:44:57]    Finished status poll on network service HTTP [20.12.2018 08:44:57]    Starting status poll on network service test 10001 [20.12.2018 08:44:57]      Current service status is UNKNOWN [20.12.2018 08:44:57]      Polling service from node NetXMS [IP REDACTED] [20.12.2018 08:44:57]      Unable to check service status due to agent or communication error [20.12.2018 08:44:57]    Finished status poll on network service test 10001 [20.12.2018 08:44:57]    Starting status poll on network service ssh [20.12.2018 08:44:57]      Current service status is UNKNOWN [20.12.2018 08:44:57]      Polling service from node NetXMS [IP REDACTED] [20.12.2018 08:44:57]      Unable to check service status due to agent or communication error [20.12.2018 08:44:57]    Finished status poll on network service ssh [20.12.2018 08:44:57] Node is connected [20.12.2018 08:45:01] Finished status poll for node Unifi Controller [20.12.2018 08:45:01] Node status after poll is NORMAL [20.12.2018 08:45:01] **** Poll completed successfully **** I have checked these forum posts and either its about checking web pages or I have already done all the things. https://www.netxms.org/forum/configuration/network-service/msg9702/#msg9702 https://www.netxms.org/forum/configuration/website-monitoring-using-network-service/msg16373/#msg16373 https://www.netxms.org/forum/general-support/cannot-figure-web-site-monitor/msg7382/#msg7382 Any help would be appreciated. Jarred
  • SNMP - MIBs Walk Result is Blank

    3
    2
    0 Votes
    3 Posts
    16k Views
    J
    Thanks Tursiops, Regards, JunoonGuy
  • Syslog Parser - Repeat Count not working?

    1
    0 Votes
    1 Posts
    12k Views
    M
    Related to this https://www.netxms.org/forum/general-support/syslog-parser-how-to-parse-the-actual-syslog-message-in-the-alert/ whereby I want to log incorrect login attempts. But only want to generate the alert when there are i.e. 3 invalid login attempts within 30 seconds So I set the 'Repeat Count' to 3 and 'Repeat interval' to 30 seconds but it doesn't seem to do anything at all. Every single invalid login attempt generates an alert Edit: This is a bug I noticed when I set the timer value in the 'Editor' view it would show, but when I change to 'XML' view the repeatcount is 0 Even if I change it in the XML view, if I exit and come back it goes back to 0 again. That is unless I set the value at least 60 or higher. It seems it doesn't like having any form of seconds as the repeat interval, it must be a minute or more Edit2: Additionally this seems to apply to all SysLog messages, not to the specific device/IP it was received from so if I try to login to DeviceA 2x, then DeviceB 2x and repeat this cycle every 60 seconds. I will get a Slack message saying I failed to login to DeviceB on the first attempt (I shouldn't get an alert at all)
  • Syslog Parser - How to parse the actual syslog message in the alert?

    1
    0 Votes
    1 Posts
    18k Views
    M
    Have setup a syslog parser that generates an event. Then I created an event processing policy that looks for that event and then it triggers an action (in this case, SLACK notification) In this case it's a "login failure" message, and in the syslog message it includes the user account and IP address trying to login. I'm getting the notification come through just fine, but it doesn't include the syslog text. I need that to be parsed through the event chain so I can see exactly what the message said I'm not sure what parameter to add, and where exactly to add it? Do I add it to the Event, the Action? or the Event Processing Policy? Edit: Nevermind figured it out. It's at the bottom of this page for anyone wondering https://www.netxms.org/documentation/adminguide/log-monitoring.html Consider the following line is received via syslog, or added to a monitored file: 24.04.2015 12:22:15 1 5 system,error,critical login failure for user testUser from 11.2.33.41 via ssh We can extract username and login method from the syslog message, and pass it as parameters to an event with the following rule: <match>system,error,critical login failure for user (.*) from .* via (.*)</match> <event>10000</event> Username will be sent to the event as %1, IP address will not be sent, and login method will be sent as %2. I actually did want to match the IP address so I changed the 'match' field in the syslog parser to "system,error,critical login failure for user (.*) from (.*) via (.*)" Then I change the Event Configuration to "Login Failure: %1 - %2 (%3)" And the Action to have text "%n - %m %M" which ultimately results in a message such as the below when failing a login attempt Office Router - Login Failure: SpamUser - 1.2.3.4 (ssh)
  • Offline copy of maps (in PDF, jpg, png, ...)

    1
    0 Votes
    1 Posts
    16k Views
    BroughB
    Does anyone have an automated way to screen capture copies of each map for offline storage? Our field guys sometimes need to work where cellular coverage is marginal, they have no way to access NetXMS and yet they need IP addresses and connectivity information that is visible in NetXMS maps.  In the early days, we manually copied maps to the clipboard, pasted them into a graphics program, printed them to pdf and stored them in a Dropbox folder that was locally replicated to peoples' devices. That worked well when we had <20 maps.  Today we have hundreds of map pages, so people have to phone in for help - that's OK during the day but less reliable on weekends.
  • My core dont start after update

    2
    0 Votes
    2 Posts
    22k Views
    D
    My system running server 2008 Netxms version 2.2.10