[whokfet] ajout d'un plugin munin
This commit is contained in:
parent
75a4d6b8f2
commit
c3e28ac9c1
4 changed files with 52 additions and 11 deletions
|
@ -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
16
munin/whokfet
Executable 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())
|
Loading…
Add table
Add a link
Reference in a new issue