#!/bin/bash
[ "$2" == "" ] && exec echo "Usage: $0 <SET_ID> <CONFIG_NAME>"

SET_ID=$1
CONFIG_NAME=$2

env LANG=C /usr/bin/mrtg ${CONFIG_NAME} || true
/usr/bin/indexmaker --title="MRTG Index Page SET${SET_ID}" ${CONFIG_NAME} > index.html
