In a certain network there are several devices that have a web interface, it displays a certain parameter on each device (numeric value of the level), access to them by ip address. The question is, is it possible to get this parameter to monitor continuously? Since it is rather long and inconvenient to check each device, I want to collect values from all devices in one window. And if you can do this in what language? For example on c ++?
- It is also possible in C ++. But in languages like Python, tcl / tk, etc., it's easier and faster. - alexlz
- oneparse webmord? hmm, do these devices support snmp queries? write aggregator ... it will be easier and more orthodox ... - thunder
- It supports, but there everything is not explicitly displayed, as I understand it, the manufacturer encrypted it. - Maxim Ignatiev
|
2 answers
You can make a page with jQuery and make AJAX requests to the web interface of devices. In the same place from the returned HTML code, you can use the regular expressions to pull the values of the parameters of interest.
It seems to me that it will be easier than C ++. The task is just to look with your eyes, right?
- posuti yes, still to keep them for some time for example a week. And where it is possible to read somewhere more in detail about the "page with jQuery and make AJAX requests" - Maxim Ignatiev
- You can see here jquery-docs.ru/ajax/jquery-ajax It’s harder to store, you have to think more :) - Nikolai Kim
- Well, permanent recording is not needed, but once in 2 hours, reading the indicators and writing to a file or somewhere else would be good - Maxim Ignatiev
- On * nix, I would advise wget and script over it. - avp
- And not a secret, what kind of device? Maybe they have something more convenient for reading software than HTML? - Nikolai Kim
|
everything is realizable on HTML5 / jQuery and the repository (WebStorage) foreseeing the question of what it is and how, I recommend watching the presentation here
but will work only on bowser, supporting the HTML5 standard, i.e. IE goes to the forest.
plus: access from mobile devices (android, iphone, ipad, etc.)
- @Anri, are you sure that the author is interested in browsers? The question is about C ++ (apparently talking about some kind of monitoring system). - avp
|