from monsetup.detection import ServicePlugin class Nova(ServicePlugin): """Detect Nova daemons and setup configuration to monitor them.""" def __init__(self, template_dir, overwrite=True): service_params = { 'template_dir' : template_dir, 'overwrite' : overwrite, 'service_name' : 'nova', 'process_names' : ['nova-compute', 'nova-conductor', 'nova-cert', 'nova-network', 'nova-scheduler', 'nova-novncproxy', 'nova-xvpncproxy', 'nova-consoleauth', 'nova-objectstore', 'nova-api'], 'service_api_url': 'http://localhost:8774/v2.0', 'search_pattern' : '.*version=2.*', 'alarms' : [] } super(Nova, self).__init__(service_params)