Add problem report for disabled clients/probes

This commit is contained in:
Lance Edgar 2017-11-18 22:12:40 -06:00
parent 840c146969
commit fd7cd5cadd
5 changed files with 122 additions and 7 deletions

View file

@ -145,3 +145,16 @@ class TempmonServer(commands.Subcommand):
daemon.start(args.daemonize)
elif args.subcommand == 'stop':
daemon.stop()
class TempmonProblems(commands.Subcommand):
"""
Email report(s) of various Tempmon data problems
"""
name = 'tempmon-problems'
description = __doc__.strip()
def run(self, args):
from rattail_tempmon import problems
problems.disabled_probes(self.config, progress=self.progress)