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

  1. Home
  2. Support
  3. DCI problem...

DCI problem...

Scheduled Pinned Locked Moved Support
7 Posts 2 Posters 13.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    S
    sushizang
    wrote on last edited by
    #1

    Using NetXMS agent, some custom process can not be recognized.

    That process really executing in the system(Linux).

    I can check it using "ps -ef".

    But, When I get it on NetXMS console, just return value '0'.

    Other custom process is works fine.

    Using SNMP protocol, can not be auto recognize that OID(PID). Right?

    Could you help me?

    Thanks.
    Regards.

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      Could you please post output of ps -ef and NetXMS parameter you are using to count your custom processes?

      Best regards,
      Victor

      1 Reply Last reply
      0
      • S
        S
        sushizang
        wrote on last edited by
        #3

        # ps -ef | grep node
        root      7549    1  0 13:41 ?        00:00:01 ./node_agent -d

        parameters:
        node_agent
        node_agent -d
        ./node_agent
        ./node_agent -d

        All of return values are '0'.

        Thanks.
        Regards.

        1 Reply Last reply
        0
        • V
          V
          Victor Kirhenshtein
          wrote on last edited by
          #4

          Is node_agent real executable or shell script? If it is a shell script, then executable name will be sh (or bash, ksh, etc. - whatever your shell is), so Process.Count(node_agent) will always return 0 - because it will look for executable named node_agent. You can find processes by command line using Process.CountEx, like this:

          Process.CountEx(".*","^node_agent")

          Please note, that Process.CountEx uses regular expressions to find matching processes.

          Best regards,
          Victor

          1 Reply Last reply
          0
          • S
            S
            sushizang
            wrote on last edited by
            #5

            Yes, you right. That's a python script.

            And "Process.CountEx(".*","^node_agent")" not work, just return '0', But "python" return '1'.

            Thanks.
            Regards.

            1 Reply Last reply
            0
            • V
              V
              Victor Kirhenshtein
              wrote on last edited by
              #6

              It's my mistake: ^node_agent is not correct regexp - ^ character means "beginning of the line", but command line in your case doesn't starts with node_agent, it starts with ./node_agent, so you should either remove leading ^ or use Process.CountEx(".*","^\\./node_agent")

              Best regards,
              Victor

              1 Reply Last reply
              0
              • S
                S
                sushizang
                wrote on last edited by
                #7

                Yes.

                "Process.CountEx(".*"," node_agent")" and (".*","  ./node_agent") works fine.

                But, (".*"," \\./node_agent") not works. (Don't care)

                Thanks.
                Regards.

                1 Reply Last reply
                0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • 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