Simple Acknowledge class diagram :
Simple Action class diagram :
Simple AutoSlots class diagram :
Simple BaseModule class diagram :
Simple Borg class diagram :
Simple Brok class diagram :
Simple CherryPyBackend class diagram :
Simple Comment class diagram :
Simple ComplexExpressionFactory class diagram :
Simple ComplexExpressionNode class diagram :
Simple ContactDowntime class diagram :
Simple Daemon class diagram :
Simple Daterange class diagram :
Simple DB class diagram :
Simple declared class diagram :
Simple DependencyNode class diagram :
Simple DependencyNodeFactory class diagram :
Simple Dispatcher class diagram :
Simple Downtime class diagram :
Simple DummyCommandCall class diagram :
Simple ExternalCommand class diagram :
Simple ExternalCommandManager class diagram :
Simple Graph class diagram :
Simple HTTPClient class diagram :
Simple HTTPDaemon class diagram :
Simple Load class diagram :
Simple Log class diagram :
Simple memoized class diagram :
Simple Message class diagram :
Simple ModulesContext class diagram :
Simple ModulesManager class diagram :
Simple ModulePhases class diagram :
Simple Property class diagram :
Simple SatelliteLink class diagram :
Simple Scheduler class diagram :
Simple SortedDict class diagram :
Simple Timerange class diagram :
Simple Worker class diagram :
Simple WSGIREFBackend class diagram :
shinken Package¶acknowledge Module¶shinken.acknowledge.Acknowledge(ref, sticky, notify, persistent, author, comment, end_time=0)[source]¶Allows you to acknowledge the current problem for the specified service. By acknowledging the current problem, future notifications (for the same servicestate) are disabled.
id = 1¶properties = {'comment': None, 'author': None, 'sticky': None, 'end_time': None, 'id': None, 'notify': None}¶arbiterlink Module¶shinken.arbiterlink.ArbiterLink(*args, **kwargs)[source]¶Bases: shinken.satellitelink.SatelliteLink
id = 0¶my_type = 'arbiter'¶properties = {'timeout': <shinken.property.IntegerProp object at 0x7f2dc12e0a10>, 'definition_order': <shinken.property.IntegerProp object at 0x7f2dc04e03d0>, 'hard_ssl_name_check': <shinken.property.BoolProp object at 0x7f2dc12e0dd0>, 'use_timezone': <shinken.property.StringProp object at 0x7f2dc12e0c50>, 'spare': <shinken.property.BoolProp object at 0x7f2dc12e0b10>, 'address': <shinken.property.StringProp object at 0x7f2dc12e0990>, 'realm': <shinken.property.StringProp object at 0x7f2dc12e0c90>, 'manage_arbiters': <shinken.property.BoolProp object at 0x7f2dc12e0b90>, 'imported_from': <shinken.property.StringProp object at 0x7f2dc04e0310>, 'use': <shinken.property.ListProp object at 0x7f2dc04e0350>, 'data_timeout': <shinken.property.IntegerProp object at 0x7f2dc12e0a50>, 'name': <shinken.property.StringProp object at 0x7f2dc04e0390>, 'modules': <shinken.property.ListProp object at 0x7f2dc12e0bd0>, 'port': <shinken.property.IntegerProp object at 0x7f2dc12ec0d0>, 'manage_sub_realms': <shinken.property.BoolProp object at 0x7f2dc12e0b50>, 'satellitemap': <shinken.property.DictProp object at 0x7f2dc12e0cd0>, 'host_name': <shinken.property.StringProp object at 0x7f2dc12ec090>, 'check_interval': <shinken.property.IntegerProp object at 0x7f2dc12e0a90>, 'polling_interval': <shinken.property.IntegerProp object at 0x7f2dc12e0c10>, 'use_ssl': <shinken.property.BoolProp object at 0x7f2dc12e0d90>, 'max_check_attempts': <shinken.property.IntegerProp object at 0x7f2dc12e0ad0>, 'arbiter_name': <shinken.property.StringProp object at 0x7f2dc12ec050>}¶shinken.arbiterlink.ArbiterLinks(items)[source]¶Bases: shinken.satellitelink.SatelliteLinks
inner_class¶alias of ArbiterLink
name_property = 'name'¶autoslots Module¶The AutoSlots Class is a MetaClass: it manages how other classes are created (Classes, not instances of theses classes). Here it’s role is to create the __slots__ list of the class with all properties of Class.properties and Class.running_properties so we do not have to add manually all properties to the __slots__ list when we add a new entry
basemodule Module¶This python module contains the class BaseModule that shinken modules will subclass
shinken.basemodule.BaseModule(mod_conf)[source]¶Bases: object
This is the base class for the shinken modules. Modules can be used by the different shinken daemons/services for different tasks. Example of task that a shinken module can do:
- load additional configuration objects.
- recurrently save hosts/services status/perfdata informations in different format.
- ...
create_queues(manager=None)[source]¶The manager is None on android, but a true Manager() elsewhere Create the shared queues that will be used by shinken daemon process and this module process. But clear queues if they were already set before recreating new one.
do_loop_turn()[source]¶For external modules only: implement in this method the body of you main loop
do_stop()[source]¶Called just before the module will exit Put in this method all you need to cleanly release all open resources used by your module
init()[source]¶Handle this module “post” init ; just before it’ll be started. Like just open necessaries file(s), database(s), or whatever the module will need.
manage_brok(brok)[source]¶Request the module to manage the given brok. There a lot of different possible broks to manage.
set_exit_handler(sigs=None)¶work()¶module “main” method. Only used by external modules.
bin Module¶This file is to be imported by every Shinken service component: Arbiter, Scheduler, etc. It just checks for the main requirement of Shinken.
borg Module¶brok Module¶brokerlink Module¶shinken.brokerlink.BrokerLink(*args, **kwargs)[source]¶Bases: shinken.satellitelink.SatelliteLink
TODO: Add some comment about this class for the doc
id = 0¶my_type = 'broker'¶properties = {'broker_name': <shinken.property.StringProp object at 0x7f2dc12ecbd0>, 'timeout': <shinken.property.IntegerProp object at 0x7f2dc12e0a10>, 'definition_order': <shinken.property.IntegerProp object at 0x7f2dc04e03d0>, 'hard_ssl_name_check': <shinken.property.BoolProp object at 0x7f2dc12e0dd0>, 'use_timezone': <shinken.property.StringProp object at 0x7f2dc12e0c50>, 'spare': <shinken.property.BoolProp object at 0x7f2dc12e0b10>, 'address': <shinken.property.StringProp object at 0x7f2dc12e0990>, 'realm': <shinken.property.StringProp object at 0x7f2dc12e0c90>, 'manage_arbiters': <shinken.property.BoolProp object at 0x7f2dc12e0b90>, 'imported_from': <shinken.property.StringProp object at 0x7f2dc04e0310>, 'use': <shinken.property.ListProp object at 0x7f2dc04e0350>, 'data_timeout': <shinken.property.IntegerProp object at 0x7f2dc12e0a50>, 'name': <shinken.property.StringProp object at 0x7f2dc04e0390>, 'modules': <shinken.property.ListProp object at 0x7f2dc12e0bd0>, 'port': <shinken.property.IntegerProp object at 0x7f2dc12ecc50>, 'manage_sub_realms': <shinken.property.BoolProp object at 0x7f2dc12e0b50>, 'satellitemap': <shinken.property.DictProp object at 0x7f2dc12e0cd0>, 'check_interval': <shinken.property.IntegerProp object at 0x7f2dc12e0a90>, 'polling_interval': <shinken.property.IntegerProp object at 0x7f2dc12e0c10>, 'use_ssl': <shinken.property.BoolProp object at 0x7f2dc12e0d90>, 'max_check_attempts': <shinken.property.IntegerProp object at 0x7f2dc12e0ad0>}¶shinken.brokerlink.BrokerLinks(items)[source]¶Bases: shinken.satellitelink.SatelliteLinks
TODO: Add some comment about this class for the doc
inner_class¶alias of BrokerLink
name_property = 'broker_name'¶check Module¶shinken.check.Check(status, command, ref, t_to_go, dep_check=None, id=None, timeout=10, poller_tag='None', reactionner_tag='None', env={}, module_type='fork', from_trigger=False, dependency_check=False)[source]¶Bases: shinken.action.Action
ODO: Add some comment about this class for the doc
copy_shell()[source]¶return a copy of the check but just what is important for execution So we remove the ref and all
my_type = 'check'¶properties = {'check_type': <shinken.property.IntegerProp object at 0x7f2dc0c68850>, 'exit_status': <shinken.property.IntegerProp object at 0x7f2dc0c68510>, 'reactionner_tag': <shinken.property.StringProp object at 0x7f2dc0c688d0>, 's_time': <shinken.property.FloatProp object at 0x7f2dc0c687d0>, 'check_time': <shinken.property.IntegerProp object at 0x7f2dc0c68710>, 'long_output': <shinken.property.StringProp object at 0x7f2dc0c685d0>, 'state': <shinken.property.IntegerProp object at 0x7f2dc0c68550>, 'internal': <shinken.property.BoolProp object at 0x7f2dc0c68950>, 'u_time': <shinken.property.FloatProp object at 0x7f2dc0c68790>, 'env': <shinken.property.StringProp object at 0x7f2dc0c68910>, 'ref': <shinken.property.IntegerProp object at 0x7f2dc0c68610>, 'from_trigger': <shinken.property.BoolProp object at 0x7f2dc0c68a10>, 'status': <shinken.property.StringProp object at 0x7f2dc0c684d0>, 'execution_time': <shinken.property.FloatProp object at 0x7f2dc0c68750>, 'worker': <shinken.property.StringProp object at 0x7f2dc0c689d0>, 't_to_go': <shinken.property.IntegerProp object at 0x7f2dc0c68650>, 'module_type': <shinken.property.StringProp object at 0x7f2dc0c68990>, 'dep_check': <shinken.property.StringProp object at 0x7f2dc0c686d0>, '_in_timeout': <shinken.property.BoolProp object at 0x7f2dc0c68490>, 'type': <shinken.property.StringProp object at 0x7f2dc0c68450>, 'depend_on': <shinken.property.StringProp object at 0x7f2dc0c68690>, 'is_a': <shinken.property.StringProp object at 0x7f2dc0c683d0>, 'poller_tag': <shinken.property.StringProp object at 0x7f2dc0c68890>, 'output': <shinken.property.StringProp object at 0x7f2dc0c68590>, 'perf_data': <shinken.property.StringProp object at 0x7f2dc0c68810>}¶commandcall Module¶shinken.commandcall.CommandCall(commands, call, poller_tag='None', reactionner_tag='None', enable_environment_macros=0)[source]¶Bases: shinken.commandcall.DummyCommandCall
This class is use when a service, contact or host define a command with args.
args¶call¶command¶enable_environment_macros¶get_command_and_args()[source]¶We want to get the command and the args with ! splitting. but don’t forget to protect against the ! to do not split them
id = 0¶late_relink_done¶module_type¶my_type = 'CommandCall'¶poller_tag¶properties = {'poller_tag': <shinken.property.StringProp object at 0x7f2dc04e0110>, 'reactionner_tag': <shinken.property.StringProp object at 0x7f2dc04e0150>, 'valid': <shinken.property.BoolProp object at 0x7f2dc04e01d0>, 'call': <shinken.property.StringProp object at 0x7f2dc04e0050>, 'enable_environment_macros': <shinken.property.BoolProp object at 0x7f2dc04e02d0>, 'timeout': <shinken.property.IntegerProp object at 0x7f2dc04e0250>, 'late_relink_done': <shinken.property.BoolProp object at 0x7f2dc04e0290>, 'command': <shinken.property.StringProp object at 0x7f2dc04e00d0>, 'args': <shinken.property.StringProp object at 0x7f2dc04e0210>, 'module_type': <shinken.property.StringProp object at 0x7f2dc04e0190>}¶reactionner_tag¶timeout¶valid¶comment Module¶shinken.comment.Comment(ref, persistent, author, comment, comment_type, entry_type, source, expires, expire_time)[source]¶id = 1¶properties = {'comment': None, 'source': None, 'entry_time': None, 'comment_type': None, 'author': None, 'expire_time': None, 'entry_type': None, 'can_be_deleted': None, 'expires': None, 'persistent': None}¶complexexpression Module¶contactdowntime Module¶daemon Module¶shinken.daemon.Daemon(name, config_file, is_daemon, do_replace, debug, debug_file)[source]¶Bases: object
properties = {'modules_dir': <shinken.property.PathProp object at 0x7f2dc1613c90>, 'server_cert': <shinken.property.StringProp object at 0x7f2dc168af10>, 'workdir': <shinken.property.PathProp object at 0x7f2dc1613b50>, 'group': <shinken.property.StringProp object at 0x7f2dc16110d0>, 'ca_cert': <shinken.property.StringProp object at 0x7f2dc168aed0>, 'http_backend': <shinken.property.StringProp object at 0x7f2dc15c7190>, 'log_level': <shinken.property.LogLevelProp object at 0x7f2dc168af90>, 'hard_ssl_name_check': <shinken.property.BoolProp object at 0x7f2dc168afd0>, 'host': <shinken.property.StringProp object at 0x7f2dc1613ed0>, 'server_key': <shinken.property.StringProp object at 0x7f2dc168ae90>, 'spare': <shinken.property.BoolProp object at 0x7f2dc15c70d0>, 'user': <shinken.property.StringProp object at 0x7f2dc1613fd0>, 'max_queue_size': <shinken.property.IntegerProp object at 0x7f2dc15c7110>, 'daemon_enabled': <shinken.property.BoolProp object at 0x7f2dc15c7090>, 'use_ssl': <shinken.property.BoolProp object at 0x7f2dc1611190>, 'use_local_log': <shinken.property.BoolProp object at 0x7f2dc168af50>, 'idontcareaboutsecurity': <shinken.property.BoolProp object at 0x7f2dc15c7050>, 'daemon_thread_pool_size': <shinken.property.IntegerProp object at 0x7f2dc15c7150>}¶shinken.daemon.Interface(app)[source]¶Bases: object
doc = 'List the api methods and their parameters'¶shinken.daemon.InvalidPidFile[source]¶Bases: exceptions.Exception
daterange Module¶shinken.daterange.CalendarDaterange(syear, smon, smday, swday, swday_offset, eyear, emon, emday, ewday, ewday_offset, skip_interval, other)[source]¶Bases: shinken.daterange.Daterange
shinken.daterange.Daterange(syear, smon, smday, swday, swday_offset, eyear, emon, emday, ewday, ewday_offset, skip_interval, other)[source]¶months = {'march': 3, 'august': 8, 'september': 9, 'december': 12, 'june': 6, 'july': 7, 'november': 11, 'february': 2, 'october': 10, 'may': 5, 'january': 1, 'april': 4}¶weekdays = {'monday': 0, 'tuesday': 1, 'friday': 4, 'wednesday': 2, 'thursday': 3, 'sunday': 6, 'saturday': 5}¶shinken.daterange.MonthDateDaterange(syear, smon, smday, swday, swday_offset, eyear, emon, emday, ewday, ewday_offset, skip_interval, other)[source]¶Bases: shinken.daterange.Daterange
shinken.daterange.MonthDayDaterange(syear, smon, smday, swday, swday_offset, eyear, emon, emday, ewday, ewday_offset, skip_interval, other)[source]¶Bases: shinken.daterange.Daterange
shinken.daterange.MonthWeekDayDaterange(syear, smon, smday, swday, swday_offset, eyear, emon, emday, ewday, ewday_offset, skip_interval, other)[source]¶Bases: shinken.daterange.Daterange
shinken.daterange.StandardDaterange(day, other)[source]¶Bases: shinken.daterange.Daterange
shinken.daterange.WeekDayDaterange(syear, smon, smday, swday, swday_offset, eyear, emon, emday, ewday, ewday_offset, skip_interval, other)[source]¶Bases: shinken.daterange.Daterange
db Module¶shinken.db.DB(table_prefix='')[source]¶Bases: object
DB is a generic class for SQL Database
create_insert_query(table, data)[source]¶Create a INSERT query in table with all data of data (a dict)
db_mysql Module¶shinken.db_mysql.DBMysql(host, user, password, database, character_set, table_prefix='', port=3306)[source]¶Bases: shinken.db.DB
DBMysql is a MySQL access database class
db_oracle Module¶shinken.db_oracle.DBOracle(user, password, database, table_prefix='')[source]¶Bases: shinken.db.DB
Manage connection and query execution against Oracle databases.
db_sqlite Module¶dependencynode Module¶dispatcher Module¶This is the class of the dispatcher. Its role is to dispatch configurations to other elements like schedulers, reactionner, pollers, receivers and brokers. It is responsible for high availability part. If an element dies and the element type has a spare, it sends the config of the dead one to the spare
downtime Module¶shinken.downtime.Downtime(ref, start_time, end_time, fixed, trigger_id, duration, author, comment)[source]¶id = 1¶properties = {'comment': <shinken.property.StringProp object at 0x7f2dc10b16d0>, 'entry_time': <shinken.property.IntegerProp object at 0x7f2dc10b1350>, 'start_time': <shinken.property.IntegerProp object at 0x7f2dc10b1c10>, 'is_in_effect': <shinken.property.BoolProp object at 0x7f2dc10b1a50>, 'has_been_triggered': <shinken.property.BoolProp object at 0x7f2dc10b1dd0>, 'trigger_id': <shinken.property.IntegerProp object at 0x7f2dc10b10d0>, 'duration': <shinken.property.IntegerProp object at 0x7f2dc10b1250>, 'author': <shinken.property.StringProp object at 0x7f2dc10b1690>, 'can_be_deleted': <shinken.property.BoolProp object at 0x7f2dc10b1e90>, 'activate_me': <shinken.property.StringProp object at 0x7f2dc10b1310>, 'real_end_time': <shinken.property.IntegerProp object at 0x7f2dc10b1490>, 'end_time': <shinken.property.IntegerProp object at 0x7f2dc10b15d0>, 'fixed': <shinken.property.BoolProp object at 0x7f2dc10b12d0>}¶easter Module¶shinken.easter.get_coffee()[source]¶
- (
- ) (
- ___...(——-)-....___
.-“” ) ( “”-.
.-‘``’|-._ ) _.-|
/ .–.| “”—...........—”“ |
/ / | | | | | |
_..—”“` /`“”—.._
.-‘ / ‘-.
: `-.__ __.-‘ : : ) “”—...—”” ( :
‘._ “–...___...–” _.’
eventhandler Module¶shinken.eventhandler.EventHandler(command, id=None, ref=None, timeout=10, env={}, module_type='fork', reactionner_tag='None')[source]¶Bases: shinken.action.Action
check_time¶command¶env¶execution_time¶exit_status¶is_a¶long_output¶module_type¶my_type = 'eventhandler'¶output¶perf_data¶properties = {'status': <shinken.property.StringProp object at 0x7f2dc169cd50>, 'module_type': <shinken.property.StringProp object at 0x7f2dc0ea3110>, 'check_time': <shinken.property.IntegerProp object at 0x7f2dc0ea30d0>, 'exit_status': <shinken.property.StringProp object at 0x7f2dc169cd90>, 'execution_time': <shinken.property.FloatProp object at 0x7f2dc169ced0>, 's_time': <shinken.property.FloatProp object at 0x7f2dc169cf50>, 'worker': <shinken.property.StringProp object at 0x7f2dc0ea3150>, 'timeout': <shinken.property.IntegerProp object at 0x7f2dc0ea3090>, 't_to_go': <shinken.property.StringProp object at 0x7f2dc169ce50>, 'is_a': <shinken.property.StringProp object at 0x7f2dc169cc90>, 'long_output': <shinken.property.StringProp object at 0x7f2dc169ce10>, 'reactionner_tag': <shinken.property.StringProp object at 0x7f2dc0ea3190>, 'command': <shinken.property.StringProp object at 0x7f2dc169ce90>, 'u_time': <shinken.property.FloatProp object at 0x7f2dc169cf10>, 'env': <shinken.property.StringProp object at 0x7f2dc169cf90>, 'output': <shinken.property.StringProp object at 0x7f2dc169cdd0>, '_in_timeout': <shinken.property.StringProp object at 0x7f2dc169cb50>, 'sched_id': <shinken.property.IntegerProp object at 0x7f2dc0ea3050>, 'type': <shinken.property.StringProp object at 0x7f2dc169cd10>, 'perf_data': <shinken.property.StringProp object at 0x7f2dc169cfd0>}¶reactionner_tag¶s_time¶sched_id¶status¶t_to_go¶timeout¶type¶u_time¶worker¶external_command Module¶shinken.external_command.ExternalCommandManager(conf, mode)[source]¶ACKNOWLEDGE_HOST_PROBLEM_EXPIRE(host, sticky, notify, persistent, end_time, author, comment)[source]¶ACKNOWLEDGE_SVC_PROBLEM_EXPIRE(service, sticky, notify, persistent, end_time, author, comment)[source]¶SCHEDULE_AND_PROPAGATE_HOST_DOWNTIME(host, start_time, end_time, fixed, trigger_id, duration, author, comment)[source]¶SCHEDULE_AND_PROPAGATE_TRIGGERED_HOST_DOWNTIME(host, start_time, end_time, fixed, trigger_id, duration, author, comment)[source]¶SCHEDULE_HOSTGROUP_HOST_DOWNTIME(hostgroup, start_time, end_time, fixed, trigger_id, duration, author, comment)[source]¶SCHEDULE_HOSTGROUP_SVC_DOWNTIME(hostgroup, start_time, end_time, fixed, trigger_id, duration, author, comment)[source]¶SCHEDULE_HOST_DOWNTIME(host, start_time, end_time, fixed, trigger_id, duration, author, comment)[source]¶SCHEDULE_HOST_SVC_DOWNTIME(host, start_time, end_time, fixed, trigger_id, duration, author, comment)[source]¶SCHEDULE_SERVICEGROUP_HOST_DOWNTIME(servicegroup, start_time, end_time, fixed, trigger_id, duration, author, comment)[source]¶SCHEDULE_SERVICEGROUP_SVC_DOWNTIME(servicegroup, start_time, end_time, fixed, trigger_id, duration, author, comment)[source]¶SCHEDULE_SVC_DOWNTIME(service, start_time, end_time, fixed, trigger_id, duration, author, comment)[source]¶commands = {'ACKNOWLEDGE_SVC_PROBLEM_EXPIRE': {'global': False, 'args': ['service', 'to_int', 'to_bool', 'to_bool', 'to_int', 'author', None]}, 'CHANGE_NORMAL_HOST_CHECK_INTERVAL': {'global': False, 'args': ['host', 'to_int']}, 'ENABLE_SERVICEGROUP_HOST_NOTIFICATIONS': {'global': True, 'args': ['service_group']}, 'DELAY_SVC_NOTIFICATION': {'global': False, 'args': ['service', 'to_int']}, 'ENABLE_HOSTGROUP_SVC_CHECKS': {'global': True, 'args': ['host_group']}, 'CHANGE_CONTACT_HOST_NOTIFICATION_TIMEPERIOD': {'global': True, 'args': ['contact', 'time_period']}, 'SCHEDULE_SVC_DOWNTIME': {'global': False, 'args': ['service', 'to_int', 'to_int', 'to_bool', 'to_int', 'to_int', 'author', None]}, 'DEL_SVC_COMMENT': {'global': True, 'args': ['to_int']}, 'DISABLE_EVENT_HANDLERS': {'global': True, 'args': []}, 'REMOVE_SVC_ACKNOWLEDGEMENT': {'global': False, 'args': ['service']}, 'ENABLE_HOST_FRESHNESS_CHECKS': {'global': True, 'args': []}, 'REMOVE_HOST_ACKNOWLEDGEMENT': {'global': False, 'args': ['host']}, 'DISABLE_FLAP_DETECTION': {'global': True, 'args': []}, 'ENABLE_EVENT_HANDLERS': {'global': True, 'args': []}, 'ACKNOWLEDGE_HOST_PROBLEM_EXPIRE': {'global': False, 'args': ['host', 'to_int', 'to_bool', 'to_bool', 'to_int', 'author', None]}, 'SEND_CUSTOM_SVC_NOTIFICATION': {'global': False, 'args': ['service', 'to_int', 'author', None]}, 'ENABLE_NOTIFICATIONS': {'global': True, 'args': []}, 'SHUTDOWN_PROGRAM': {'global': True, 'args': []}, 'PROCESS_FILE': {'global': True, 'args': [None, 'to_bool']}, 'ENABLE_HOSTGROUP_PASSIVE_SVC_CHECKS': {'global': True, 'args': ['host_group']}, 'SCHEDULE_HOST_CHECK': {'global': False, 'args': ['host', 'to_int']}, 'STOP_OBSESSING_OVER_HOST_CHECKS': {'global': True, 'args': []}, 'DISABLE_CONTACTGROUP_HOST_NOTIFICATIONS': {'global': True, 'args': ['contact_group']}, 'DISABLE_HOST_NOTIFICATIONS': {'global': False, 'args': ['host']}, 'DISABLE_FAILURE_PREDICTION': {'global': True, 'args': []}, 'DISABLE_CONTACTGROUP_SVC_NOTIFICATIONS': {'global': True, 'args': ['contact_group']}, 'SCHEDULE_SERVICEGROUP_SVC_DOWNTIME': {'global': True, 'args': ['service_group', 'to_int', 'to_int', 'to_bool', 'to_int', 'to_int', 'author', None]}, 'DEL_ALL_SVC_COMMENTS': {'global': False, 'args': ['service']}, 'CHANGE_SVC_CHECK_TIMEPERIOD': {'global': False, 'args': ['service', 'time_period']}, 'ENABLE_CONTACTGROUP_HOST_NOTIFICATIONS': {'global': True, 'args': ['contact_group']}, 'SET_HOST_NOTIFICATION_NUMBER': {'global': False, 'args': ['host', 'to_int']}, 'ENABLE_FLAP_DETECTION': {'global': True, 'args': []}, 'SCHEDULE_HOSTGROUP_SVC_DOWNTIME': {'global': True, 'args': ['host_group', 'to_int', 'to_int', 'to_bool', 'to_int', 'to_int', 'author', None]}, 'ENABLE_HOSTGROUP_PASSIVE_HOST_CHECKS': {'global': True, 'args': ['host_group']}, 'CHANGE_MAX_SVC_CHECK_ATTEMPTS': {'global': False, 'args': ['service', 'to_int']}, 'ENABLE_SERVICEGROUP_PASSIVE_HOST_CHECKS': {'global': True, 'args': ['service_group']}, 'DISABLE_PERFORMANCE_DATA': {'global': True, 'args': []}, 'DISABLE_SERVICE_FLAP_DETECTION': {'global': False, 'args': ['service']}, 'DISABLE_HOST_FRESHNESS_CHECKS': {'global': True, 'args': []}, 'CHANGE_RETRY_HOST_CHECK_INTERVAL': {'global': False, 'args': ['service', 'to_int']}, 'DEL_CONTACT_DOWNTIME': {'global': True, 'args': ['to_int']}, 'ENABLE_HOST_SVC_CHECKS': {'global': False, 'args': ['host']}, 'ENABLE_SERVICEGROUP_SVC_CHECKS': {'global': True, 'args': ['service_group']}, 'CHANGE_CONTACT_SVC_NOTIFICATION_TIMEPERIOD': {'global': True, 'args': ['contact', 'time_period']}, 'DEL_HOST_DEPENDENCY': {'global': False, 'args': ['host', 'host']}, 'CHANGE_SVC_EVENT_HANDLER': {'global': False, 'args': ['service', 'command']}, 'ADD_HOST_COMMENT': {'global': False, 'args': ['host', 'to_bool', 'author', None]}, 'DISABLE_HOST_AND_CHILD_NOTIFICATIONS': {'global': False, 'args': ['host']}, 'DISABLE_SERVICEGROUP_HOST_CHECKS': {'global': True, 'args': ['service_group']}, 'CHANGE_RETRY_SVC_CHECK_INTERVAL': {'global': False, 'args': ['service', 'to_int']}, 'ENABLE_SERVICEGROUP_SVC_NOTIFICATIONS': {'global': True, 'args': ['service_group']}, 'DISABLE_HOST_FLAP_DETECTION': {'global': False, 'args': ['host']}, 'ENABLE_SERVICEGROUP_PASSIVE_SVC_CHECKS': {'global': True, 'args': ['service_group']}, 'ACKNOWLEDGE_SVC_PROBLEM': {'global': False, 'args': ['service', 'to_int', 'to_bool', 'to_bool', 'author', None]}, 'CHANGE_CONTACT_MODSATTR': {'global': True, 'args': ['contact', None]}, 'LAUNCH_SVC_EVENT_HANDLER': {'global': False, 'args': ['service']}, 'DISABLE_SERVICEGROUP_PASSIVE_HOST_CHECKS': {'global': True, 'args': ['service_group']}, 'DISABLE_HOST_SVC_NOTIFICATIONS': {'global': False, 'args': ['host']}, 'ENABLE_HOST_CHECK': {'global': False, 'args': ['host']}, 'ENABLE_ALL_NOTIFICATIONS_BEYOND_HOST': {'global': False, 'args': ['host']}, 'STOP_ACCEPTING_PASSIVE_SVC_CHECKS': {'global': True, 'args': []}, 'DISABLE_HOSTGROUP_PASSIVE_HOST_CHECKS': {'global': True, 'args': ['host_group']}, 'ADD_SIMPLE_HOST_DEPENDENCY': {'global': False, 'args': ['host', 'host']}, 'CHANGE_SVC_NOTIFICATION_TIMEPERIOD': {'global': False, 'args': ['service', 'time_period']}, 'ENABLE_HOST_SVC_NOTIFICATIONS': {'global': False, 'args': ['host']}, 'DISABLE_HOST_EVENT_HANDLER': {'global': False, 'args': ['host']}, 'START_ACCEPTING_PASSIVE_SVC_CHECKS': {'global': True, 'args': []}, 'CHANGE_HOST_CHECK_COMMAND': {'global': False, 'args': ['host', 'command']}, 'ACKNOWLEDGE_HOST_PROBLEM': {'global': False, 'args': ['host', 'to_int', 'to_bool', 'to_bool', 'author', None]}, 'SCHEDULE_AND_PROPAGATE_HOST_DOWNTIME': {'global': False, 'args': ['host', 'to_int', 'to_int', 'to_bool', 'to_int', 'to_int', 'author', None]}, 'PROCESS_SERVICE_OUTPUT': {'global': False, 'args': ['service', None]}, 'DISABLE_HOST_CHECK': {'global': False, 'args': ['host']}, 'DISABLE_HOSTGROUP_HOST_NOTIFICATIONS': {'global': True, 'args': ['host_group']}, 'CHANGE_CUSTOM_HOST_VAR': {'global': False, 'args': ['host', None, None]}, 'CHANGE_MAX_HOST_CHECK_ATTEMPTS': {'global': False, 'args': ['host', 'to_int']}, 'ENABLE_CONTACT_HOST_NOTIFICATIONS': {'global': True, 'args': ['contact']}, 'SCHEDULE_CONTACT_DOWNTIME': {'global': True, 'args': ['contact', 'to_int', 'to_int', 'author', None]}, 'START_EXECUTING_SVC_CHECKS': {'global': True, 'args': []}, 'START_EXECUTING_HOST_CHECKS': {'global': True, 'args': []}, 'DISABLE_HOSTGROUP_SVC_NOTIFICATIONS': {'global': True, 'args': ['host_group']}, 'CHANGE_CUSTOM_SVC_VAR': {'global': False, 'args': ['service', None, None]}, 'DISABLE_SVC_NOTIFICATIONS': {'global': False, 'args': ['service']}, 'DISABLE_NOTIFICATIONS': {'global': True, 'args': []}, 'ENABLE_PASSIVE_HOST_CHECKS': {'global': False, 'args': ['host']}, 'DISABLE_SERVICEGROUP_PASSIVE_SVC_CHECKS': {'global': True, 'args': ['service_group']}, 'STOP_OBSESSING_OVER_HOST': {'global': False, 'args': ['host']}, 'ENABLE_CONTACT_SVC_NOTIFICATIONS': {'global': True, 'args': ['contact']}, 'ENABLE_SVC_CHECK': {'global': False, 'args': ['service']}, 'DEL_HOST_DOWNTIME': {'global': True, 'args': ['to_int']}, 'ENABLE_HOST_AND_CHILD_NOTIFICATIONS': {'global': False, 'args': ['host']}, 'SCHEDULE_FORCED_HOST_SVC_CHECKS': {'global': False, 'args': ['host', 'to_int']}, 'DISABLE_SERVICE_FRESHNESS_CHECKS': {'global': True, 'args': []}, 'ENABLE_HOST_EVENT_HANDLER': {'global': False, 'args': ['host']}, 'START_OBSESSING_OVER_HOST': {'global': False, 'args': ['host']}, 'ENABLE_PERFORMANCE_DATA': {'global': True, 'args': []}, 'ENABLE_HOSTGROUP_SVC_NOTIFICATIONS': {'global': True, 'args': ['host_group']}, 'ENABLE_SERVICEGROUP_HOST_CHECKS': {'global': True, 'args': ['service_group']}, 'SET_SVC_NOTIFICATION_NUMBER': {'global': False, 'args': ['service', 'to_int']}, 'DISABLE_SVC_CHECK': {'global': False, 'args': ['service']}, 'DISABLE_SVC_EVENT_HANDLER': {'global': False, 'args': ['service']}, 'ENABLE_PASSIVE_SVC_CHECKS': {'global': False, 'args': ['service']}, 'CHANGE_CONTACT_MODHATTR': {'global': True, 'args': ['contact', None]}, 'PROCESS_HOST_OUTPUT': {'global': False, 'args': ['host', None]}, 'CHANGE_GLOBAL_SVC_EVENT_HANDLER': {'global': True, 'args': ['command']}, 'SCHEDULE_HOST_SVC_DOWNTIME': {'global': False, 'args': ['host', 'to_int', 'to_int', 'to_bool', 'to_int', 'to_int', 'author', None]}, 'DISABLE_HOSTGROUP_HOST_CHECKS': {'global': True, 'args': ['host_group']}, 'ENABLE_HOST_FLAP_DETECTION': {'global': False, 'args': ['host']}, 'STOP_ACCEPTING_PASSIVE_HOST_CHECKS': {'global': True, 'args': []}, 'CHANGE_SVC_MODATTR': {'global': False, 'args': ['service', 'to_int']}, 'SCHEDULE_HOST_SVC_CHECKS': {'global': False, 'args': ['host', 'to_int']}, 'ENABLE_CONTACTGROUP_SVC_NOTIFICATIONS': {'global': True, 'args': ['contact_group']}, 'ENABLE_HOSTGROUP_HOST_NOTIFICATIONS': {'global': True, 'args': ['host_group']}, 'DISABLE_SERVICEGROUP_SVC_CHECKS': {'global': True, 'args': ['service_group']}, 'SAVE_STATE_INFORMATION': {'global': True, 'args': []}, 'DEL_ALL_HOST_DOWNTIMES': {'global': False, 'args': ['host']}, 'CHANGE_GLOBAL_HOST_EVENT_HANDLER': {'global': True, 'args': ['command']}, 'DEL_ALL_SVC_DOWNTIMES': {'global': False, 'args': ['service']}, 'ADD_SIMPLE_POLLER': {'global': True, 'internal': True, 'args': [None, None, None, None]}, 'READ_STATE_INFORMATION': {'global': True, 'args': []}, 'START_OBSESSING_OVER_HOST_CHECKS': {'global': True, 'args': []}, 'DISABLE_ALL_NOTIFICATIONS_BEYOND_HOST': {'global': False, 'args': ['host']}, 'DISABLE_HOSTGROUP_SVC_CHECKS': {'global': True, 'args': ['host_group']}, 'STOP_EXECUTING_SVC_CHECKS': {'global': True, 'args': []}, 'DEL_HOST_COMMENT': {'global': True, 'args': ['to_int']}, 'CHANGE_HOST_MODATTR': {'global': False, 'args': ['host', 'to_int']}, 'ENABLE_HOST_NOTIFICATIONS': {'global': False, 'args': ['host']}, 'CHANGE_NORMAL_SVC_CHECK_INTERVAL': {'global': False, 'args': ['service', 'to_int']}, 'START_OBSESSING_OVER_SVC_CHECKS': {'global': True, 'args': []}, 'DISABLE_SERVICEGROUP_SVC_NOTIFICATIONS': {'global': True, 'args': ['service_group']}, 'STOP_EXECUTING_HOST_CHECKS': {'global': True, 'args': []}, 'LAUNCH_HOST_EVENT_HANDLER': {'global': False, 'args': ['host']}, 'ENABLE_HOSTGROUP_HOST_CHECKS': {'global': True, 'args': ['host_group']}, 'ENABLE_SVC_EVENT_HANDLER': {'global': False, 'args': ['service']}, 'SCHEDULE_AND_PROPAGATE_TRIGGERED_HOST_DOWNTIME': {'global': False, 'args': ['host', 'to_int', 'to_int', 'to_bool', 'to_int', 'to_int', 'author', None]}, 'SCHEDULE_HOSTGROUP_HOST_DOWNTIME': {'global': True, 'args': ['host_group', 'to_int', 'to_int', 'to_bool', 'to_int', 'to_int', 'author', None]}, 'DISABLE_SVC_FLAP_DETECTION': {'global': False, 'args': ['service']}, 'SCHEDULE_FORCED_SVC_CHECK': {'global': False, 'args': ['service', 'to_int']}, 'CHANGE_CONTACT_MODATTR': {'global': True, 'args': ['contact', None]}, 'DEL_ALL_HOST_COMMENTS': {'global': False, 'args': ['host']}, 'DISABLE_PASSIVE_SVC_CHECKS': {'global': False, 'args': ['service']}, 'START_ACCEPTING_PASSIVE_HOST_CHECKS': {'global': True, 'args': []}, 'SCHEDULE_SERVICEGROUP_HOST_DOWNTIME': {'global': True, 'args': ['service_group', 'to_int', 'to_int', 'to_bool', 'to_int', 'to_int', 'author', None]}, 'ENABLE_SERVICE_FRESHNESS_CHECKS': {'global': True, 'args': []}, 'START_OBSESSING_OVER_SVC': {'global': False, 'args': ['service']}, 'PROCESS_SERVICE_CHECK_RESULT': {'global': False, 'args': ['service', 'to_int', None]}, 'DELAY_HOST_NOTIFICATION': {'global': False, 'args': ['host', 'to_int']}, 'CHANGE_CUSTOM_CONTACT_VAR': {'global': True, 'args': ['contact', None, None]}, 'SEND_CUSTOM_HOST_NOTIFICATION': {'global': False, 'args': ['host', 'to_int', 'author', None]}, 'ENABLE_FAILURE_PREDICTION': {'global': True, 'args': []}, 'CHANGE_HOST_CHECK_TIMEPERIOD': {'global': False, 'args': ['host', 'time_period']}, 'DEL_SVC_DOWNTIME': {'global': True, 'args': ['to_int']}, 'RESTART_PROGRAM': {'global': True, 'internal': True, 'args': []}, 'ENABLE_SVC_FLAP_DETECTION': {'global': False, 'args': ['service']}, 'DISABLE_SERVICEGROUP_HOST_NOTIFICATIONS': {'global': True, 'args': ['service_group']}, 'PROCESS_HOST_CHECK_RESULT': {'global': False, 'args': ['host', 'to_int', None]}, 'ENABLE_SVC_NOTIFICATIONS': {'global': False, 'args': ['service']}, 'STOP_OBSESSING_OVER_SVC': {'global': False, 'args': ['service']}, 'SCHEDULE_HOST_DOWNTIME': {'global': False, 'args': ['host', 'to_int', 'to_int', 'to_bool', 'to_int', 'to_int', 'author', None]}, 'SCHEDULE_SVC_CHECK': {'global': False, 'args': ['service', 'to_int']}, 'CHANGE_SVC_CHECK_COMMAND': {'global': False, 'args': ['service', 'command']}, 'DISABLE_HOST_SVC_CHECKS': {'global': False, 'args': ['host']}, 'DISABLE_CONTACT_SVC_NOTIFICATIONS': {'global': True, 'args': ['contact']}, 'ADD_SVC_COMMENT': {'global': False, 'args': ['service', 'to_bool', 'author', None]}, 'DISABLE_HOSTGROUP_PASSIVE_SVC_CHECKS': {'global': True, 'args': ['host_group']}, 'CHANGE_HOST_EVENT_HANDLER': {'global': False, 'args': ['host', 'command']}, 'DISABLE_CONTACT_HOST_NOTIFICATIONS': {'global': True, 'args': ['contact']}, 'DISABLE_PASSIVE_HOST_CHECKS': {'global': False, 'args': ['host']}, 'SCHEDULE_FORCED_HOST_CHECK': {'global': False, 'args': ['host', 'to_int']}, 'STOP_OBSESSING_OVER_SVC_CHECKS': {'global': True, 'args': []}}¶shinken.external_command.MODATTR_NOTIFICATION_TIMEPERIOD = 65536¶TODO: Add some comment about this class for the doc
graph Module¶http_client Module¶shinken.http_client.HTTPClient(address='', port=0, use_ssl=False, timeout=3, data_timeout=120, uri='', strong_ssl=False)[source]¶Bases: object
shinken.http_client.HTTPException[source]¶Bases: exceptions.Exception
http_daemon Module¶shinken.http_daemon.CherryPyBackend(host, port, use_ssl, ca_cert, ssl_key, ssl_cert, hard_ssl_name_check, daemon_thread_pool_size)[source]¶Bases: object
shinken.http_daemon.HTTPDaemon(host, port, http_backend, use_ssl, ca_cert, ssl_key, ssl_cert, hard_ssl_name_check, daemon_thread_pool_size)[source]¶Bases: object
shinken.http_daemon.InvalidWorkDir[source]¶Bases: exceptions.Exception
shinken.http_daemon.PortNotFree[source]¶Bases: exceptions.Exception
load Module¶shinken.load.Load(m=1, initial_value=0)[source]¶This class is for having a easy Load calculation without having to send value at regular interval (but it’s more efficient if you do this :) ) and without having a list or other stuff. It’s just an object, an update and a get You can define m: the average for m minutes. The val is the initial value. It’s better if it’s 0 but you can choose.
log Module¶shinken.log.Log[source]¶Shinken logger class, wrapping access to Python logging standard library.
CRITICAL = 50¶DEBUG = 10¶ERROR = 40¶INFO = 20¶NOTSET = 0¶WARNING = 30¶get_level_id(lvlName)[source]¶Convert a level name (string) to its integer value and vice-versa. Input a level and it will return a name. Raise KeyError when name or level not found
load_obj(object, name_=None)[source]¶We load the object where we will put log broks with the ‘add’ method
log(message, format=None, print_it=True)[source]¶Old log method, kept for NAGIOS compatibility What strings should not use the new format ??
register_local_log(path, level=None)[source]¶The shinken logging wrapper can write to a local file if needed and return the file descriptor so we can avoid to close it.
macroresolver Module¶shinken.macroresolver.MacroResolver[source]¶Bases: shinken.borg.Borg
Please Add a Docstring to describe the class here
macros = {'TOTALSERVICESCRITICALUNHANDLED': '_get_total_services_critical_unhandled', 'PROCESSSTARTTIME': '_get_process_start_time', 'SHORTDATETIME': '_get_short_date_time', 'TOTALHOSTPROBLEMSUNHANDLED': '_get_total_host_problems_unhandled', 'TOTALSERVICESWARNINGUNHANDLED': '_get_total_services_warning_unhandled', 'TOTALSERVICEPROBLEMSUNHANDLED': '_get_total_service_problems_unhandled', 'DATE': '_get_date', 'TOTALHOSTSUP': '_get_total_hosts_up', 'TOTALSERVICESCRITICAL': '_get_total_services_critical', 'TOTALHOSTSUNREACHABLEUNHANDLED': '_get_total_hosts_unreachable_unhandled', 'TIMET': '_get_timet', 'TOTALHOSTSUNREACHABLE': '_get_total_hosts_unreachable', 'TOTALSERVICESUNKNOWN': '_get_total_services_unknown', 'TOTALHOSTSDOWNUNHANDLED': '_get_total_hosts_unhandled', 'TOTALSERVICESUNKNOWNUNHANDLED': '_get_total_services_unknown_unhandled', 'EVENTSTARTTIME': '_get_events_start_time', 'TOTALSERVICESOK': '_get_total_service_ok', 'TOTALSERVICEPROBLEMS': '_get_total_service_problems', 'TOTALHOSTSDOWN': '_get_total_hosts_down', 'TOTALHOSTPROBLEMS': '_get_total_host_problems', 'LONGDATETIME': '_get_long_date_time', 'TIME': '_get_time', 'TOTALSERVICESWARNING': '_get_total_services_warning'}¶my_type = 'macroresolver'¶memoized Module¶message Module¶modulesctx Module¶modulesmanager Module¶notification Module¶shinken.notification.Notification(type='PROBLEM', status='scheduled', command='UNSET', command_call=None, ref=None, contact=None, t_to_go=0, contact_name='', host_name='', service_description='', reason_type=1, state=0, ack_author='', ack_data='', escalated=False, contacts_notified=0, start_time=0, end_time=0, notification_type=0, id=None, notif_nb=1, timeout=10, env={}, module_type='fork', reactionner_tag='None', enable_environment_macros=0)[source]¶Bases: shinken.action.Action
Please Add a Docstring to describe the class here
ack_data¶already_start_escalations¶check_time¶command¶command_call¶contact¶contact_name¶contacts_notified¶creation_time¶enable_environment_macros¶end_time¶env¶escalated¶execution_time¶exit_status¶host_name¶is_a¶macros = {'NOTIFICATIONAUTHORNAME': 'author_name', 'HOSTNOTIFICATIONNUMBER': 'notif_nb', 'NOTIFICATIONAUTHORALIAS': 'author_alias', 'NOTIFICATIONRECIPIENTS': 'recipients', 'HOSTNOTIFICATIONID': 'id', 'NOTIFICATIONAUTHOR': 'author', 'NOTIFICATIONISESCALATED': 'escalated', 'NOTIFICATIONTYPE': 'type', 'SERVICENOTIFICATIONNUMBER': 'notif_nb', 'NOTIFICATIONCOMMENT': 'comment', 'SERVICENOTIFICATIONID': 'id'}¶module_type¶my_type = 'notification'¶notif_nb¶notification_type¶output¶properties = {'reason_type': <shinken.property.StringProp object at 0x7f2dc0ea3910>, 'status': <shinken.property.StringProp object at 0x7f2dc0ea3d10>, 'u_time': <shinken.property.FloatProp object at 0x7f2dc0ea3bd0>, 'ack_data': <shinken.property.StringProp object at 0x7f2dc0ea3a10>, 'execution_time': <shinken.property.FloatProp object at 0x7f2dc0ea3b90>, 'creation_time': <shinken.property.IntegerProp object at 0x7f2dc0ea3f50>, 'start_time': <shinken.property.StringProp object at 0x7f2dc0ea37d0>, 's_time': <shinken.property.FloatProp object at 0x7f2dc0ea3c10>, 'worker': <shinken.property.StringProp object at 0x7f2dc0ea3ed0>, 'command_call': <shinken.property.StringProp object at 0x7f2dc0ea3b50>, 'notif_nb': <shinken.property.IntegerProp object at 0x7f2dc0ea3cd0>, 'reactionner_tag': <shinken.property.StringProp object at 0x7f2dc0ea3f10>, 'module_type': <shinken.property.StringProp object at 0x7f2dc0ea3e90>, 't_to_go': <shinken.property.IntegerProp object at 0x7f2dc0ea3d50>, 'service_description': <shinken.property.StringProp object at 0x7f2dc0ea38d0>, 'notification_type': <shinken.property.IntegerProp object at 0x7f2dc0ea3790>, 'contact_name': <shinken.property.StringProp object at 0x7f2dc0ea3850>, 'sched_id': <shinken.property.IntegerProp object at 0x7f2dc0ea3dd0>, 'timeout': <shinken.property.IntegerProp object at 0x7f2dc0ea3e10>, 'exit_status': <shinken.property.IntegerProp object at 0x7f2dc0ea3b10>, 'check_time': <shinken.property.IntegerProp object at 0x7f2dc0ea3e50>, 'contacts_notified': <shinken.property.StringProp object at 0x7f2dc0ea3a90>, 'ack_author': <shinken.property.StringProp object at 0x7f2dc0ea39d0>, 'enable_environment_macros': <shinken.property.BoolProp object at 0x7f2dc0ea3f90>, 'escalated': <shinken.property.BoolProp object at 0x7f2dc0ea3a50>, 'is_a': <shinken.property.StringProp object at 0x7f2dc0ea36d0>, 'state': <shinken.property.StringProp object at 0x7f2dc0ea3950>, 'contact': <shinken.property.StringProp object at 0x7f2dc0ea3c50>, 'command': <shinken.property.StringProp object at 0x7f2dc0ea3d90>, 'end_time': <shinken.property.StringProp object at 0x7f2dc0ea3810>, 'env': <shinken.property.StringProp object at 0x7f2dc0ea3ad0>, 'output': <shinken.property.StringProp object at 0x7f2dc0ea3990>, '_in_timeout': <shinken.property.BoolProp object at 0x7f2dc0ea3c90>, 'already_start_escalations': <shinken.property.StringProp object at 0x7f2dc0ea3fd0>, 'type': <shinken.property.StringProp object at 0x7f2dc0ea3750>, 'host_name': <shinken.property.StringProp object at 0x7f2dc0ea3890>}¶reactionner_tag¶reason_type¶s_time¶sched_id¶service_description¶start_time¶state¶status¶t_to_go¶timeout¶type¶u_time¶worker¶pollerlink Module¶shinken.pollerlink.PollerLink(*args, **kwargs)[source]¶Bases: shinken.satellitelink.SatelliteLink
This class is the link between Arbiter and Poller. With it, arbiter can see if a poller is alive, and can send it new configuration
id = 0¶my_type = 'poller'¶properties = {'poller_name': <shinken.property.StringProp object at 0x7f2dc12f1210>, 'timeout': <shinken.property.IntegerProp object at 0x7f2dc12e0a10>, 'definition_order': <shinken.property.IntegerProp object at 0x7f2dc04e03d0>, 'poller_tags': <shinken.property.ListProp object at 0x7f2dc12f13d0>, 'hard_ssl_name_check': <shinken.property.BoolProp object at 0x7f2dc12e0dd0>, 'use_timezone': <shinken.property.StringProp object at 0x7f2dc12e0c50>, 'spare': <shinken.property.BoolProp object at 0x7f2dc12e0b10>, 'address': <shinken.property.StringProp object at 0x7f2dc12e0990>, 'realm': <shinken.property.StringProp object at 0x7f2dc12e0c90>, 'manage_arbiters': <shinken.property.BoolProp object at 0x7f2dc12e0b90>, 'imported_from': <shinken.property.StringProp object at 0x7f2dc04e0310>, 'passive': <shinken.property.BoolProp object at 0x7f2dc12f12d0>, 'use': <shinken.property.ListProp object at 0x7f2dc04e0350>, 'data_timeout': <shinken.property.IntegerProp object at 0x7f2dc12e0a50>, 'name': <shinken.property.StringProp object at 0x7f2dc04e0390>, 'max_workers': <shinken.property.IntegerProp object at 0x7f2dc12f1350>, 'modules': <shinken.property.ListProp object at 0x7f2dc12e0bd0>, 'port': <shinken.property.IntegerProp object at 0x7f2dc12f1290>, 'manage_sub_realms': <shinken.property.BoolProp object at 0x7f2dc12e0b50>, 'satellitemap': <shinken.property.DictProp object at 0x7f2dc12e0cd0>, 'check_interval': <shinken.property.IntegerProp object at 0x7f2dc12e0a90>, 'polling_interval': <shinken.property.IntegerProp object at 0x7f2dc12e0c10>, 'use_ssl': <shinken.property.BoolProp object at 0x7f2dc12e0d90>, 'max_check_attempts': <shinken.property.IntegerProp object at 0x7f2dc12e0ad0>, 'min_workers': <shinken.property.IntegerProp object at 0x7f2dc12f1310>, 'processes_by_worker': <shinken.property.IntegerProp object at 0x7f2dc12f1390>}¶shinken.pollerlink.PollerLinks(items)[source]¶Bases: shinken.satellitelink.SatelliteLinks
Please Add a Docstring to describe the class here
inner_class¶alias of PollerLink
name_property = 'poller_name'¶property Module¶shinken.property.UnusedProp(text=None)[source]¶Bases: shinken.property.Property
A unused Property. These are typically used by Nagios but no longer useful/used by Shinken.
This is just to warn the user that the option he uses is no more used in Shinken.
shinken.property.BoolProp(default=<object object>, class_inherit=None, unmanaged=False, help='', no_slots=False, fill_brok=None, conf_send_preparation=None, brok_transformation=None, retention=False, retention_preparation=None, to_send=False, override=False, managed=True, split_on_coma=True, merging='uniq')[source]¶Bases: shinken.property.Property
A Boolean Property.
Boolean values are currently case insensitively defined as 0, false, no, off for False, and 1, true, yes, on for True).
shinken.property.IntegerProp(default=<object object>, class_inherit=None, unmanaged=False, help='', no_slots=False, fill_brok=None, conf_send_preparation=None, brok_transformation=None, retention=False, retention_preparation=None, to_send=False, override=False, managed=True, split_on_coma=True, merging='uniq')[source]¶Bases: shinken.property.Property
Please Add a Docstring to describe the class here
shinken.property.FloatProp(default=<object object>, class_inherit=None, unmanaged=False, help='', no_slots=False, fill_brok=None, conf_send_preparation=None, brok_transformation=None, retention=False, retention_preparation=None, to_send=False, override=False, managed=True, split_on_coma=True, merging='uniq')[source]¶Bases: shinken.property.Property
Please Add a Docstring to describe the class here
shinken.property.CharProp(default=<object object>, class_inherit=None, unmanaged=False, help='', no_slots=False, fill_brok=None, conf_send_preparation=None, brok_transformation=None, retention=False, retention_preparation=None, to_send=False, override=False, managed=True, split_on_coma=True, merging='uniq')[source]¶Bases: shinken.property.Property
Please Add a Docstring to describe the class here
shinken.property.StringProp(default=<object object>, class_inherit=None, unmanaged=False, help='', no_slots=False, fill_brok=None, conf_send_preparation=None, brok_transformation=None, retention=False, retention_preparation=None, to_send=False, override=False, managed=True, split_on_coma=True, merging='uniq')[source]¶Bases: shinken.property.Property
Please Add a Docstring to describe the class here
shinken.property.ListProp(default=<object object>, class_inherit=None, unmanaged=False, help='', no_slots=False, fill_brok=None, conf_send_preparation=None, brok_transformation=None, retention=False, retention_preparation=None, to_send=False, override=False, managed=True, split_on_coma=True, merging='uniq')[source]¶Bases: shinken.property.Property
Please Add a Docstring to describe the class here
reactionnerlink Module¶shinken.reactionnerlink.ReactionnerLink(*args, **kwargs)[source]¶Bases: shinken.satellitelink.SatelliteLink
Please Add a Docstring to describe the class here
id = 0¶my_type = 'reactionner'¶properties = {'timeout': <shinken.property.IntegerProp object at 0x7f2dc12e0a10>, 'definition_order': <shinken.property.IntegerProp object at 0x7f2dc04e03d0>, 'hard_ssl_name_check': <shinken.property.BoolProp object at 0x7f2dc12e0dd0>, 'reactionner_name': <shinken.property.StringProp object at 0x7f2dc12ec810>, 'use_timezone': <shinken.property.StringProp object at 0x7f2dc12e0c50>, 'spare': <shinken.property.BoolProp object at 0x7f2dc12e0b10>, 'address': <shinken.property.StringProp object at 0x7f2dc12e0990>, 'realm': <shinken.property.StringProp object at 0x7f2dc12e0c90>, 'manage_arbiters': <shinken.property.BoolProp object at 0x7f2dc12e0b90>, 'imported_from': <shinken.property.StringProp object at 0x7f2dc04e0310>, 'passive': <shinken.property.BoolProp object at 0x7f2dc12ec8d0>, 'use': <shinken.property.ListProp object at 0x7f2dc04e0350>, 'data_timeout': <shinken.property.IntegerProp object at 0x7f2dc12e0a50>, 'name': <shinken.property.StringProp object at 0x7f2dc04e0390>, 'max_workers': <shinken.property.IntegerProp object at 0x7f2dc12ec950>, 'modules': <shinken.property.ListProp object at 0x7f2dc12e0bd0>, 'port': <shinken.property.IntegerProp object at 0x7f2dc12ec890>, 'manage_sub_realms': <shinken.property.BoolProp object at 0x7f2dc12e0b50>, 'satellitemap': <shinken.property.DictProp object at 0x7f2dc12e0cd0>, 'reactionner_tags': <shinken.property.ListProp object at 0x7f2dc12ec9d0>, 'check_interval': <shinken.property.IntegerProp object at 0x7f2dc12e0a90>, 'polling_interval': <shinken.property.IntegerProp object at 0x7f2dc12e0c10>, 'use_ssl': <shinken.property.BoolProp object at 0x7f2dc12e0d90>, 'max_check_attempts': <shinken.property.IntegerProp object at 0x7f2dc12e0ad0>, 'min_workers': <shinken.property.IntegerProp object at 0x7f2dc12ec910>, 'processes_by_worker': <shinken.property.IntegerProp object at 0x7f2dc12ec990>}¶shinken.reactionnerlink.ReactionnerLinks(items)[source]¶Bases: shinken.satellitelink.SatelliteLinks
Please Add a Docstring to describe the class here
inner_class¶alias of ReactionnerLink
name_property = 'reactionner_name'¶receiverlink Module¶shinken.receiverlink.ReceiverLink(*args, **kwargs)[source]¶Bases: shinken.satellitelink.SatelliteLink
Please Add a Docstring to describe the class here
id = 0¶my_type = 'receiver'¶properties = {'timeout': <shinken.property.IntegerProp object at 0x7f2dc12e0a10>, 'definition_order': <shinken.property.IntegerProp object at 0x7f2dc04e03d0>, 'receiver_name': <shinken.property.StringProp object at 0x7f2dc12ecf10>, 'hard_ssl_name_check': <shinken.property.BoolProp object at 0x7f2dc12e0dd0>, 'use_timezone': <shinken.property.StringProp object at 0x7f2dc12e0c50>, 'spare': <shinken.property.BoolProp object at 0x7f2dc12e0b10>, 'address': <shinken.property.StringProp object at 0x7f2dc12e0990>, 'realm': <shinken.property.StringProp object at 0x7f2dc12e0c90>, 'manage_arbiters': <shinken.property.BoolProp object at 0x7f2dc12f1050>, 'imported_from': <shinken.property.StringProp object at 0x7f2dc04e0310>, 'use': <shinken.property.ListProp object at 0x7f2dc04e0350>, 'data_timeout': <shinken.property.IntegerProp object at 0x7f2dc12e0a50>, 'name': <shinken.property.StringProp object at 0x7f2dc04e0390>, 'direct_routing': <shinken.property.BoolProp object at 0x7f2dc12f1090>, 'modules': <shinken.property.ListProp object at 0x7f2dc12e0bd0>, 'port': <shinken.property.IntegerProp object at 0x7f2dc12ecf90>, 'manage_sub_realms': <shinken.property.BoolProp object at 0x7f2dc12ecfd0>, 'satellitemap': <shinken.property.DictProp object at 0x7f2dc12e0cd0>, 'check_interval': <shinken.property.IntegerProp object at 0x7f2dc12e0a90>, 'polling_interval': <shinken.property.IntegerProp object at 0x7f2dc12e0c10>, 'use_ssl': <shinken.property.BoolProp object at 0x7f2dc12e0d90>, 'max_check_attempts': <shinken.property.IntegerProp object at 0x7f2dc12e0ad0>}¶shinken.receiverlink.ReceiverLinks(items)[source]¶Bases: shinken.satellitelink.SatelliteLinks
Please Add a Docstring to describe the class here
inner_class¶alias of ReceiverLink
name_property = 'receiver_name'¶satellite Module¶This class is an interface for Reactionner and Poller daemons A Reactionner listens to a port for the configuration from the Arbiter The conf contains the schedulers where actionners will gather actions.
The Reactionner keeps on listening to the Arbiter (one a timeout)
shinken.satellite.BaseSatellite(name, config_file, is_daemon, do_replace, debug, debug_file)[source]¶Bases: shinken.daemon.Daemon
Please Add a Docstring to describe the class here
shinken.satellite.IBroks(app)[source]¶Bases: shinken.daemon.Interface
Interface for Brokers They connect here and get all broks (data for brokers) data must be ORDERED! (initial status BEFORE update...)
doc = 'Get broks from the daemon'¶shinken.satellite.IForArbiter(app)[source]¶Bases: shinken.daemon.Interface
doc = 'Push hostname/scheduler links (receiver in direct routing)'¶shinken.satellite.ISchedulers(app)[source]¶Bases: shinken.daemon.Interface
Interface for Schedulers If we are passive, they connect to this and send/get actions
doc = 'Get the returns of the actions (internal)'¶shinken.satellite.IStats(app)[source]¶Bases: shinken.daemon.Interface
Interface for various stats about poller/reactionner activity
doc = 'Get raw stats from the daemon'¶shinken.satellite.NotWorkerMod[source]¶Bases: exceptions.Exception
shinken.satellite.Satellite(name, config_file, is_daemon, do_replace, debug, debug_file)[source]¶Bases: shinken.satellite.BaseSatellite
Our main APP class
satellitelink Module¶shinken.satellitelink.SatelliteLink(*args, **kwargs)[source]¶Bases: shinken.objects.item.Item
SatelliteLink is a common Class for link to satellite for Arbiter with Conf Dispatcher.
properties = {'check_interval': <shinken.property.IntegerProp object at 0x7f2dc12e0a90>, 'definition_order': <shinken.property.IntegerProp object at 0x7f2dc04e03d0>, 'hard_ssl_name_check': <shinken.property.BoolProp object at 0x7f2dc12e0dd0>, 'use_timezone': <shinken.property.StringProp object at 0x7f2dc12e0c50>, 'spare': <shinken.property.BoolProp object at 0x7f2dc12e0b10>, 'address': <shinken.property.StringProp object at 0x7f2dc12e0990>, 'data_timeout': <shinken.property.IntegerProp object at 0x7f2dc12e0a50>, 'manage_arbiters': <shinken.property.BoolProp object at 0x7f2dc12e0b90>, 'imported_from': <shinken.property.StringProp object at 0x7f2dc04e0310>, 'use': <shinken.property.ListProp object at 0x7f2dc04e0350>, 'realm': <shinken.property.StringProp object at 0x7f2dc12e0c90>, 'name': <shinken.property.StringProp object at 0x7f2dc04e0390>, 'modules': <shinken.property.ListProp object at 0x7f2dc12e0bd0>, 'manage_sub_realms': <shinken.property.BoolProp object at 0x7f2dc12e0b50>, 'satellitemap': <shinken.property.DictProp object at 0x7f2dc12e0cd0>, 'timeout': <shinken.property.IntegerProp object at 0x7f2dc12e0a10>, 'polling_interval': <shinken.property.IntegerProp object at 0x7f2dc12e0c10>, 'use_ssl': <shinken.property.BoolProp object at 0x7f2dc12e0d90>, 'max_check_attempts': <shinken.property.IntegerProp object at 0x7f2dc12e0ad0>}¶running_properties = {'configuration_errors': <shinken.property.ListProp object at 0x7f2dc04e0450>, 'broks': <shinken.property.StringProp object at 0x7f2dc12e0e90>, 'hash': <shinken.property.StringProp object at 0x7f2dc04e0490>, 'tags': <shinken.property.ListProp object at 0x7f2dc04e04d0>, 'reachable': <shinken.property.StringProp object at 0x7f2dc12e0f10>, 'alive': <shinken.property.StringProp object at 0x7f2dc12e0e50>, 'last_check': <shinken.property.IntegerProp object at 0x7f2dc12e0f50>, 'configuration_warnings': <shinken.property.ListProp object at 0x7f2dc04e0410>, 'managed_confs': <shinken.property.StringProp object at 0x7f2dc12e0f90>, 'attempt': <shinken.property.StringProp object at 0x7f2dc12e0ed0>, 'con': <shinken.property.StringProp object at 0x7f2dc12e0e10>}¶set_arbiter_satellitemap(satellitemap)[source]¶scheduler Module¶schedulerlink Module¶shinken.schedulerlink.SchedulerLink(*args, **kwargs)[source]¶Bases: shinken.satellitelink.SatelliteLink
Please Add a Docstring to describe the class here
id = 0¶my_type = 'scheduler'¶properties = {'timeout': <shinken.property.IntegerProp object at 0x7f2dc12e0a10>, 'definition_order': <shinken.property.IntegerProp object at 0x7f2dc04e03d0>, 'hard_ssl_name_check': <shinken.property.BoolProp object at 0x7f2dc12e0dd0>, 'weight': <shinken.property.IntegerProp object at 0x7f2dc12ec510>, 'use_timezone': <shinken.property.StringProp object at 0x7f2dc12e0c50>, 'spare': <shinken.property.BoolProp object at 0x7f2dc12e0b10>, 'address': <shinken.property.StringProp object at 0x7f2dc12e0990>, 'realm': <shinken.property.StringProp object at 0x7f2dc12e0c90>, 'manage_arbiters': <shinken.property.BoolProp object at 0x7f2dc12e0b90>, 'imported_from': <shinken.property.StringProp object at 0x7f2dc04e0310>, 'scheduler_name': <shinken.property.StringProp object at 0x7f2dc12ec450>, 'use': <shinken.property.ListProp object at 0x7f2dc04e0350>, 'data_timeout': <shinken.property.IntegerProp object at 0x7f2dc12e0a50>, 'name': <shinken.property.StringProp object at 0x7f2dc04e0390>, 'skip_initial_broks': <shinken.property.BoolProp object at 0x7f2dc12ec550>, 'modules': <shinken.property.ListProp object at 0x7f2dc12e0bd0>, 'port': <shinken.property.IntegerProp object at 0x7f2dc12ec4d0>, 'manage_sub_realms': <shinken.property.BoolProp object at 0x7f2dc12e0b50>, 'satellitemap': <shinken.property.DictProp object at 0x7f2dc12e0cd0>, 'check_interval': <shinken.property.IntegerProp object at 0x7f2dc12e0a90>, 'polling_interval': <shinken.property.IntegerProp object at 0x7f2dc12e0c10>, 'use_ssl': <shinken.property.BoolProp object at 0x7f2dc12e0d90>, 'max_check_attempts': <shinken.property.IntegerProp object at 0x7f2dc12e0ad0>}¶running_properties = {'configuration_errors': <shinken.property.ListProp object at 0x7f2dc04e0450>, 'broks': <shinken.property.StringProp object at 0x7f2dc12e0e90>, 'external_commands': <shinken.property.StringProp object at 0x7f2dc12ec610>, 'hash': <shinken.property.StringProp object at 0x7f2dc04e0490>, 'conf': <shinken.property.StringProp object at 0x7f2dc12ec590>, 'tags': <shinken.property.ListProp object at 0x7f2dc04e04d0>, 'attempt': <shinken.property.StringProp object at 0x7f2dc12e0ed0>, 'alive': <shinken.property.StringProp object at 0x7f2dc12e0e50>, 'last_check': <shinken.property.IntegerProp object at 0x7f2dc12e0f50>, 'need_conf': <shinken.property.StringProp object at 0x7f2dc12ec5d0>, 'reachable': <shinken.property.StringProp object at 0x7f2dc12e0f10>, 'managed_confs': <shinken.property.StringProp object at 0x7f2dc12e0f90>, 'configuration_warnings': <shinken.property.ListProp object at 0x7f2dc04e0410>, 'push_flavor': <shinken.property.IntegerProp object at 0x7f2dc12ec650>, 'con': <shinken.property.StringProp object at 0x7f2dc12e0e10>}¶shinken.schedulerlink.SchedulerLinks(items)[source]¶Bases: shinken.satellitelink.SatelliteLinks
Please Add a Docstring to describe the class here
inner_class¶alias of SchedulerLink
name_property = 'scheduler_name'¶singleton Module¶sorteddict Module¶shinken.sorteddict.SortedDict(*args, **kwargs)[source]¶Bases: dict
Dictionary with sorted keys.
The interface is similar to the ordinary dict’s one, but: * methods: __repr__(), __str__(), __iter__(), iterkeys(), itervalues(),
iteritems(), keys(), values(), items() and popitem() – return results taking into consideration sorted keys order;
fromkeys(S[, v]) → New dict with keys from S and values equal to v.[source]¶v defaults to None.
items() → a list of (key, value) pairs sorted by keys[source]¶(add reverse=True for reverse ordering).
iteritems() → an iterator over (key, value) pairs sorted by keys[source]¶(add reverse=True for reverse ordering).
iterkeys(reverse=False)¶D.__iter__() <==> iter(D) <==> D.iterkeys() -> an iterator over sorted keys (add reverse=True for reverse ordering).
itervalues() → an iterator over values sorted by keys[source]¶(add reverse=True for reverse ordering).
pop(k[, d]) → v, remove specified key and return the corresponding value.[source]¶If key is not found, d is returned if given, otherwise KeyError is raised
popitem() → (k, v). Remove and return a (key, value) pair with[source]¶the largest key; raise KeyError if D is empty.
trigger_functions Module¶util Module¶worker Module¶shinken.worker.Worker(id, s, returns_queue, processes_by_worker, mortal=True, timeout=300, max_plugins_output_length=8192, target=None, loaded_into='unknown', http_daemon=None)[source]¶This class is used for poller and reactionner to work. The worker is a process launch by theses process and read Message in a Queue (self.s) (slave) They launch the Check and then send the result in the Queue self.m (master) they can die if they do not do anything (param timeout)
id = 0¶objects Packagebusinessimpactmodulation Modulecheckmodulation Modulecommand Moduleconfig Modulecontact Modulecontactgroup Modulediscoveryrule Modulediscoveryrun Moduleescalation Modulehost Modulehostdependency Modulehostescalation Modulehostextinfo Modulehostgroup Moduleitem Moduleitemgroup Modulemacromodulation Modulematchingitem Modulemodule Modulenotificationway Modulepack Modulerealm Moduleresultmodulation Moduleschedulingitem Moduleservice Moduleservicedependency Moduleserviceescalation Moduleserviceextinfo Moduleservicegroup Moduletimeperiod Moduletrigger Module