Beispiel #1
0
 class Meta:
     identifier = GlobalId("address")
     alert_conditions = [
         alert_conditions.ValueCondition("status",
                                         warn_states=["FAILED"],
                                         error_states=["BADLY_FAILED"],
                                         message="Controller failure"),
         alert_conditions.UpperBoundCondition(
             "temperature",
             warn_bound=85,
             error_bound=95,
             message="High temperature warning",
             id="temp_high"),
         alert_conditions.LowerBoundCondition(
             "temperature",
             warn_bound=0,
             message="Low temperature warning",
             id="temp_low"),
         alert_conditions.ValueCondition("multi_status",
                                         warn_states=["FAIL1"],
                                         message="Failure 1",
                                         id="multi_status_failure1"),
         alert_conditions.ValueCondition("multi_status",
                                         warn_states=["FAIL2"],
                                         message="Failure 2",
                                         id="multi_status_failure2"),
         alert_conditions.ValueCondition("multi_status",
                                         warn_states=["FAIL1", "FAIL2"],
                                         message="Failure 1 or 2",
                                         id="multi_status_failure12"),
     ]
 class Meta:
     identifier = GlobalId('address')
     alert_conditions = [
         alert_conditions.ValueCondition('status',
                                         warn_states=['FAILED'],
                                         error_states=['BADLY_FAILED'],
                                         message="Controller failure"),
         alert_conditions.UpperBoundCondition(
             'temperature',
             warn_bound=85,
             error_bound=95,
             message="High temperature warning",
             id='temp_high'),
         alert_conditions.LowerBoundCondition(
             'temperature',
             warn_bound=0,
             message="Low temperature warning",
             id='temp_low'),
         alert_conditions.ValueCondition('multi_status',
                                         warn_states=['FAIL1'],
                                         message="Failure 1",
                                         id='multi_status_failure1'),
         alert_conditions.ValueCondition('multi_status',
                                         warn_states=['FAIL2'],
                                         message="Failure 2",
                                         id='multi_status_failure2'),
         alert_conditions.ValueCondition('multi_status',
                                         warn_states=['FAIL1', 'FAIL2'],
                                         message="Failure 1 or 2",
                                         id='multi_status_failure12'),
     ]
Beispiel #3
0
 class Meta:
     identifier = GlobalId('address')
     alert_conditions = [
         alert_conditions.ValueCondition('status',
            warn_states = ['FAILED'], message = "Controller failure"),
         alert_conditions.UpperBoundCondition('temperature',
             warn_bound = 85, message = "High temperature warning"),
         alert_conditions.LowerBoundCondition('temperature',
             warn_bound = 0, message = "Low temperature warning"),
         alert_conditions.ValueCondition('multi_status',
             warn_states = ['FAIL1'], message = "Failure 1"),
         alert_conditions.ValueCondition('multi_status',
             warn_states = ['FAIL2'], message = "Failure 2"),
         alert_conditions.ValueCondition('status',
             warn_states = ['FAIL1', 'FAIL2'], message = "Failure 1 or 2"),
     ]
Beispiel #4
0
 class Meta:
     identifier = GlobalId('serial')
     relations = [
         relations.Provide(
             provide_to=('linux', 'ScsiDevice'),
             attributes=['serial']),
     ]
     charts = [
         {
             'title': "Bandwidth",
             'series': ['read_bytes_sec', 'write_bytes_sec']
         },
         {
             'title': "Ops",
             'series': ['read_ops_sec', 'write_ops_sec']
         },
         {
             'title': "Latency distribution",
             'series': ['write_latency_hist']
         }
     ]
Beispiel #5
0
 class Meta:
     identifier = GlobalId("serial")
     relations = [relations.Provide(provide_to=("linux", "ScsiDevice"), attributes=["serial"])]
Beispiel #6
0
 class Meta:
     identifier = GlobalId("name")
     label = "Alpha"
 class Meta:
     identifier = GlobalId("container", "number")
 class Meta:
     identifier = GlobalId("host_id", "plugin_name")
 class Meta:
     identifier = GlobalId("uuid")
     icon = "lvm_vg"
     label = "Volume group"
Beispiel #10
0
 class Meta:
     identifier = GlobalId('container', 'number')
Beispiel #11
0
 class Meta:
     identifier = GlobalId('host_id', 'plugin_name')
Beispiel #12
0
 class Meta:
     identifier = GlobalId('uuid', 'vg')
     icon = 'lvm_lv'
     label = 'Logical volume'
Beispiel #13
0
 class Meta:
     identifier = GlobalId('uuid')
     icon = 'lvm_vg'
     label = 'Volume group'
 class Meta:
     identifier = GlobalId('name')
     label = "Alpha"
     charts = [{'title': 'IO', 'series': ['read', 'write']}]
 class Meta:
     identifier = GlobalId('name', 'name_scope')
Beispiel #16
0
 class Meta:
     identifier = GlobalId('wwid')
Beispiel #17
0
 class Meta:
     identifier = GlobalId('uuid')
 class Meta:
     identifier = GlobalId("uuid", "vg")
     icon = "lvm_lv"
     label = "Logical volume"
Beispiel #19
0
 class Meta:
     identifier = GlobalId("address")
 class Meta:
     identifier = GlobalId("serial")
     label = "SCSI device"
 class Meta:
     identifier = GlobalId('name')
 class Meta:
     identifier = GlobalId("uuid")
Beispiel #23
0
 class Meta:
     identifier = GlobalId('address')
 class Meta:
     identifier = GlobalId("address1", "address2")
Beispiel #25
0
 class Meta:
     identifier = GlobalId("name")
     label = "Alpha"
     charts = [{"title": "IO", "series": ["read", "write"]}]
Beispiel #26
0
 class Meta:
     identifier = GlobalId("name", "name_scope")
Beispiel #27
0
 class Meta:
     identifier = GlobalId('address1', 'address2')
Beispiel #28
0
 class Meta:
     identifier = GlobalId("name")
 class Meta:
     identifier = GlobalId('serial')
     relations = [relations.Provide(provide_to=('linux', 'ScsiDevice'), attributes=['serial'])]