Skip to content

Support

5.1k Topics 22.0k Posts

Questions about installing, configuring and using NetXMS.

  • NxShell Interaction Help - Strange error in script

    1
    0 Votes
    1 Posts
    10k Views
    B
    Hello everyone! I'm creating a script to populate nodes from my network, getting them from a ".csv" file. It's working pretty fine, but I can't use the method "setIpAdress()" from NXCObjectCreationData. In the method call bellow "cd" is a NXCObjectCreationData object and "objectIp" is a string with the IP formated such as in "192.168.2.1". cd.setIpAddress(InetAddress.getByName(objectIp)) When I execute the script I get the following error: TypeError: setIpAddress(): 1st arg can't be coerced to org.netxms.base.InetAddressEx I couldn't find the class org.netxms.base.InetAddressEx on the API and it's stated on the NCXObjectCreationData reference that "setIpAdress()" should receive an InetAdress instance. Could you guys help me on this? Thanks in advance! Edit: I'm using the 2.0.M4 version.
  • Node Down Status only after 2 polls

    2
    0 Votes
    2 Posts
    21k Views
    Dani@M3TU
    that's the right server setting, yes.
  • DCI Summary Table to Excel Query

    2
    0 Votes
    2 Posts
    24k Views
    A
    You can automate it a bit using nxshell (which is python internally) – generate CSV or xlsx file. However, if you want fully automated reports – you need to use some kind of reporting engine, either built-in Jasper or some external solution. Sample script which export summary table into csv file: #!/usr/bin/env python # -*- coding: utf-8 -*- import csv, sys menuPath = "Table1" # Table's "Menu Path" baseObjectId = 2 # Infrastructure Services outputFile = 'test.csv' for table in session.listDciSummaryTables(): if table.getMenuPath() == menuPath: result = session.queryDciSummaryTable(table.getId(), baseObjectId) if result: with open(outputFile, 'w') as f: w = csv.writer(f, dialect='excel') columns = [] for c in result.getColumns(): columns.append(c.getDisplayName()) w.writerow(columns) # Header for row in result.getAllRows(): cells = [] for i in range(0, row.size()): cells.append(row.get(i).getValue()) w.writerow(cells)
  • NXSL Script - Get DCI Comments?

    5
    0 Votes
    5 Posts
    63k Views
    D
    Ok, thanks again Victor.
  • "SYS_NODE_DOWN" Event not processed bei EPP

    18
    0 Votes
    18 Posts
    69k Views
    Dani@M3TU
    Wow, thank you very much for the quick fix. I just tested and I can confirm it's fixed. Thanks Dani
  • Release

    2
    0 Votes
    2 Posts
    37k Views
    V
    Hi, most likely near end of June. Best regards, Victor
  • Error upgrading from NetXMS 2.0-M2 to M3 (error in upgrading MSSQL DB

    4
    0 Votes
    4 Posts
    36k Views
    V
    Hi, should be fixed in 2.0-M4. Best regards, Victor
  • MAC Vendor lookup Script

    2
    0 Votes
    2 Posts
    26k Views
    G
    Ok, little more testing and I've managed to do it. Requires nmap on server, used an External Parameter in the agent config : ExternalParameter = MAC.Check(*):nmap -sP -n $1 | grep MAC Created a template DCI to read MAC.Check(%{node_primary_ip}) via the server as a proxy node, applied the template, bobs your uncle... all working  ;D Once again , really impressed with NetXMS, this is going to be a fun tool to learn.
  • Windows Eventlog - No SendTrap() from Agent

    4
    0 Votes
    4 Posts
    29k Views
    S
    Hi Victor, works perfect... thanks for the hint... Greets Marco
  • Windows Event Log parser

    8
    0 Votes
    8 Posts
    42k Views
    V
    Hi, I've added additional level mask 256 to match critical events. Best regards, Victor
  • Script SNMP on event processing policy

    9
    0 Votes
    9 Posts
    37k Views
    S
    That script worked for me: sub main() {     if ( index($event->message, "Success"))return 1;          else return 0;  }
  • How to do Service Dependency

    1
    0 Votes
    1 Posts
    14k Views
    G
    Hi, I am a new NetXMS user. My question is: how to make service dependency? For example: I have a power supply and a server that uses the power supply. If the power supply gets down, the server gets down too. At this moment, the alarm browser on NetXMS will show me this two erros. What i need to do is: instead the NetXMS show me this two erros, it show me just the power supply error, because the server error is caused by the power supply error (down status), with this i have the server dependent on the power supply. Do you can please help me with this? Thanks, Gabriel
  • Test a load balanced website for content

    1
    0 Votes
    1 Posts
    13k Views
    P
    So I've got my load balanced web servers.  I'd like to check the health of the load balanced site on the local web server, but I need to be able to send a host header because if I use the actual site name, it gets sent to the load balancer and therefore I don't know if my individual webserver is having an issue.  From what I can tell ServiceCheck.HTTP and HTTPS, while they have a configuration option for host header, they do not actually use it. Do any of the agent tests support host headers?  I see Service.Check is based on curl -- can I send it a --headers somehow? pace
  • Windows server maxed out CPU and RAM, Notifications going crazy

    6
    0 Votes
    6 Posts
    17k Views
    S
    I currently have 113 Server reporting
  • Error Creating Node: Object Already Exists

    4
    0 Votes
    4 Posts
    10k Views
    V
    Hi, try to restart server after you mark interfaces. There may be a bug that keeps interfaces in internal indexes even after you set exclude from topology option. Best regards, Victor
  • 0 Votes
    1 Posts
    6k Views
    P
    In 2.0M3 when I create a new Business Service Service Check Template it never seems to apply to anything that has already been created within or below the level where I create the template.  If I delete linked nodes that are at this level or below and add them back in after the template has been created then they get the expected Service Check applied to them. pace
  • Monitor a website as a Business Service Check

    1
    0 Votes
    1 Posts
    8k Views
    P
    I'm trying to monitor a website that is on a load balancer as part of a business service.  I'm not sure I'm approaching this the right way.  Should I add a "Service Check" -- if yes, what sort of script should I use to do the equivalent of a Service.Check? Thanks for the help! pace
  • Server Restart causes lots of alerts

    3
    0 Votes
    3 Posts
    13k Views
    P
    Cool.  I can confirm the 2.0M3 does it... pace
  • Website monitoring using network service

    Locked
    17
    0 Votes
    17 Posts
    34k Views
    G
    It took a while to update (~5 mins) but now I see that the status of both services is "0", which is "Normal" (https://wiki.netxms.org/wiki/UM:Event_Processing#Macros_for_Event_Processing). It seems that either the removal of the authentication or the modification of the shared secret in all the configs worked. I would like to thank everyone who contributed to this thread! You are a very helpful community! (P.S.: I will update the first post to show how I solved my problem)
  • scheduled downtime

    3
    0 Votes
    3 Posts
    19k Views
    A
    https://www.netxms.org/documentation/adminguide/event-processing.html#setting-up-maintenance-window