Skip to content

Instantly share code, notes, and snippets.

View treasuretron's full-sized avatar
🤠
I basically never use github

Trav treasuretron

🤠
I basically never use github
View GitHub Profile
@treasuretron
treasuretron / sa2pyrrd.py
Created September 1, 2019 14:38 — forked from jinie/sa2pyrrd.py
RRD Graph from sar data.
""" import needed classes from rrd libraries"""
from pyrrd.rrd import RRD, RRA, DS
from pyrrd.graph import DEF, CDEF, VDEF
from pyrrd.graph import LINE, AREA, GPRINT
from pyrrd.graph import ColorAttributes, Graph
""" import subprocess to launch external commands like sar"""
import subprocess
""" import os.path to test if files exist"""
import os.path
""" import sys to handle error exits"""