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¶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¶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 0x7f91b713d550>, 'exit_status': <shinken.property.IntegerProp object at 0x7f91b713d210>, 'reactionner_tag': <shinken.property.StringProp object at 0x7f91b713d5d0>, 's_time': <shinken.property.FloatProp object at 0x7f91b713d4d0>, 'check_time': <shinken.property.IntegerProp object at 0x7f91b713d410>, 'long_output': <shinken.property.StringProp object at 0x7f91b713d2d0>, 'state': <shinken.property.IntegerProp object at 0x7f91b713d250>, 'internal': <shinken.property.BoolProp object at 0x7f91b713d650>, 'u_time': <shinken.property.FloatProp object at 0x7f91b713d490>, 'env': <shinken.property.StringProp object at 0x7f91b713d610>, 'ref': <shinken.property.IntegerProp object at 0x7f91b713d310>, 'from_trigger': <shinken.property.BoolProp object at 0x7f91b713d710>, 'status': <shinken.property.StringProp object at 0x7f91b713d1d0>, 'execution_time': <shinken.property.FloatProp object at 0x7f91b713d450>, 'worker': <shinken.property.StringProp object at 0x7f91b713d6d0>, 't_to_go': <shinken.property.IntegerProp object at 0x7f91b713d350>, 'module_type': <shinken.property.StringProp object at 0x7f91b713d690>, 'dep_check': <shinken.property.StringProp object at 0x7f91b713d3d0>, '_in_timeout': <shinken.property.BoolProp object at 0x7f91b713d190>, 'type': <shinken.property.StringProp object at 0x7f91b713d150>, 'depend_on': <shinken.property.StringProp object at 0x7f91b713d390>, 'is_a': <shinken.property.StringProp object at 0x7f91b713d0d0>, 'poller_tag': <shinken.property.StringProp object at 0x7f91b713d590>, 'output': <shinken.property.StringProp object at 0x7f91b713d290>, 'perf_data': <shinken.property.StringProp object at 0x7f91b713d510>}¶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 0x7f91b73ee550>, 'reactionner_tag': <shinken.property.StringProp object at 0x7f91b73fb210>, 'valid': <shinken.property.BoolProp object at 0x7f91b73fbc50>, 'call': <shinken.property.StringProp object at 0x7f91b7afd510>, 'enable_environment_macros': <shinken.property.BoolProp object at 0x7f91b6e1c310>, 'timeout': <shinken.property.IntegerProp object at 0x7f91b7409f90>, 'late_relink_done': <shinken.property.BoolProp object at 0x7f91b6e1c6d0>, 'command': <shinken.property.StringProp object at 0x7f91b73ee950>, 'args': <shinken.property.StringProp object at 0x7f91b73fbbd0>, 'module_type': <shinken.property.StringProp object at 0x7f91b73fb090>}¶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¶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 0x7f91b780f750>, 'entry_time': <shinken.property.IntegerProp object at 0x7f91b780f550>, 'start_time': <shinken.property.IntegerProp object at 0x7f91b780f5d0>, 'is_in_effect': <shinken.property.BoolProp object at 0x7f91b780f790>, 'has_been_triggered': <shinken.property.BoolProp object at 0x7f91b780f7d0>, 'trigger_id': <shinken.property.IntegerProp object at 0x7f91b780f650>, 'duration': <shinken.property.IntegerProp object at 0x7f91b780f610>, 'author': <shinken.property.StringProp object at 0x7f91b780f710>, 'can_be_deleted': <shinken.property.BoolProp object at 0x7f91b780f810>, 'activate_me': <shinken.property.StringProp object at 0x7f91b780f4d0>, 'real_end_time': <shinken.property.IntegerProp object at 0x7f91b780f6d0>, 'end_time': <shinken.property.IntegerProp object at 0x7f91b780f690>, 'fixed': <shinken.property.BoolProp object at 0x7f91b780f590>}¶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 0x7f91b7b0d950>, 'module_type': <shinken.property.StringProp object at 0x7f91b7b0dcd0>, 'check_time': <shinken.property.IntegerProp object at 0x7f91b7b0dc90>, 'exit_status': <shinken.property.StringProp object at 0x7f91b7b0d990>, 'execution_time': <shinken.property.FloatProp object at 0x7f91b7b0dad0>, 's_time': <shinken.property.FloatProp object at 0x7f91b7b0db50>, 'worker': <shinken.property.StringProp object at 0x7f91b7b0dd10>, 'timeout': <shinken.property.IntegerProp object at 0x7f91b7b0dc50>, 't_to_go': <shinken.property.StringProp object at 0x7f91b7b0da50>, 'is_a': <shinken.property.StringProp object at 0x7f91b7a0f710>, 'long_output': <shinken.property.StringProp object at 0x7f91b7b0da10>, 'reactionner_tag': <shinken.property.StringProp object at 0x7f91b7b0dd50>, 'command': <shinken.property.StringProp object at 0x7f91b7b0da90>, 'u_time': <shinken.property.FloatProp object at 0x7f91b7b0db10>, 'env': <shinken.property.StringProp object at 0x7f91b7b0db90>, 'output': <shinken.property.StringProp object at 0x7f91b7b0d9d0>, '_in_timeout': <shinken.property.StringProp object at 0x7f91b7b0d910>, 'sched_id': <shinken.property.IntegerProp object at 0x7f91b7b0dc10>, 'type': <shinken.property.StringProp object at 0x7f91b7b0d8d0>, 'perf_data': <shinken.property.StringProp object at 0x7f91b7b0dbd0>}¶reactionner_tag¶s_time¶sched_id¶status¶t_to_go¶timeout¶type¶u_time¶worker¶external_command Module¶graph Module¶http_client Module¶http_daemon Module¶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.BrokHandler(broker)[source]¶Bases: logging.Handler
This log handler is forwarding log messages as broks to the broker.
Only messages of level higher than DEBUG are send to other satellite to not risk overloading them.
shinken.log.ColorStreamHandler(stream=None)[source]¶Bases: logging.StreamHandler
shinken.log.Log(name='Shinken', level=0)[source]¶Bases: logging.Logger
Shinken logger class, wrapping access to Python logging standard library. See : https://docs.python.org/2/howto/logging.html#logging-flow for more detail about how log are handled
load_obj(object, name_=None)[source]¶We load the object where we will put log broks with the ‘add’ method
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.
Add logging to a local log-file.
The file will be rotated once a day
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 0x7f91b73f4610>, 'status': <shinken.property.StringProp object at 0x7f91b73f4a10>, 'u_time': <shinken.property.FloatProp object at 0x7f91b73f48d0>, 'ack_data': <shinken.property.StringProp object at 0x7f91b73f4710>, 'execution_time': <shinken.property.FloatProp object at 0x7f91b73f4890>, 'creation_time': <shinken.property.IntegerProp object at 0x7f91b73f4c50>, 'start_time': <shinken.property.StringProp object at 0x7f91b73f44d0>, 's_time': <shinken.property.FloatProp object at 0x7f91b73f4910>, 'worker': <shinken.property.StringProp object at 0x7f91b73f4bd0>, 'command_call': <shinken.property.StringProp object at 0x7f91b73f4850>, 'notif_nb': <shinken.property.IntegerProp object at 0x7f91b73f49d0>, 'reactionner_tag': <shinken.property.StringProp object at 0x7f91b73f4c10>, 'module_type': <shinken.property.StringProp object at 0x7f91b73f4b90>, 't_to_go': <shinken.property.IntegerProp object at 0x7f91b73f4a50>, 'service_description': <shinken.property.StringProp object at 0x7f91b73f45d0>, 'notification_type': <shinken.property.IntegerProp object at 0x7f91b73f4490>, 'contact_name': <shinken.property.StringProp object at 0x7f91b73f4550>, 'sched_id': <shinken.property.IntegerProp object at 0x7f91b73f4ad0>, 'timeout': <shinken.property.IntegerProp object at 0x7f91b73f4b10>, 'exit_status': <shinken.property.IntegerProp object at 0x7f91b73f4810>, 'check_time': <shinken.property.IntegerProp object at 0x7f91b73f4b50>, 'contacts_notified': <shinken.property.StringProp object at 0x7f91b73f4790>, 'ack_author': <shinken.property.StringProp object at 0x7f91b73f46d0>, 'enable_environment_macros': <shinken.property.BoolProp object at 0x7f91b73f4c90>, 'escalated': <shinken.property.BoolProp object at 0x7f91b73f4750>, 'is_a': <shinken.property.StringProp object at 0x7f91b73f43d0>, 'state': <shinken.property.StringProp object at 0x7f91b73f4650>, 'contact': <shinken.property.StringProp object at 0x7f91b73f4950>, 'command': <shinken.property.StringProp object at 0x7f91b73f4a90>, 'end_time': <shinken.property.StringProp object at 0x7f91b73f4510>, 'env': <shinken.property.StringProp object at 0x7f91b73f47d0>, 'output': <shinken.property.StringProp object at 0x7f91b73f4690>, '_in_timeout': <shinken.property.BoolProp object at 0x7f91b73f4990>, 'already_start_escalations': <shinken.property.StringProp object at 0x7f91b73f4cd0>, 'type': <shinken.property.StringProp object at 0x7f91b73f4450>, 'host_name': <shinken.property.StringProp object at 0x7f91b73f4590>}¶reactionner_tag¶reason_type¶s_time¶sched_id¶service_description¶start_time¶state¶status¶t_to_go¶timeout¶type¶u_time¶worker¶pollerlink Module¶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¶receiverlink Module¶satellite Module¶satellitelink Module¶scheduler Module¶schedulerlink Module¶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