2012-06-22 11:31:15 +02:00
|
|
|
import logging
|
2012-05-28 21:16:38 +02:00
|
|
|
from django.core.management.base import BaseCommand
|
2012-06-22 11:31:15 +02:00
|
|
|
|
|
|
|
from djeuscan.processing import set_verbosity_level
|
2012-06-22 09:32:39 +02:00
|
|
|
from djeuscan.processing.regen_rrds import regen_rrds
|
2012-05-28 21:16:38 +02:00
|
|
|
|
2012-06-22 11:31:15 +02:00
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
|
2012-05-28 21:16:38 +02:00
|
|
|
|
|
|
|
class Command(BaseCommand):
|
|
|
|
_overlays = {}
|
|
|
|
help = 'Regenerate rrd database'
|
|
|
|
|
|
|
|
def handle(self, *args, **options):
|
2012-06-22 11:31:15 +02:00
|
|
|
set_verbosity_level(logger, options.get("verbosity", 1))
|
|
|
|
regen_rrds(logger=logger)
|