[whokfet] ajout d'un plugin munin

This commit is contained in:
Daniel STAN 2013-05-07 21:02:32 +02:00
parent 75a4d6b8f2
commit c3e28ac9c1
4 changed files with 52 additions and 11 deletions

View file

@ -37,6 +37,7 @@ hosts_plugins = {
"webalizer_intranet": "webalizer_",
"webalizer_perso": "webalizer_",
"who": "who",
"whokfet": "whokfet",
},
"vert": {
"slapd_bdb_cache_pages": "slapd_bdb_cache_",

16
munin/whokfet Executable file
View file

@ -0,0 +1,16 @@
#!/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())