Skip to content

Support

5.1k Topics 22.0k Posts

Questions about installing, configuring and using NetXMS.

  • Windows 2K8, NETXMS and PostgreSQL

    2
    0 Votes
    2 Posts
    19k Views
    B
    Hello. Problem is, that you don't have installed "Microsoft Visual C++ 2008 Redistributable version 9". pgsql.ddr driver requires dll library from that package. You have to download it from Microsoft pages. Best Regards, Bohdan
  • struggling to configure a packet loss alarm

    8
    0 Votes
    8 Posts
    34k Views
    B
    hey all, can anyone assist? still cant get this working. kindest regards
  • Object Tools Config in a Mac

    4
    0 Votes
    4 Posts
    22k Views
    A
    I did a few tests on the Mac, and it seems that simplest ways to do it is this:echo ssh %OBJECT_IP_ADDR% > /tmp/nxcon.command; chmod +x /tmp/nxcon.command; open /tmp/nxcon.command
  • Error Getting Temperature of server

    1
    0 Votes
    1 Posts
    17k Views
    D
    hello I am trying to configure getting the temperature from a server but an error appears on the values Is there a way to fix this or it is not suppoorted thanks
  • Centralized package mangement

    1
    0 Votes
    1 Posts
    21k Views
    F
    I'm currently thinking about using NetXMS for centralized package management. My idea is to collect information of some client based package manager like chocolatey under Windows or apt under Linux and control the packages in NetXMS. I'm talking about smaller networks which don't need a full-blown software distribution solution, just a simple possibility for installing, uninstalling and updating packages on some or all systems in the network. For that purpose some additions in management console and agent would be helpful: I think NetXMS shouldn't reinvent something new for what concerns the actual package management on the client. A generic interface (in form of some additional config parameters in the agent configuration) would be enough, calling external commands for collecting installed packages, installing a package, updating etc. This can already be done using config parameters ExternalList or ExternalParam. A policy for software packages like the existing one for agent configuration, which automatically installs and updates the defined packages on nodes. Maybe right now possible using actions and some external scripts, but I definitivly don't want to do that. A few overviews which show the actual package status on one and many nodes. I don't think this is possible right now. Some context menu options for quick install and uninstall would be nice. Available through object tools at the moment. What do you think?
  • Set Primary Host Name to SNMP sysName

    4
    0 Votes
    4 Posts
    41k Views
    M
    I have it working now.  Somehow the $ from all of node (s) were removed.
  • struggling to write any alarm thats not in the system allready

    3
    0 Votes
    3 Posts
    45k Views
    B
    Good morning victor, thanks for the hep so far. Ok so i have tried following your settings: I have created an unsigned integer but its just not firing at all. so when i reboot the router i just get the node down alarm and interface down alarms associated with it. not sure what i am doing wrong! (see attached doc with pictures) snmp reboot test.docx
  • Agent Authentication

    3
    0 Votes
    3 Posts
    45k Views
    P
    Thanks, I used nxencpassw.exe and it works ... I thought that it is used standardly SHA1 and MD5
  • Agent Actions parameters not working

    4
    0 Votes
    4 Posts
    42k Views
    F
    --- "a/C:\\Users\\VS2005\\AppData\\Local\\Temp\\TortoiseGit\\ses76AB.tmp\\session-b45e65c-left.cpp" +++ "b/C:\\Code\\netxms-v1.2.16\\src\\server\\core\\session.cpp" @@ -7269,7 +7269,15 @@ void ClientSession::executeAction(CSCPMessage *pRequest) if (pConn != NULL) { pRequest->GetVariableStr(VID_ACTION_NAME, szAction, MAX_PARAM_NAME); - dwResult = pConn->execAction(szAction, 0, NULL); + int argc = pRequest->getFieldAsInt32(VID_NUM_ARGS); + TCHAR **argv = new TCHAR*[argc]; + for (int i = 0; i < argc; i++) + { + argv[i] = new TCHAR[256]; + pRequest->GetVariableStr(VID_ACTION_ARG_BASE + i, argv[i], 256); + } + dwResult = pConn->execAction(szAction, argc, argv); + free(argv); switch(dwResult) { --- "a/C:\\Users\\VS2005\\AppData\\Local\\Temp\\TortoiseGit\\NXC2518.tmp\\NXCSession-b45e65c-left.java" +++ "b/C:\\Code\\netxms-v1.2.16\\src\\java\\netxms-client\\src\\main\\java\\org\\netxms\\client\\NXCSession.java" @@ -4408,14 +4408,21 @@ public NetworkMapPage queryLayer2Topology(final long nodeId) throws IOException, * * @param nodeId Node object ID * @param action Action name + * @param args Action arguments * @throws IOException if socket I/O error occurs * @throws NXCException if NetXMS server returns an error or operation was timed out */ - public void executeAction(final long nodeId, final String action) throws IOException, NXCException + public void executeAction(final long nodeId, final String action, String[] args) throws IOException, NXCException { NXCPMessage msg = newMessage(NXCPCodes.CMD_EXECUTE_ACTION); msg.setVariableInt32(NXCPCodes.VID_OBJECT_ID, (int) nodeId); msg.setVariable(NXCPCodes.VID_ACTION_NAME, action); + if (args != null) + { + msg.setVariableInt32(NXCPCodes.VID_NUM_ARGS, args.length); + for (int i=0; i<args.length; i++) + msg.setVariable(NXCPCodes.VID_ACTION_ARG_BASE + i, args[i]); + } sendMessage(msg); waitForRCC(msg.getMessageId()); } --- "a/C:\\Users\\VS2005\\AppData\\Local\\Temp\\TortoiseGit\\Obj1C3B.tmp\\ObjectToolExecutor-b45e65c-left.java" +++ "b/C:\\Code\\netxms-v1.2.16\\src\\java\\netxms-eclipse\\ObjectTools\\src\\org\\netxms\\ui\\eclipse\\objecttools\\api\\ObjectToolExecutor.java" @@ -173,8 +173,30 @@ private static void executeTableTool(final NodeInfo node, final ObjectTool tool) */ private static void executeAgentAction(final NodeInfo node, final ObjectTool tool) { - final NXCSession session = (NXCSession)ConsoleSharedData.getSession(); - final String action = substituteMacros(tool.getData(), node); + final NXCSession session = (NXCSession)ConsoleSharedData.getSession(); + String _action = substituteMacros(tool.getData(), node); + + if (_action.endsWith("(*)")) + { + InputDialog dlg = new InputDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), + Messages.get().ObjectToolsDynamicMenu_Information, "Parameter", "", null); //$NON-NLS-1$ + if (dlg.open() != Window.OK) + return; + + _action = _action.replace("(*)", "(" + dlg.getValue() + ")"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + } + + String[] _args = null; + if (_action.indexOf('(') > 0) + { + String a = _action.substring(_action.indexOf('(') + 1, _action.length() - 1); + _args = a.split(","); + for (int i = 0; i < _args.length; i++) _args[i] = _args[i].trim(); + _action = _action.substring(0, _action.indexOf('(') + 1) + "*)"; + } + final String action = _action; + final String[] args = _args; + new ConsoleJob(String.format(Messages.get().ObjectToolsDynamicMenu_ExecuteOnNode, node.object.getObjectName()), null, Activator.PLUGIN_ID, null) { @Override protected String getErrorMessage() @@ -185,7 +207,7 @@ protected String getErrorMessage() @Override protected void runInternal(IProgressMonitor monitor) throws Exception { - session.executeAction(node.object.getObjectId(), action); + session.executeAction(node.object.getObjectId(), action, args); runInUIThread(new Runnable() { @Override public void run()
  • Version 1.2.16 'make install' fails, MIB compile error?

    6
    0 Votes
    6 Posts
    48k Views
    V
    Hi, can you provide a link to those MIBs that cannot be compiled? Also, do you have core file from nxdbmgr crsh? It can help fixing the issue. Best regards, Victor
  • v1.2.16 x64 services installation

    1
    0 Votes
    1 Posts
    24k Views
    L
    Hi, i have installed the mentioned version from scratch on windows x64 and the service was installed but it was missing the "-d" option. Regards, Lindeamon
  • Business-Service for a Year?

    1
    0 Votes
    1 Posts
    20k Views
    A
    Hi! I would like to get the Statistics in Business-Service for one Year - is it possible to set up? Thankyou!
  • Monitor HP ESXi Hardware

    2
    0 Votes
    2 Posts
    29k Views
    V
    Hi, you probably could do this via ESXi SNMP agent. VMWARE-ENV-MIB seems to provide status of physical components. What exact information is available probably depends on actual server model. I don't have any ESXi system available for test in my office, so I cannot confirm it 100%. Best regards, Victor
  • Syslog from source <unknown>

    19
    0 Votes
    19 Posts
    93k Views
    Dani@M3TU
    Hi Victor I just made my tests, works absolutely like expected. Thanks a lot, that helps us very much. Thanks Dani
  • invalid network mask

    3
    0 Votes
    3 Posts
    34k Views
    migaczM
    thank's Marcin
  • segfault netxmsd crash

    32
    0 Votes
    32 Posts
    107k Views
    V
    Hi, it seems that it is update of IP topology network map. I'll take a look at it. Best regards, Victor
  • help with cisco SG500

    2
    0 Votes
    2 Posts
    27k Views
    V
    Hi! NetXMS shows all interfaces reported by device. You may also see logical interfaces (like software loopbacks). To configure data collection for interface, right click on interface you want to monitor and choose "Create data collection items" from menu. Collected data will be displayed in last values for interface's node object. Best regards, Victor
  • Database problems

    3
    0 Votes
    3 Posts
    33k Views
    D
    Hi,  Thanks for that, there is plenty of disk space but the server did get dumped when the battery in the UPS failed and there was a power outage.  I've run the MySQL repair and will see how it goes, NetXMS core started without errors which is a good sign. Regards, David
  • Get server file list error

    2
    0 Votes
    2 Posts
    23k Views
    Z
    Hi, There were some problems with file manager in version 1.2.15. Your may be connected with this bug: https://www.radensolutions.com/chiliproject/issues/618. Bug fix is included in version 1.2.16. Please try to update NetXMS to version 1.2.16.
  • How to monitor only root files on linux system..

    3
    0 Votes
    3 Posts
    26k Views
    V
    Hi, you can do this using agent and parameter File.Size with recursive option set to on. For example, to monitor total size of all files under /home/user, add the following DCI: File.Size(/home/user,*,1) For reference, full description of File.Size is below: File.Size(path, pattern, recursive, size, age) where     path    : path to directory or file to check     pattern : pattern for file name matching     recursive : recursion flag; if set to 1 or true, agent will scan subdirectories     size      : size filter; if < 0, only files with size less than abs(value) will match;                           if > 0, only files with size greater than value will match     age      : age filter; if < 0, only files created after now - abs(value) will match;                           if > 0, only files created before now - value will match all arguments except path are optional. Same syntax is for File.Count, which will return number of files instead of size. Best regards, Victor