scripts/munin/whokfet
2013-05-07 21:02:32 +02:00

16 lines
351 B
Python
Executable file

#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Graphe des membres actifs présents à la Kfet"""
import sys
sys.path.append('/usr/scripts')
from gestion.tools import whokfet
action = ''.join(sys.argv[1:2])
if action == 'autoconfig':
print "yes"
elif action == 'config':
whokfet.munin_config()
else:
whokfet.munin(whokfet.get_state())