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 0x7f8f707dcf90>, 'name': <shinken.property.StringProp object at 0x7f8f70783090>, 'definition_order': <shinken.property.IntegerProp object at 0x7f8f707830d0>, 'icon_image_alt': <shinken.property.StringProp object at 0x7f8f6e38af50>, 'notes': <shinken.property.StringProp object at 0x7f8f6e38add0>, 'register': <shinken.property.BoolProp object at 0x7f8f70783110>, 'vrml_image': <shinken.property.StringProp object at 0x7f8f6dfe9050>, '3d_coords': <shinken.property.StringProp object at 0x7f8f6dfe9150>, 'notes_url': <shinken.property.StringProp object at 0x7f8f6e38ae50>, 'host_name': <shinken.property.StringProp object at 0x7f8f6e38ad50>, 'icon_image': <shinken.property.StringProp object at 0x7f8f6e38aed0>, '2d_coords': <shinken.property.StringProp object at 0x7f8f6dfe9110>, 'imported_from': <shinken.property.StringProp object at 0x7f8f707dcd50>, 'statusmap_image': <shinken.property.StringProp object at 0x7f8f6dfe9090>}
-
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[source]
-
downtimes
-
duplicate(host)[source]
For a given host, look for all copy we must create for for_each property
:type host: shinken.objects.host.Host
:return Service
-
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_downtime()[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 0x7f8f6fbfc0d0>, 'business_impact_modulations': <shinken.property.ListProp object at 0x7f8f70355410>, 'retry_interval': <shinken.property.IntegerProp object at 0x7f8f6fbfc390>, 'labels': <shinken.property.ListProp object at 0x7f8f70355550>, 'obsess_over_service': <shinken.property.BoolProp object at 0x7f8f6fbfc510>, 'action_url': <shinken.property.StringProp object at 0x7f8f703551d0>, 'escalations': <shinken.property.ListProp object at 0x7f8f70355450>, 'low_flap_threshold': <shinken.property.IntegerProp object at 0x7f8f6fbfc910>, 'process_perf_data': <shinken.property.BoolProp object at 0x7f8f70334e50>, 'icon_image': <shinken.property.StringProp object at 0x7f8f70355210>, 'snapshot_interval': <shinken.property.IntegerProp object at 0x7f8f70355b10>, 'check_period': <shinken.property.StringProp object at 0x7f8f6fbfc4d0>, 'use': <shinken.property.ListProp object at 0x7f8f707dcf90>, 'display_name': <shinken.property.StringProp object at 0x7f8f6fbfc150>, 'notification_interval': <shinken.property.IntegerProp object at 0x7f8f70334f10>, 'failure_prediction_enabled': <shinken.property.BoolProp object at 0x7f8f703552d0>, 'flap_detection_options': <shinken.property.ListProp object at 0x7f8f70334e10>, 'snapshot_enabled': <shinken.property.BoolProp object at 0x7f8f70355a10>, 'event_handler_enabled': <shinken.property.BoolProp object at 0x7f8f6fbfc6d0>, 'trigger': <shinken.property.StringProp object at 0x7f8f70355810>, 'initial_state': <shinken.property.CharProp object at 0x7f8f6fbfc290>, 'first_notification_delay': <shinken.property.IntegerProp object at 0x7f8f70334f50>, 'notification_options': <shinken.property.ListProp object at 0x7f8f70334fd0>, 'host_name': <shinken.property.StringProp object at 0x7f8f701a8fd0>, 'snapshot_period': <shinken.property.StringProp object at 0x7f8f70355a90>, 'notifications_enabled': <shinken.property.BoolProp object at 0x7f8f70355050>, 'event_handler': <shinken.property.StringProp object at 0x7f8f6fbfc5d0>, 'aggregation': <shinken.property.StringProp object at 0x7f8f703559d0>, 'freshness_threshold': <shinken.property.IntegerProp object at 0x7f8f6fbfc590>, 'imported_from': <shinken.property.StringProp object at 0x7f8f707dcd50>, 'time_to_orphanage': <shinken.property.IntegerProp object at 0x7f8f703554d0>, 'trigger_broker_raise_enabled': <shinken.property.BoolProp object at 0x7f8f70355890>, 'name': <shinken.property.StringProp object at 0x7f8f70783090>, 'notes': <shinken.property.StringProp object at 0x7f8f70355150>, 'check_command': <shinken.property.StringProp object at 0x7f8f6fbfc250>, 'parallelize_check': <shinken.property.BoolProp object at 0x7f8f70355310>, 'servicegroups': <shinken.property.ListProp object at 0x7f8f6fbfc1d0>, 'passive_checks_enabled': <shinken.property.BoolProp object at 0x7f8f6fbfc490>, 'check_interval': <shinken.property.IntegerProp object at 0x7f8f6fbfc310>, 'merge_host_contacts': <shinken.property.BoolProp object at 0x7f8f70355510>, 'notes_url': <shinken.property.StringProp object at 0x7f8f70355190>, 'custom_views': <shinken.property.ListProp object at 0x7f8f70355990>, 'check_freshness': <shinken.property.BoolProp object at 0x7f8f6fbfc550>, 'active_checks_enabled': <shinken.property.BoolProp object at 0x7f8f6fbfc410>, 'icon_image_alt': <shinken.property.StringProp object at 0x7f8f70355250>, 'host_dependency_enabled': <shinken.property.BoolProp object at 0x7f8f70355590>, 'checkmodulations': <shinken.property.ListProp object at 0x7f8f70355910>, 'reactionner_tag': <shinken.property.StringProp object at 0x7f8f70355390>, 'is_volatile': <shinken.property.BoolProp object at 0x7f8f6fbfc210>, 'default_value': <shinken.property.StringProp object at 0x7f8f70355790>, 'maintenance_period': <shinken.property.StringProp object at 0x7f8f70355490>, 'contacts': <shinken.property.ListProp object at 0x7f8f70355090>, 'notification_period': <shinken.property.StringProp object at 0x7f8f70334f90>, 'trending_policies': <shinken.property.ListProp object at 0x7f8f703558d0>, 'resultmodulations': <shinken.property.ListProp object at 0x7f8f703553d0>, 'retain_status_information': <shinken.property.BoolProp object at 0x7f8f70334e90>, 'business_rule_downtime_as_ack': <shinken.property.BoolProp object at 0x7f8f70355650>, 'stalking_options': <shinken.property.ListProp object at 0x7f8f70355110>, 'macromodulations': <shinken.property.ListProp object at 0x7f8f70355950>, 'flap_detection_enabled': <shinken.property.BoolProp object at 0x7f8f6fbfced0>, 'business_rule_host_notification_options': <shinken.property.ListProp object at 0x7f8f70355690>, 'high_flap_threshold': <shinken.property.IntegerProp object at 0x7f8f6fbfca90>, 'definition_order': <shinken.property.IntegerProp object at 0x7f8f707830d0>, 'snapshot_criteria': <shinken.property.ListProp object at 0x7f8f70355ad0>, 'retain_nonstatus_information': <shinken.property.BoolProp object at 0x7f8f70334ed0>, 'contact_groups': <shinken.property.ListProp object at 0x7f8f703550d0>, 'business_rule_smart_notifications': <shinken.property.BoolProp object at 0x7f8f70355610>, 'service_description': <shinken.property.StringProp object at 0x7f8f6fbfc110>, 'trigger_name': <shinken.property.StringProp object at 0x7f8f70355850>, 'service_dependencies': <shinken.property.ListProp object at 0x7f8f70355710>, 'snapshot_command': <shinken.property.StringProp object at 0x7f8f70355a50>, 'register': <shinken.property.BoolProp object at 0x7f8f70783110>, 'duplicate_foreach': <shinken.property.StringProp object at 0x7f8f70355750>, 'poller_tag': <shinken.property.StringProp object at 0x7f8f70355350>, 'icon_set': <shinken.property.StringProp object at 0x7f8f70355290>, 'business_impact': <shinken.property.IntegerProp object at 0x7f8f703557d0>, 'max_check_attempts': <shinken.property.IntegerProp object at 0x7f8f6fbfc2d0>, 'business_rule_service_notification_options': <shinken.property.ListProp object at 0x7f8f703556d0>, 'business_rule_output_template': <shinken.property.StringProp object at 0x7f8f703555d0>}
-
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 0x7f8f70352f10>, 'child_dependencies': <shinken.property.StringProp object at 0x7f8f703360d0>, 'last_problem_id': <shinken.property.IntegerProp object at 0x7f8f70352750>, 'business_rule': <shinken.property.StringProp object at 0x7f8f70336050>, 'last_perf_data': <shinken.property.StringProp object at 0x7f8f70352b90>, 'acknowledgement': <shinken.property.StringProp object at 0x7f8f70352610>, 'actions': <shinken.property.ListProp object at 0x7f8f70352d10>, 'current_notification_number': <shinken.property.IntegerProp object at 0x7f8f703528d0>, 'flapping_changes': <shinken.property.ListProp object at 0x7f8f70352510>, 'last_time_critical': <shinken.property.IntegerProp object at 0x7f8f70352090>, 's_time': <shinken.property.FloatProp object at 0x7f8f70352850>, 'last_time_warning': <shinken.property.IntegerProp object at 0x7f8f70352050>, 'checks_in_progress': <shinken.property.ListProp object at 0x7f8f703523d0>, 'chk_depend_of': <shinken.property.ListProp object at 0x7f8f703522d0>, 'last_notification': <shinken.property.FloatProp object at 0x7f8f70352890>, 'chk_depend_of_me': <shinken.property.ListProp object at 0x7f8f70352350>, 'check_flapping_recovery_notification': <shinken.property.BoolProp object at 0x7f8f70352950>, 'last_state': <shinken.property.StringProp object at 0x7f8f70355e10>, 'topology_change': <shinken.property.BoolProp object at 0x7f8f703361d0>, 'my_own_business_impact': <shinken.property.IntegerProp object at 0x7f8f70352e10>, 'impacts': <shinken.property.ListProp object at 0x7f8f70352e90>, 'last_hard_state_change': <shinken.property.FloatProp object at 0x7f8f70355f10>, 'was_in_hard_unknown_reach_phase': <shinken.property.BoolProp object at 0x7f8f70336150>, 'parent_dependencies': <shinken.property.StringProp object at 0x7f8f70336090>, 'percent_state_change': <shinken.property.FloatProp object at 0x7f8f70352590>, 'notifications_in_progress': <shinken.property.DictProp object at 0x7f8f70352410>, 'u_time': <shinken.property.FloatProp object at 0x7f8f70352810>, 'last_state_id': <shinken.property.IntegerProp object at 0x7f8f70355e90>, 'has_been_checked': <shinken.property.IntegerProp object at 0x7f8f703526d0>, 'broks': <shinken.property.ListProp object at 0x7f8f70352d50>, 'last_time_unknown': <shinken.property.IntegerProp object at 0x7f8f703520d0>, 'last_state_update': <shinken.property.FloatProp object at 0x7f8f70352390>, 'execution_time': <shinken.property.FloatProp object at 0x7f8f703527d0>, 'start_time': <shinken.property.IntegerProp object at 0x7f8f70352a50>, 'state_type': <shinken.property.StringProp object at 0x7f8f70352150>, 'configuration_warnings': <shinken.property.ListProp object at 0x7f8f70783150>, 'notified_contacts': <shinken.property.ListProp object at 0x7f8f70352c50>, 'flapping_comment_id': <shinken.property.IntegerProp object at 0x7f8f70352550>, 'early_timeout': <shinken.property.IntegerProp object at 0x7f8f70352ad0>, 'in_scheduled_downtime': <shinken.property.BoolProp object at 0x7f8f70352c90>, 'state_type_id': <shinken.property.IntegerProp object at 0x7f8f70352190>, 'scheduled_downtime_depth': <shinken.property.IntegerProp object at 0x7f8f70352990>, 'in_checking': <shinken.property.BoolProp object at 0x7f8f70355c10>, 'last_state_change': <shinken.property.FloatProp object at 0x7f8f70355ed0>, 'long_output': <shinken.property.StringProp object at 0x7f8f70352210>, 'duration_sec': <shinken.property.IntegerProp object at 0x7f8f70352110>, 'current_event_id': <shinken.property.IntegerProp object at 0x7f8f70355d90>, 'end_time': <shinken.property.IntegerProp object at 0x7f8f70352a90>, 'timeout': <shinken.property.IntegerProp object at 0x7f8f70352a10>, 'output': <shinken.property.StringProp object at 0x7f8f703521d0>, 'perf_data': <shinken.property.StringProp object at 0x7f8f70352b50>, 'state_before_impact': <shinken.property.StringProp object at 0x7f8f70352ed0>, 'is_impact': <shinken.property.BoolProp object at 0x7f8f70352dd0>, 'check_type': <shinken.property.IntegerProp object at 0x7f8f70352690>, 'in_scheduled_downtime_during_last_check': <shinken.property.BoolProp object at 0x7f8f70352cd0>, 'source_problems': <shinken.property.ListProp object at 0x7f8f70352e50>, 'last_event_id': <shinken.property.IntegerProp object at 0x7f8f70355dd0>, 'in_hard_unknown_reach_phase': <shinken.property.BoolProp object at 0x7f8f70336110>, 'problem_has_been_acknowledged': <shinken.property.BoolProp object at 0x7f8f703525d0>, 'should_be_scheduled': <shinken.property.IntegerProp object at 0x7f8f70352710>, 'latency': <shinken.property.FloatProp object at 0x7f8f70355c90>, 'state_changed_since_impact': <shinken.property.BoolProp object at 0x7f8f70352f50>, 'pending_flex_downtime': <shinken.property.IntegerProp object at 0x7f8f703529d0>, 'last_state_type': <shinken.property.StringProp object at 0x7f8f70355e50>, 'downtimes': <shinken.property.ListProp object at 0x7f8f70352490>, 'last_hard_state': <shinken.property.StringProp object at 0x7f8f70355f50>, 'next_chk': <shinken.property.IntegerProp object at 0x7f8f70355bd0>, 'processed_business_rule': <shinken.property.StringProp object at 0x7f8f70352fd0>, 'comments': <shinken.property.ListProp object at 0x7f8f703524d0>, 'last_check_command': <shinken.property.StringProp object at 0x7f8f70336290>, 'state': <shinken.property.StringProp object at 0x7f8f70355d10>, 'current_problem_id': <shinken.property.IntegerProp object at 0x7f8f70352790>, 'last_chk': <shinken.property.IntegerProp object at 0x7f8f70355b90>, 'current_notification_id': <shinken.property.IntegerProp object at 0x7f8f70352910>, 'last_snapshot': <shinken.property.IntegerProp object at 0x7f8f70336250>, 'is_problem': <shinken.property.BoolProp object at 0x7f8f70352d90>, 'last_time_ok': <shinken.property.IntegerProp object at 0x7f8f70355fd0>, 'hash': <shinken.property.StringProp object at 0x7f8f707831d0>, 'tags': <shinken.property.ListProp object at 0x7f8f70783210>, 'return_code': <shinken.property.IntegerProp object at 0x7f8f70352b10>, 'is_flapping': <shinken.property.BoolProp object at 0x7f8f70352250>, 'customs': <shinken.property.DictProp object at 0x7f8f70352c10>, 'host': <shinken.property.StringProp object at 0x7f8f70352bd0>, 'state_before_hard_unknown_reach_phase': <shinken.property.StringProp object at 0x7f8f70336190>, 'state_id': <shinken.property.IntegerProp object at 0x7f8f70355d50>, 'configuration_errors': <shinken.property.ListProp object at 0x7f8f70783190>, 'act_depend_of_me': <shinken.property.ListProp object at 0x7f8f70352310>, 'attempt': <shinken.property.IntegerProp object at 0x7f8f70355cd0>, 'act_depend_of': <shinken.property.ListProp object at 0x7f8f70352290>, 'triggers': <shinken.property.ListProp object at 0x7f8f70336210>, 'acknowledgement_type': <shinken.property.IntegerProp object at 0x7f8f70352650>, 'modified_attributes': <shinken.property.IntegerProp object at 0x7f8f70355b50>, 'in_maintenance': <shinken.property.IntegerProp object at 0x7f8f70355c50>, 'got_business_rule': <shinken.property.BoolProp object at 0x7f8f70352f90>, 'last_hard_state_id': <shinken.property.IntegerProp object at 0x7f8f70355f90>}
-
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
-
unique_key[source]
-
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, was_partial=False)[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_partial_service(item, index=True, var_tuple=None)[source]
-
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()[source]
For all items and templates inherite properties and custom
variables.
-
apply_partial_inheritance(prop)[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 (Service) – 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, service)[source]
Explodes services from templates. All hosts holding the specified
templates are bound the service.
-
find_srv_by_name_and_hostname(host_name, sdescr)[source]
-
find_srvs_by_hostname(host_name)[source]
-
inner_class
alias of Service
-
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]
-
linkify_templates()[source]
-
name_property = 'unique_key'
-
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
|