@@ -0,0 +1,1383 @@
+# (C) Copyright 2016 Hewlett Packard Enterprise Development Company LP%0A# All Rights Reserved.%0A#%0A#    Licensed under the Apache License, Version 2.0 (the %22License%22); you may%0A#    not use this file except in compliance with the License. You may obtain%0A#    a copy of the License at%0A#%0A#         http://www.apache.org/licenses/LICENSE-2.0%0A#%0A#    Unless required by applicable law or agreed to in writing, software%0A#    distributed under the License is distributed on an %22AS IS%22 BASIS, WITHOUT%0A#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the%0A#    License for the specific language governing permissions and limitations%0A#    under the License.%0A%0Aimport monasca_setup.detection%0A%0A%0Aclass Octavia(monasca_setup.detection.ServicePlugin):%0A%0A    %22%22%22Detect Octavia  daemons and setup configuration to monitor them.%0A%0A    %22%22%22%0A%0A    def __init__(self, template_dir, overwrite=True, args=None):%0A        service_params = %7B%0A            'args': args,%0A            'template_dir': template_dir,%0A            'overwrite': overwrite,%0A            'service_name': 'octavia',%0A            'process_names': %5B'octavia-api', 'octavia-worker',%0A                              'octavia-health-manager', 'octavia-housekeeping'%5D,%0A            'service_api_url': 'http://localhost:9876',%0A            'search_pattern': '.*200 OK.*',%0A        %7D%0A%0A        super(Octavia, self).__init__(service_params)%0A

Add process monitoring for Octavia