Diagrams
Simple Item class diagram :
Simple Items class diagram :
Simple DummyCommand class diagram :
hostextinfo Module
This is the main class for the Host ext info. In fact it’s mainly
about the configuration part. Parameters are merged in Hosts so it’s
no use in running part
-
class shinken.objects.hostextinfo.HostExtInfo(params={})[source]
Bases: shinken.objects.item.Item
-
definition_order
-
get_dbg_name()[source]
-
get_full_name()[source]
-
get_name()[source]
-
host_name
-
icon_image
-
icon_image_alt
-
id = 1
-
imported_from
-
is_correct()[source]
-
macros = {'HOSTNOTES': 'notes', 'HOSTNAME': 'host_name', 'HOSTNOTESURL': 'notes_url'}
-
my_type = 'hostextinfo'
-
name
-
notes
-
notes_url
-
properties = {'use': <shinken.property.ListProp object at 0x7f50e13f9890>, 'name': <shinken.property.StringProp object at 0x7f50e13f9a90>, 'definition_order': <shinken.property.IntegerProp object at 0x7f50e13f9b90>, 'icon_image_alt': <shinken.property.StringProp object at 0x7f50df8edad0>, 'notes': <shinken.property.StringProp object at 0x7f50df8ed6d0>, 'register': <shinken.property.BoolProp object at 0x7f50e13f9bd0>, 'vrml_image': <shinken.property.StringProp object at 0x7f50df8ed550>, '3d_coords': <shinken.property.StringProp object at 0x7f50df8ed110>, 'notes_url': <shinken.property.StringProp object at 0x7f50df8ed590>, 'host_name': <shinken.property.StringProp object at 0x7f50df8ed610>, 'icon_image': <shinken.property.StringProp object at 0x7f50df8ed4d0>, '2d_coords': <shinken.property.StringProp object at 0x7f50df8ed190>, 'imported_from': <shinken.property.StringProp object at 0x7f50e13f9b50>, 'statusmap_image': <shinken.property.StringProp object at 0x7f50df8ed9d0>}
-
register
-
statusmap_image
-
use
-
vrml_image
-
class shinken.objects.hostextinfo.HostsExtInfo(items, index_items=True)[source]
Bases: shinken.objects.item.Items
-
inner_class
alias of HostExtInfo
-
merge(hosts)[source]
-
merge_extinfo(host, extinfo)[source]
-
name_property = 'host_name'
service Module
This Class is the service one, s it manage all service specific thing.
If you look at the scheduling part, look at the scheduling item class
-
class shinken.objects.service.Service(params={})[source]
Bases: shinken.objects.schedulingitem.SchedulingItem
-
acknowledgement
-
acknowledgement_type
-
act_depend_of
-
act_depend_of_me
-
action_url
-
actions
-
active_checks_enabled
-
add_business_rule_act_dependency(srv, status, timeperiod, inherits_parent)[source]
-
add_service_act_dependency(srv, status, timeperiod, inherits_parent)[source]
-
add_service_chk_dependency(srv, status, timeperiod, inherits_parent)[source]
-
aggregation
-
attempt
-
broks
-
business_impact
-
business_impact_modulations
-
business_rule
-
business_rule_downtime_as_ack
-
business_rule_host_notification_options
-
business_rule_output_template
-
business_rule_service_notification_options
-
business_rule_smart_notifications
-
check_command
-
check_flapping_recovery_notification
-
check_freshness
-
check_interval
-
check_period
-
check_type
-
checkmodulations
-
checks_in_progress
-
child_dependencies
-
chk_depend_of
-
chk_depend_of_me
-
configuration_errors
-
configuration_warnings
-
contact_groups
-
contacts
-
current_event_id
-
current_notification_id
-
current_notification_number
-
current_problem_id
-
custom_views
-
customs
-
default_value
-
definition_order
-
display_name
-
downtimes
-
duplicate(host)[source]
-
duplicate_foreach
-
duration_sec
-
early_timeout
-
end_time
-
escalations
-
event_handler
-
event_handler_enabled
-
execution_time
-
failure_prediction_enabled
-
fill_daddy_dependency()[source]
-
first_notification_delay
-
flap_detection_enabled
-
flap_detection_options
-
flapping_changes
-
freshness_threshold
-
get_ack_author_name()[source]
-
get_check_command()[source]
-
get_data_for_checks()[source]
-
get_data_for_event_handler()[source]
-
get_data_for_notifications(contact, n)[source]
-
get_dbg_name()[source]
-
get_duration()[source]
-
get_duration_sec()[source]
-
get_full_name()[source]
-
get_groupnames()[source]
-
get_host_tags()[source]
-
get_hostgroups()[source]
-
get_name()[source]
-
get_obsessive_compulsive_processor_command()[source]
-
get_realm()[source]
-
get_service_tags()[source]
-
get_short_status()[source]
-
get_status()[source]
-
got_business_rule
-
has_been_checked
-
hash
-
high_flap_threshold
-
host
-
host_dependency_enabled
-
host_name
-
hostgroup_name
-
icon_image
-
icon_image_alt
-
icon_set
-
id = 1
-
impacts
-
imported_from
-
in_checking
-
in_hard_unknown_reach_phase
-
in_maintenance
-
in_scheduled_downtime
-
in_scheduled_downtime_during_last_check
-
initial_state
-
is_correct()[source]
-
is_flapping
-
is_impact
-
is_problem
-
is_state(status)[source]
-
is_volatile
-
labels
-
last_check_command
-
last_chk
-
last_event_id
-
last_hard_state
-
last_hard_state_change
-
last_hard_state_id
-
last_notification
-
last_perf_data
-
last_problem_id
-
last_snapshot
-
last_state
-
last_state_change
-
last_state_id
-
last_state_type
-
last_state_update
-
last_time_critical
-
last_time_non_ok_or_up()[source]
-
last_time_ok
-
last_time_unknown
-
last_time_warning
-
latency
-
long_output
-
low_flap_threshold
-
macromodulations
-
macros = {'SERVICEDOWNTIME': 'get_downtime', 'SERVICEACKAUTHORNAME': 'get_ack_author_name', 'LASTSERVICESTATE': 'last_state', 'SERVICEACKCOMMENT': 'get_ack_comment', 'SERVICEDURATIONSEC': 'get_duration_sec', 'SERVICEDESC': 'service_description', 'SERVICEPERFDATA': 'perf_data', 'SERVICEATTEMPT': 'attempt', 'LASTSERVICEUNKNOWN': 'last_time_unknown', 'SERVICEBUSINESSIMPACT': 'business_impact', 'LASTSERVICECRITICAL': 'last_time_critical', 'LASTSERVICECHECK': 'last_chk', 'SERVICEEVENTID': 'current_event_id', 'SERVICEPERCENTCHANGE': 'percent_state_change', 'SERVICEACKAUTHORALIAS': 'get_ack_author_name', 'MAXSERVICEATTEMPTS': 'max_check_attempts', 'LASTSERVICEPROBLEMID': 'last_problem_id', 'SERVICEDISPLAYNAME': 'display_name', 'SERVICEGROUPNAME': 'get_groupname', 'LASTSERVICEEVENTID': 'last_event_id', 'SERVICESTATE': 'state', 'SERVICEGROUPNAMES': 'get_groupnames', 'SERVICENOTESURL': 'notes_url', 'SERVICECHECKCOMMAND': 'get_check_command', 'SERVICEDURATION': 'get_duration', 'SERVICEACTIONURL': 'action_url', 'LASTSERVICESTATECHANGE': 'last_state_change', 'LONGSERVICEOUTPUT': 'long_output', 'SHORTSTATUS': 'get_short_status', 'LASTSERVICEPERFDATA': 'last_perf_data', 'SERVICESTATETYPE': 'state_type', 'LASTSERVICEWARNING': 'last_time_warning', 'SERVICEACKAUTHOR': 'get_ack_author_name', 'SERVICEEXECUTIONTIME': 'execution_time', 'SERVICESTATEID': 'state_id', 'STATUS': 'get_status', 'LASTSERVICESTATEID': 'last_state_id', 'LASTSERVICEOK': 'last_time_ok', 'SERVICEPROBLEMID': 'current_problem_id', 'SERVICELATENCY': 'latency', 'SERVICEOUTPUT': 'output', 'SERVICENOTES': 'notes', 'SERVICEISVOLATILE': 'is_volatile', 'FULLNAME': 'get_full_name'}
-
maintenance_period
-
manage_stalking(c)[source]
-
max_check_attempts
-
merge_host_contacts
-
modified_attributes
-
my_own_business_impact
-
my_type = 'service'
-
name
-
next_chk
-
notes
-
notes_url
-
notification_interval
-
notification_is_blocked_by_contact(n, contact)[source]
-
notification_is_blocked_by_item(type, t_wished=None)[source]
-
notification_options
-
notification_period
-
notifications_enabled
-
notifications_in_progress
-
notified_contacts
-
obsess_over_service
-
ok_up = 'OK'
-
old_properties = {'normal_check_interval': 'check_interval', 'hostgroups': 'hostgroup_name', 'hostgroup': 'hostgroup_name', 'criticity': 'business_impact', 'retry_check_interval': 'retry_interval'}
-
output
-
parallelize_check
-
parent_dependencies
-
passive_checks_enabled
-
pending_flex_downtime
-
percent_state_change
-
perf_data
-
poller_tag
-
problem_has_been_acknowledged
-
process_perf_data
-
processed_business_rule
-
properties = {'hostgroup_name': <shinken.property.StringProp object at 0x7f50e138ca90>, 'business_impact_modulations': <shinken.property.ListProp object at 0x7f50e1a84c90>, 'retry_interval': <shinken.property.IntegerProp object at 0x7f50e138cd50>, 'labels': <shinken.property.ListProp object at 0x7f50e1a84dd0>, 'obsess_over_service': <shinken.property.BoolProp object at 0x7f50e138ced0>, 'action_url': <shinken.property.StringProp object at 0x7f50e1a84a50>, 'escalations': <shinken.property.ListProp object at 0x7f50e1a84cd0>, 'low_flap_threshold': <shinken.property.IntegerProp object at 0x7f50e1584310>, 'process_perf_data': <shinken.property.BoolProp object at 0x7f50e1a84710>, 'icon_image': <shinken.property.StringProp object at 0x7f50e1a84a90>, 'snapshot_interval': <shinken.property.IntegerProp object at 0x7f50e1aac3d0>, 'check_period': <shinken.property.StringProp object at 0x7f50e138ce90>, 'use': <shinken.property.ListProp object at 0x7f50e13f9890>, 'display_name': <shinken.property.StringProp object at 0x7f50e138cb10>, 'notification_interval': <shinken.property.IntegerProp object at 0x7f50e1a847d0>, 'failure_prediction_enabled': <shinken.property.BoolProp object at 0x7f50e1a84b50>, 'flap_detection_options': <shinken.property.ListProp object at 0x7f50e1a846d0>, 'snapshot_enabled': <shinken.property.BoolProp object at 0x7f50e1aac2d0>, 'event_handler_enabled': <shinken.property.BoolProp object at 0x7f50e15840d0>, 'trigger': <shinken.property.StringProp object at 0x7f50e1aac0d0>, 'initial_state': <shinken.property.CharProp object at 0x7f50e138cc50>, 'first_notification_delay': <shinken.property.IntegerProp object at 0x7f50e1a84810>, 'notification_options': <shinken.property.ListProp object at 0x7f50e1a84890>, 'host_name': <shinken.property.StringProp object at 0x7f50e138c9d0>, 'snapshot_period': <shinken.property.StringProp object at 0x7f50e1aac350>, 'notifications_enabled': <shinken.property.BoolProp object at 0x7f50e1a848d0>, 'event_handler': <shinken.property.StringProp object at 0x7f50e138cf90>, 'aggregation': <shinken.property.StringProp object at 0x7f50e1aac290>, 'freshness_threshold': <shinken.property.IntegerProp object at 0x7f50e138cf50>, 'imported_from': <shinken.property.StringProp object at 0x7f50e13f9b50>, 'time_to_orphanage': <shinken.property.IntegerProp object at 0x7f50e1a84d50>, 'trigger_broker_raise_enabled': <shinken.property.BoolProp object at 0x7f50e1aac150>, 'name': <shinken.property.StringProp object at 0x7f50e13f9a90>, 'notes': <shinken.property.StringProp object at 0x7f50e1a849d0>, 'check_command': <shinken.property.StringProp object at 0x7f50e138cc10>, 'parallelize_check': <shinken.property.BoolProp object at 0x7f50e1a84b90>, 'servicegroups': <shinken.property.StringProp object at 0x7f50e138cb90>, 'passive_checks_enabled': <shinken.property.BoolProp object at 0x7f50e138ce50>, 'check_interval': <shinken.property.IntegerProp object at 0x7f50e138ccd0>, 'merge_host_contacts': <shinken.property.BoolProp object at 0x7f50e1a84d90>, 'notes_url': <shinken.property.StringProp object at 0x7f50e1a84a10>, 'custom_views': <shinken.property.ListProp object at 0x7f50e1aac250>, 'check_freshness': <shinken.property.BoolProp object at 0x7f50e138cf10>, 'active_checks_enabled': <shinken.property.BoolProp object at 0x7f50e138cdd0>, 'icon_image_alt': <shinken.property.StringProp object at 0x7f50e1a84ad0>, 'host_dependency_enabled': <shinken.property.BoolProp object at 0x7f50e1a84e10>, 'checkmodulations': <shinken.property.ListProp object at 0x7f50e1aac1d0>, 'reactionner_tag': <shinken.property.StringProp object at 0x7f50e1a84c10>, 'is_volatile': <shinken.property.BoolProp object at 0x7f50e138cbd0>, 'default_value': <shinken.property.StringProp object at 0x7f50e1aac050>, 'maintenance_period': <shinken.property.StringProp object at 0x7f50e1a84d10>, 'contacts': <shinken.property.ListProp object at 0x7f50e1a84910>, 'notification_period': <shinken.property.StringProp object at 0x7f50e1a84850>, 'trending_policies': <shinken.property.ListProp object at 0x7f50e1aac190>, 'resultmodulations': <shinken.property.ListProp object at 0x7f50e1a84c50>, 'retain_status_information': <shinken.property.BoolProp object at 0x7f50e1a84750>, 'business_rule_downtime_as_ack': <shinken.property.BoolProp object at 0x7f50e1a84ed0>, 'stalking_options': <shinken.property.ListProp object at 0x7f50e1a84990>, 'macromodulations': <shinken.property.ListProp object at 0x7f50e1aac210>, 'flap_detection_enabled': <shinken.property.BoolProp object at 0x7f50e1584910>, 'business_rule_host_notification_options': <shinken.property.ListProp object at 0x7f50e1a84f10>, 'high_flap_threshold': <shinken.property.IntegerProp object at 0x7f50e1584490>, 'definition_order': <shinken.property.IntegerProp object at 0x7f50e13f9b90>, 'snapshot_criteria': <shinken.property.ListProp object at 0x7f50e1aac390>, 'retain_nonstatus_information': <shinken.property.BoolProp object at 0x7f50e1a84790>, 'contact_groups': <shinken.property.ListProp object at 0x7f50e1a84950>, 'business_rule_smart_notifications': <shinken.property.BoolProp object at 0x7f50e1a84e90>, 'service_description': <shinken.property.StringProp object at 0x7f50e138cad0>, 'trigger_name': <shinken.property.StringProp object at 0x7f50e1aac110>, 'service_dependencies': <shinken.property.ListProp object at 0x7f50e1a84f90>, 'snapshot_command': <shinken.property.StringProp object at 0x7f50e1aac310>, 'register': <shinken.property.BoolProp object at 0x7f50e13f9bd0>, 'duplicate_foreach': <shinken.property.StringProp object at 0x7f50e1a84fd0>, 'poller_tag': <shinken.property.StringProp object at 0x7f50e1a84bd0>, 'icon_set': <shinken.property.StringProp object at 0x7f50e1a84b10>, 'business_impact': <shinken.property.IntegerProp object at 0x7f50e1aac090>, 'max_check_attempts': <shinken.property.IntegerProp object at 0x7f50e138cc90>, 'business_rule_service_notification_options': <shinken.property.ListProp object at 0x7f50e1a84f50>, 'business_rule_output_template': <shinken.property.StringProp object at 0x7f50e1a84e50>}
-
raise_alert_log_entry()[source]
-
raise_cancel_downtime_log_entry()[source]
-
raise_enter_downtime_log_entry()[source]
-
raise_event_handler_log_entry(command)[source]
-
raise_exit_downtime_log_entry()[source]
-
raise_flapping_start_log_entry(change_ratio, threshold)[source]
-
raise_flapping_stop_log_entry(change_ratio, threshold)[source]
-
raise_freshness_log_entry(t_stale_by, t_threshold)[source]
-
raise_initial_state()[source]
-
raise_no_next_check_log_entry()[source]
-
raise_notification_log_entry(n)[source]
-
raise_snapshot_log_entry(command)[source]
-
reactionner_tag
-
register
-
resultmodulations
-
retain_nonstatus_information
-
retain_status_information
-
retry_interval
-
return_code
-
running_properties = {'state_id_before_impact': <shinken.property.IntegerProp object at 0x7f50e1a897d0>, 'child_dependencies': <shinken.property.StringProp object at 0x7f50e1a89950>, 'last_problem_id': <shinken.property.IntegerProp object at 0x7f50e1aacfd0>, 'business_rule': <shinken.property.StringProp object at 0x7f50e1a898d0>, 'last_perf_data': <shinken.property.StringProp object at 0x7f50e1a89450>, 'acknowledgement': <shinken.property.StringProp object at 0x7f50e1aace90>, 'actions': <shinken.property.ListProp object at 0x7f50e1a895d0>, 'current_notification_number': <shinken.property.IntegerProp object at 0x7f50e1a89190>, 'flapping_changes': <shinken.property.ListProp object at 0x7f50e1aacd90>, 'last_time_critical': <shinken.property.IntegerProp object at 0x7f50e1aac910>, 's_time': <shinken.property.FloatProp object at 0x7f50e1a89110>, 'last_time_warning': <shinken.property.IntegerProp object at 0x7f50e1aac8d0>, 'checks_in_progress': <shinken.property.ListProp object at 0x7f50e1aacc50>, 'chk_depend_of': <shinken.property.ListProp object at 0x7f50e1aacb50>, 'last_notification': <shinken.property.FloatProp object at 0x7f50e1a89150>, 'chk_depend_of_me': <shinken.property.ListProp object at 0x7f50e1aacbd0>, 'check_flapping_recovery_notification': <shinken.property.BoolProp object at 0x7f50e1a89210>, 'last_state': <shinken.property.StringProp object at 0x7f50e1aac6d0>, 'topology_change': <shinken.property.BoolProp object at 0x7f50e1a89a50>, 'my_own_business_impact': <shinken.property.IntegerProp object at 0x7f50e1a896d0>, 'impacts': <shinken.property.ListProp object at 0x7f50e1a89750>, 'last_hard_state_change': <shinken.property.FloatProp object at 0x7f50e1aac7d0>, 'was_in_hard_unknown_reach_phase': <shinken.property.BoolProp object at 0x7f50e1a899d0>, 'parent_dependencies': <shinken.property.StringProp object at 0x7f50e1a89910>, 'percent_state_change': <shinken.property.FloatProp object at 0x7f50e1aace10>, 'notifications_in_progress': <shinken.property.DictProp object at 0x7f50e1aacc90>, 'u_time': <shinken.property.FloatProp object at 0x7f50e1a890d0>, 'last_state_id': <shinken.property.IntegerProp object at 0x7f50e1aac750>, 'has_been_checked': <shinken.property.IntegerProp object at 0x7f50e1aacf50>, 'broks': <shinken.property.ListProp object at 0x7f50e1a89610>, 'last_time_unknown': <shinken.property.IntegerProp object at 0x7f50e1aac950>, 'last_state_update': <shinken.property.FloatProp object at 0x7f50e1aacc10>, 'execution_time': <shinken.property.FloatProp object at 0x7f50e1a89090>, 'start_time': <shinken.property.IntegerProp object at 0x7f50e1a89310>, 'state_type': <shinken.property.StringProp object at 0x7f50e1aac9d0>, 'configuration_warnings': <shinken.property.ListProp object at 0x7f50e13f9c10>, 'notified_contacts': <shinken.property.ListProp object at 0x7f50e1a89510>, 'flapping_comment_id': <shinken.property.IntegerProp object at 0x7f50e1aacdd0>, 'early_timeout': <shinken.property.IntegerProp object at 0x7f50e1a89390>, 'in_scheduled_downtime': <shinken.property.BoolProp object at 0x7f50e1a89550>, 'state_type_id': <shinken.property.IntegerProp object at 0x7f50e1aaca10>, 'scheduled_downtime_depth': <shinken.property.IntegerProp object at 0x7f50e1a89250>, 'in_checking': <shinken.property.BoolProp object at 0x7f50e1aac4d0>, 'last_state_change': <shinken.property.FloatProp object at 0x7f50e1aac790>, 'long_output': <shinken.property.StringProp object at 0x7f50e1aaca90>, 'duration_sec': <shinken.property.IntegerProp object at 0x7f50e1aac990>, 'current_event_id': <shinken.property.IntegerProp object at 0x7f50e1aac650>, 'end_time': <shinken.property.IntegerProp object at 0x7f50e1a89350>, 'timeout': <shinken.property.IntegerProp object at 0x7f50e1a892d0>, 'output': <shinken.property.StringProp object at 0x7f50e1aaca50>, 'perf_data': <shinken.property.StringProp object at 0x7f50e1a89410>, 'state_before_impact': <shinken.property.StringProp object at 0x7f50e1a89790>, 'is_impact': <shinken.property.BoolProp object at 0x7f50e1a89690>, 'check_type': <shinken.property.IntegerProp object at 0x7f50e1aacf10>, 'in_scheduled_downtime_during_last_check': <shinken.property.BoolProp object at 0x7f50e1a89590>, 'source_problems': <shinken.property.ListProp object at 0x7f50e1a89710>, 'last_event_id': <shinken.property.IntegerProp object at 0x7f50e1aac690>, 'in_hard_unknown_reach_phase': <shinken.property.BoolProp object at 0x7f50e1a89990>, 'problem_has_been_acknowledged': <shinken.property.BoolProp object at 0x7f50e1aace50>, 'should_be_scheduled': <shinken.property.IntegerProp object at 0x7f50e1aacf90>, 'latency': <shinken.property.FloatProp object at 0x7f50e1aac550>, 'state_changed_since_impact': <shinken.property.BoolProp object at 0x7f50e1a89810>, 'pending_flex_downtime': <shinken.property.IntegerProp object at 0x7f50e1a89290>, 'last_state_type': <shinken.property.StringProp object at 0x7f50e1aac710>, 'downtimes': <shinken.property.ListProp object at 0x7f50e1aacd10>, 'last_hard_state': <shinken.property.StringProp object at 0x7f50e1aac810>, 'next_chk': <shinken.property.IntegerProp object at 0x7f50e1aac490>, 'processed_business_rule': <shinken.property.StringProp object at 0x7f50e1a89890>, 'comments': <shinken.property.ListProp object at 0x7f50e1aacd50>, 'last_check_command': <shinken.property.StringProp object at 0x7f50e1a89b10>, 'state': <shinken.property.StringProp object at 0x7f50e1aac5d0>, 'current_problem_id': <shinken.property.IntegerProp object at 0x7f50e1a89050>, 'last_chk': <shinken.property.IntegerProp object at 0x7f50e1aac450>, 'current_notification_id': <shinken.property.IntegerProp object at 0x7f50e1a891d0>, 'last_snapshot': <shinken.property.IntegerProp object at 0x7f50e1a89ad0>, 'is_problem': <shinken.property.BoolProp object at 0x7f50e1a89650>, 'last_time_ok': <shinken.property.IntegerProp object at 0x7f50e1aac890>, 'hash': <shinken.property.StringProp object at 0x7f50e13f9c90>, 'tags': <shinken.property.ListProp object at 0x7f50e13f9cd0>, 'return_code': <shinken.property.IntegerProp object at 0x7f50e1a893d0>, 'is_flapping': <shinken.property.BoolProp object at 0x7f50e1aacad0>, 'customs': <shinken.property.DictProp object at 0x7f50e1a894d0>, 'host': <shinken.property.StringProp object at 0x7f50e1a89490>, 'state_before_hard_unknown_reach_phase': <shinken.property.StringProp object at 0x7f50e1a89a10>, 'state_id': <shinken.property.IntegerProp object at 0x7f50e1aac610>, 'configuration_errors': <shinken.property.ListProp object at 0x7f50e13f9c50>, 'act_depend_of_me': <shinken.property.ListProp object at 0x7f50e1aacb90>, 'attempt': <shinken.property.IntegerProp object at 0x7f50e1aac590>, 'act_depend_of': <shinken.property.ListProp object at 0x7f50e1aacb10>, 'triggers': <shinken.property.ListProp object at 0x7f50e1a89a90>, 'acknowledgement_type': <shinken.property.IntegerProp object at 0x7f50e1aaced0>, 'modified_attributes': <shinken.property.IntegerProp object at 0x7f50e1aac410>, 'in_maintenance': <shinken.property.IntegerProp object at 0x7f50e1aac510>, 'got_business_rule': <shinken.property.BoolProp object at 0x7f50e1a89850>, 'last_hard_state_id': <shinken.property.IntegerProp object at 0x7f50e1aac850>}
-
s_time
-
scheduled_downtime_depth
-
service_dependencies
-
service_description
-
servicegroups
-
set_impact_state()[source]
-
set_state_from_exit_status(status)[source]
-
set_unreachable()[source]
-
should_be_scheduled
-
snapshot_command
-
snapshot_criteria
-
snapshot_enabled
-
snapshot_interval
-
snapshot_period
-
source_problems
-
stalking_options
-
start_time
-
state
-
state_before_hard_unknown_reach_phase
-
state_before_impact
-
state_changed_since_impact
-
state_id
-
state_id_before_impact
-
state_type
-
state_type_id
-
tags
-
time_to_orphanage
-
timeout
-
topology_change
-
trending_policies
-
trigger
-
trigger_broker_raise_enabled
-
trigger_name
-
triggers
-
u_time
-
unset_impact_state()[source]
-
use
-
was_in_hard_unknown_reach_phase
-
class shinken.objects.service.Services(items, index_items=True)[source]
Bases: shinken.objects.item.Items
-
add_item(item, index=True)[source]
Adds and index an item into the items container.
This implementation takes into account that a service has two naming
attribute: host_name and service_description.
Parameters: |
- item – The item to add
- index – Flag indicating if the item should be indexed
|
-
add_template(tpl)[source]
Adds and index a template into the templates container.
This implementation takes into account that a service has two naming
attribute: host_name and service_description.
Parameters: | tpl – The template to add |
-
apply_dependencies()[source]
-
apply_implicit_inheritance(hosts)[source]
-
apply_inheritance(hosts)[source]
-
clean()[source]
-
create_business_rules(hosts, services)[source]
-
create_business_rules_dependencies()[source]
-
delete_services_by_id(ids)[source]
-
explode(hosts, hostgroups, contactgroups, servicegroups, servicedependencies, triggers)[source]
Explodes services, from host_name, hostgroup_name, and from templetes.
Parameters: |
- hosts – The hosts container
- hostgroups – The hostgoups container
- contactgroups – The concactgoups container
- servicegroups – The servicegoups container
- servicedependencies – The servicedependencies container
- triggers – The triggers container
|
-
explode_services_duplicates(hosts, s)[source]
Explodes services holding a duplicate_foreach clause.
Parameters: |
- hosts – The hosts container
- s – The service to explode
|
-
explode_services_from_hosts(hosts, s, hnames)[source]
Explodes a service based on a lis of hosts.
Parameters: |
- hosts – The hosts container
- s – The base service to explode
- hnames – The host_name list to exlode sevice on
|
-
explode_services_from_templates(hosts, t)[source]
Explodes services from templates. All hosts holding the specified
templates are bound the service.
Parameters: |
- hosts – The hosts container
- s – The service to explode
|
-
find_srv_by_name_and_hostname(host_name, sdescr)[source]
-
find_srvs_by_hostname(host_name)[source]
-
index_item(item)[source]
Indexes a template by name into the name_to_template dictionnary.
This implementation takes into account that a service has two naming
attribute: host_name and service_description.
Parameters: | item – The item to index |
-
inner_class
alias of Service
-
is_excluded_for_host(host, service)[source]
-
late_linkify_s_by_commands(commands)[source]
-
linkify(hosts, commands, timeperiods, contacts, resultmodulations, businessimpactmodulations, escalations, servicegroups, triggers, checkmodulations, macromodulations)[source]
-
linkify_s_by_hst(hosts)[source]
-
linkify_s_by_sg(servicegroups)[source]
-
optimize_service_search(hosts)[source]
-
override_properties(hosts)[source]
-
register_service_dependencies(s, servicedependencies)[source]
Registers a service dependencies.
Parameters: |
- s – The service to register
- servicedependencies – The servicedependencies container
|
-
register_service_into_servicegroups(s, servicegroups)[source]
Registers a service into the service groups declared in its
servicegroups attribute.
Parameters: |
- s – The service to register
- servicegroups – The servicegroups container
|
-
unindex_item(item)[source]
Unindexes an item from the items container.
This implementation takes into account that a service has two naming
attribute: host_name and service_description.
Parameters: |
- item – The item to unindex
- name – The name under which the item has been indexed.
|