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