Ejemplo n.º 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"),
     ]
Ejemplo n.º 2
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'),
     ]
Ejemplo n.º 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"),
     ]
Ejemplo n.º 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']
         }
     ]
Ejemplo n.º 5
0
 class Meta:
     identifier = GlobalId("serial")
     relations = [relations.Provide(provide_to=("linux", "ScsiDevice"), attributes=["serial"])]
Ejemplo n.º 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"
Ejemplo n.º 10
0
 class Meta:
     identifier = GlobalId('container', 'number')
Ejemplo n.º 11
0
 class Meta:
     identifier = GlobalId('host_id', 'plugin_name')
Ejemplo n.º 12
0
 class Meta:
     identifier = GlobalId('uuid', 'vg')
     icon = 'lvm_lv'
     label = 'Logical volume'
Ejemplo n.º 13
0
 class Meta:
     identifier = GlobalId('uuid')
     icon = 'lvm_vg'
     label = 'Volume group'
Ejemplo n.º 14
0
 class Meta:
     identifier = GlobalId('name')
     label = "Alpha"
     charts = [{'title': 'IO', 'series': ['read', 'write']}]
Ejemplo n.º 15
0
 class Meta:
     identifier = GlobalId('name', 'name_scope')
Ejemplo n.º 16
0
 class Meta:
     identifier = GlobalId('wwid')
Ejemplo n.º 17
0
 class Meta:
     identifier = GlobalId('uuid')
 class Meta:
     identifier = GlobalId("uuid", "vg")
     icon = "lvm_lv"
     label = "Logical volume"
Ejemplo n.º 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")
Ejemplo n.º 23
0
 class Meta:
     identifier = GlobalId('address')
 class Meta:
     identifier = GlobalId("address1", "address2")
Ejemplo n.º 25
0
 class Meta:
     identifier = GlobalId("name")
     label = "Alpha"
     charts = [{"title": "IO", "series": ["read", "write"]}]
Ejemplo n.º 26
0
 class Meta:
     identifier = GlobalId("name", "name_scope")
Ejemplo n.º 27
0
 class Meta:
     identifier = GlobalId('address1', 'address2')
Ejemplo n.º 28
0
 class Meta:
     identifier = GlobalId("name")
 class Meta:
     identifier = GlobalId('serial')
     relations = [relations.Provide(provide_to=('linux', 'ScsiDevice'), attributes=['serial'])]