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. Use a script to read data from fritzbox

Use a script to read data from fritzbox

Scheduled Pinned Locked Moved Support
9 Posts 3 Posters 74.7k 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.
  • ?
    ?
    possamai
    wrote on last edited by
    #1

    I've got a fritzbox and I can read some bandwidth data out of it with a script (the crappy thing doesn't have snmp).
    However, I can't figure out how to use this data in NetXMS.
    In the Actions Configuration I can run a script on the server or on an agent but I can't use this to collect data 😞

    Is there another way to periodicly get that data into netxms?

    Any other/better solution to get data from the fritzbox is helpful too of course but I'm not gonna install Freetz on it.

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

      Hi!

      You can use external parameter or external parameters provider in NetXMS agent. For example, adding

      ExternalParameter = Test:my_script.sh

      to nxagentd.conf will add new parameter called "Test" to your agent, with value being whatever was sent by script "my_script.sh" to stdout.
      Search forum for more information - there should be a lot of topics about external parameters.

      Best regards,
      Victor

      1 Reply Last reply
      0
      • ?
        ?
        possamai
        wrote on last edited by
        #3

        Well yes but the agent will run on the server.. I can't run it on the fritzbox.
        So... the data will be added to the wrong object 😞

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

          You can use "proxy node" property of the DCI to place DCIs on right object. Create DCIs as usual on fritzbox object, but set proxy node to management server object - actual data collection will occur on management server. Don't forget to add fritzbox object as trusted node toΒ  management server object.

          Best regards,
          Victor

          1 Reply Last reply
          0
          • Dani@M3TU
            Dani@M3TU
            Dani@M3T
            wrote on last edited by
            #5

            We also have a fritzbox in one site. How does your script works? telnet or UPnP?

            1 Reply Last reply
            0
            • ?
              ?
              possamai
              wrote on last edited by
              #6

              Upnp. Google for upnp2mrtg and you'll probably find it.
              I can send it to you if you can't find it but I'm not at my computer atm so you'll have to wait πŸ™‚

              1 Reply Last reply
              0
              • Dani@M3TU
                Dani@M3TU
                Dani@M3T
                wrote on last edited by
                #7

                found, thanks!

                1 Reply Last reply
                0
                • ?
                  ?
                  possamai
                  wrote on last edited by
                  #8

                  @Victor
                  That's what I was trying but when I add the DCI to the fritzbox, choose the server (which also runs the agent) as a proxy and try to get a list of parameters then the list is empty so I figured I wasn't doing it right.......

                  I made it a trusted node but that didn't change anything.
                  I should look up what that does anyway..

                  I do have "EnableProxy = yes" in the nxagentd.conf so that part should work.

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

                    Parameter list always show local parameters - even if proxy node is set. I've registered a bug for that and will fix it eventually. Currently you either have to enter parameter name manually, or create DCIs on management server, then move them to fritzbox node and set proxy node.

                    Best regards,
                    Victor

                    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