mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-25 02:18:08 +00:00
Add autoconf and enhance graphs
This commit is contained in:
parent
4a18b06213
commit
33cff547e9
6 changed files with 144 additions and 56 deletions
|
@ -8,14 +8,20 @@
|
|||
#
|
||||
# Magic markers
|
||||
#%# capabilities=autoconf
|
||||
#%# family=nova
|
||||
#%# family=auto
|
||||
|
||||
from nova import context
|
||||
from nova import db
|
||||
from nova import flags
|
||||
from nova import utils
|
||||
import sys
|
||||
|
||||
try:
|
||||
from nova import context
|
||||
from nova import db
|
||||
from nova import flags
|
||||
from nova import utils
|
||||
except ImportError:
|
||||
succesful_import = False
|
||||
else:
|
||||
succesful_import = True
|
||||
|
||||
services = ['nova-compute', 'nova-volume', 'nova-scheduler', 'nova-vncproxy', 'nova-network', 'nova-cert', 'nova-console', 'nova-consoleauth']
|
||||
|
||||
|
||||
|
@ -70,8 +76,11 @@ if __name__ == '__main__':
|
|||
if sys.argv[1] == "config":
|
||||
print_config()
|
||||
elif sys.argv[1] == "autoconf":
|
||||
print "yes"
|
||||
else:
|
||||
if not succesful_import:
|
||||
print 'no (failed import nova module]'
|
||||
else:
|
||||
print 'yes'
|
||||
elif succesful_import:
|
||||
utils.default_flagfile()
|
||||
flags.FLAGS(sys.argv)
|
||||
print_values()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue