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. Read text file and count matched items

Read text file and count matched items

Scheduled Pinned Locked Moved Support
12 Posts 2 Posters 31.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
    squeezypiano
    wrote on last edited by
    #3

    @tomaskir said in Read text file and count matched items:

    You can actually get per-ssid client-count on MikroTik.
    Check out the .1.3.6.1.4.1.14988.1.1.1.3.1.6 tree.
    (each SSID has its own instance, and then client count as value)

    Hi Tomas, thanks for replying.  This OID does not work when the APs are centrally managed, only on standalone access points.  I will try to track down the documentation for nxapush and give it a try.  Thanks.

    1 Reply Last reply
    0
    • S
      S
      squeezypiano
      wrote on last edited by
      #4

      Hello,

      I am having trouble getting the push DCIs to receive values.  I followed these steps so far.

      1. Set your DCI’s origin to Push Agent and configure other properties as usual, excluding polling interval which is meaningless in case of pushed data.
      2. Create separate user account or pick an existing one and give “Push Data” access right on the DCI owning node to that user.
      3. Use nxapush utility for pushing data.

      I have tried nxapush with and without the user account I created, e.g.:

      ./nxapush param1=5
      

      and

      ./nxapush -u user -P password param1=5
      

      but I do not get any data in NetXMS.  I have used tcpdump on the agent and server machines (both Ubuntu) and can see the data bent sent and received by the OS.  I have also tried the same commands using nxapush on the NetXMS server too.

      If I run nxapush with -vv I get only one line out saying 'Connected to NetXMS agent' and that is all (was expecting a full debug).

      I guess I'm missing something but I cannot work out what.  Can anyone give me some guidance, please?

      Thanks in advance,
      P

      1 Reply Last reply
      0
      • T
        T
        tomaskir
        wrote on last edited by
        #5

        You need to specify object ID for which this data is being pushed for.

        Example:

        nxapush -o 1001 some_dci=2
        
        1 Reply Last reply
        0
        • S
          S
          squeezypiano
          wrote on last edited by
          #6

          Thanks for replying.  I have tried now with -o using DCI ID and node ID but neither is working still.

          1 Reply Last reply
          0
          • T
            T
            tomaskir
            wrote on last edited by
            #7

            It works fine for me:

            nxapush -o 4535 test-param=test
            

            Its Object ID and DCI Parameter (NOT Description).

            1 Reply Last reply
            0
            • S
              S
              squeezypiano
              wrote on last edited by
              #8

              I am using the paramater not description so should be good there.  Can you confirm which ID the object ID is, please?  Is it the ID of the DCI?

              1 Reply Last reply
              0
              • T
                T
                tomaskir
                wrote on last edited by
                #9

                Object ID in this case = Node ID.

                1 Reply Last reply
                0
                • S
                  S
                  squeezypiano
                  wrote on last edited by
                  #10

                  I have spun up another box in case there was a problem with something on it and can now get data from, for example,

                  nxapush param1=4
                  

                  Still cannot get anything using -o to push on behalf of another node.  I can work around this but it would nice if I could work it as it would keep a cleaner config.

                  Thanks for your help.

                  1 Reply Last reply
                  0
                  • T
                    T
                    tomaskir
                    wrote on last edited by
                    #11

                    Check your "CheckTrustedNodes" server config variable (set it to 0 and restart server).
                    I have a feeling we are running into an issue with security here.

                    https://wiki.netxms.org/wiki/SG:Security_Issues

                    1 Reply Last reply
                    0
                    • S
                      S
                      squeezypiano
                      wrote on last edited by
                      #12

                      Genius! Thank you. Tested that and it all started working.  Switched CheckTrustedNodes back to 1 and added Trusted Nodes to the node containing the DCI and that is working now too.  It seems slightly strange, however, that to use the -o option to send a value for the node doing the actual sending requires it to list itself in Trusted Nodes.

                      Thanks again 🙂
                      P

                      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