Child pages
  • Leveraging opCharts API with Python Scripts
Skip to end of metadata
Go to start of metadata


Some customers may want to leverage the opCharts API with python scripts.  This article will provide one example of how this could be done.

Related pages

opCharts REST API Reference


For this example we'll build a HTML Network Status web page via a CGI script.  This page will be comprised of tables; the first table will summarize group status while the subsequent tables will provide node level details for each group.

Define modules and variables

This example will utilize the following modules.

We also need to define the following variables.

  • Protocol (http or https)
  • Server
  • Username
  • Password

Configure URL handling

Query opCharts for Node Status

Build Group Centric Data Structure

Loop Through The Data Building Tables

  • No labels