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

P

pouya.moradian

@pouya.moradian
Unfollow Follow
About
Posts
14
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Reporting Server
    P pouya.moradian
    Development

    Hi,

    Is there any complete instruction to installing reporting server on NetXMS 2.0 M5 ?
    I've seen (https://www.netxms.org/forum/installation/install-report-server/) but i cant find these jar file:

    alarm-history-1.0.0.jar
    alarm-resolution-time-1.0.0.jar
    alarm-resolution-time-statistics-by-users-1.0.0.jar
    dci-1.0.0.jar
    epp-1.0.0.jar

    the download link to these file is not available any more.
    Also i can't make a connection to oracle in config file.

    Best regards,
    Pouya


  • Passing parameter to action from NETXMS console
    P pouya.moradian
    Development

    Hi,

    Yes, it seems we both have same problem!

    Best regards,
    Pouya


  • Passing parameter to action from NETXMS console
    P pouya.moradian
    Development

    Hi,

    I've post another topic in title of action and my problem was that i could not pass parameter to an action,
    after a while that problem was solved but the only way to passing parameter to client's action is from command line,
    I can't pass any value to client's action via NetXMS console.

    Additional information:

    The action is listed in client's valid action,
    the action can be execute from NetXMS console,
    passing parameter to client's action is ok with server side command line.


  • Action
    P pouya.moradian
    Development

    Hi

    Thanks a lot, it works fine.
    the full format of action execution command is like:

    nxaction NodeIP ActionName ParameterHere  -a 'none' -e 0 -K /usr/local/var//lib/netxms/.server_key -p 4700 -w 10 -W 30

    it may help someone else.


  • Action
    P pouya.moradian
    Development

    Hi

    You're right that's server side, And i can see my action is registered here !

    [root@netxmslinux bin]# nxget -l 192.168.11.84 Agent.ActionList
    Agent.Restart 2 "CORE"
    System.Restart 2 "WinNT"
    System.Shutdown 2 "WinNT"
    DeviceLogAction 2 "JAVA"

    Each time i use nxaction some error occur : Required argument(s) missing.
    Can i have some example for using nxaction ?

    My command is :
    nxaction DeviceLogAction -a 'none' -e 0 -K /usr/local/var/lib/netxms/.server_key -p 4700 -w 5 -W 30

    I Also tried to check each one of these option by removing them,
    and it does not work.

    Thanks for your reply,
    Pouya


  • Action
    P pouya.moradian
    Development

    The Action is already registered (as it name appear in node's supported action list),
    but there is no nxaction binary fine in ..\NetXMS\bin in client side !
    I'm using 2.0 RC 1 agent.

    With best regards,
    Pouya


  • Node ID for Push parameter
    P pouya.moradian
    Development

    Hi,

    Thanks for your reply,
    there is just some function like this in sample code :

    @Override
      public ListParameter[] getListParameters()
      {
          return new ListParameter[] {
            new ListParameterAdapter("ListParameter1", "List Description") {
                @Override
                public String[] getValue(String value)
                {
                  return new String[] { "1", "2" };
                }
            }
          };
      }

    how can i use this for pushing parameter to server on an event ?

    With best regards,
    Pouya


  • Action
    P pouya.moradian
    Development

    Hi,

    Here is my action code in some class that extends the Plugin, the other part of code are same as the sample code in  ..\netxms-snapshot-develop\src\agent\subagents\java\sample
    All of my parameters and  actions work fine in this class but passing parameter to actions is not possible and the action.txt file only contain "Action has been executed" !

    Thanks


    Action.png


  • Node ID for Push parameter
    P pouya.moradian
    Development

    Hi,

    I'm using Runtime.exec() in java in my agent but here is same story in command prompt.

    Thank you.


    Push.png


  • Node ID for Push parameter
    P pouya.moradian
    Development

    Hi,

    Thanks for your reply,
    I got invalid object Id on using 0 as object id !

    With best Regards
    Pouya


  • Action
    P pouya.moradian
    Development

    Hi,

    Thanks for your reply,

    I defined action in object tool, is it right? because i saw an action configuration in configuration menu strip.
    Also i used {DeviceActionName arg1 arg2} in agent's command field in object tool but on execute i got : Cannot execute action on node {NodeName}: Communication failure

    With Best Regards
    Pouya


  • Node ID for Push parameter
    P pouya.moradian
    Development

    Hi

    As i see for pushing parameter to server node Id and DCI name is needed.
    I'm using push parameter for pushing client side event as parameter,
    So i need Node Id for each node in agent code, Is there any global variable or any variable to retrieve node id in java sub agent?

    Is there any better approach to push event to server side for each client(node) ?

    With Best Regards
    Pouya


  • Custom Widget
    P pouya.moradian
    Development

    Hi,

    Is there any available custom widget for dashboard?
    Or how can i develop one of them ?

    with Best Regards
    Pouya


  • Action
    P pouya.moradian
    Development

    Hi,

    Is there any way to get data from action ?
    Is there any way to pass argument to action functions?
    There is a Boolean return value for each action function in java sub agent, what is it for?
    And also there is some parameter (String action, String[] args) what is it for?

    with best regards
    Pouya

  • 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