Skip to content

Support

5.1k Topics 22.0k Posts

Questions about installing, configuring and using NetXMS.

  • 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
    47k 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
    91k 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
    105k 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
  • monitor windows server

    3
    0 Votes
    3 Posts
    31k Views
    A
    Hello. Check this: http://wiki.netxms.org/wiki/How_to_send_e-mail_notification_when_disk_space_is_low
  • alarm visualisation problem- object tree

    10
    1
    0 Votes
    10 Posts
    52k Views
    V
    Looks like some bug either in console or server cause incorrect severity value in the rule, and then this severity was copied into all matching alarms. I'll do additional source code checks to find out the root cause. But your configuration should be good now. Best regards, Victor
  • new nodes search function [SOLVED]

    3
    0 Votes
    3 Posts
    21k Views
    S
    Neat! Thanks for pointing that out for me. This is perfect solution. Have to apologize for not using the search button (really, when one does not use search it turns out to be really easy problem which has already been solved and well documented  :o).
  • Adding monitoring status of matrix in NetXMS.

    2
    0 Votes
    2 Posts
    15k Views
    G
    Problem solved. I extend snmp and create scripts in each server. If matrix is ok then i get no alarm, else alarm appears. Now i have problem with blinking statistics.For example i get values from each minute, almost all of them are "0", but sometimes i see other values. That other values generate me false alarm. So question - how to setup threshold to avoid false alarms. Maybe something with delta?  EDIT: Solved, simple change number of samples works.
  • Can't install netxms-base_1.2.12_amd64.deb on wheezy debian

    8
    0 Votes
    8 Posts
    25k Views
    N
    Thanks for the post. Its really helped me. Actually I joined this forum to clear the Netxms installation problem. I am working as network admin in link removed, so decided to install this software. But a problem occurred while installation and also had some database upgradation problem. This post is useful and no need of a new post regarding the installation error. I have got the solution.
  • different presentation images for a node in different network maps

    3
    0 Votes
    3 Posts
    15k Views
    P
    Any progress in this regard