Extract data from HTML pages / graphs

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
mattisf
Posts: 1
Joined: Sat Feb 17, 2007 9:40 pm

Extract data from HTML pages / graphs

Post by mattisf »

Hello,

I'm working in a NOC for a local ISP and one of the nightly routines is to write down the highest and lowest utilized bandwidth on different links.

This worked great in the start, but it's getting tedious to do this routine every night (over 20 links) so what I'm looking for is a way to extract the information from the HTML webpages that Cacti generates.

I was starting to write a simple Java program that would take a HTML page as input and generate an XML as output, but noticed that the graphs are generated images and not just data I could extract.

What I'm hoping you could help with is an idea how to automate this process? The only data I need is highest and lowest inbound and highest and lowest outbound traffic on an interface in an XML / HTML as clean data.

Thank you for reading,

Mattis
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

What about using the dataquery plugin? It prints data seen on graphs. If it does not fit exactly, please try one of the various report plugins (I know two of them, both called "reports" and one called "reportit". The first two will collide when installing both!). Check out http://cactiusers.org for more help
Reinhard
Post Reply

Who is online

Users browsing this forum: macan and 1 guest