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 :
Allows you to acknowledge the current problem for the specified service. By acknowledging the current problem, future notifications (for the same servicestate) are disabled.
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
This file is to be imported by every Shinken service component: Arbiter, Scheduler, etc. It just checks for the main requirement of Shinken.
Bases: shinken.action.Action
ODO: Add some comment about this class for the doc
return a copy of the check but just what is important for execution So we remove the ref and all
Bases: shinken.commandcall.DummyCommandCall
This class is use when a service, contact or host define a command with args.
We want to get the command and the args with ! splitting. but don’t forget to protect against the ! to do not split them
Bases: shinken.daterange.Daterange
Bases: object
Bases: shinken.daterange.Daterange
Bases: shinken.daterange.Daterange
Bases: shinken.daterange.Daterange
Bases: shinken.daterange.Daterange
Bases: shinken.daterange.Daterange
Bases: object
DB is a generic class for SQL Database
Create a INSERT query in table with all data of data (a dict)
Bases: shinken.db.DB
DBMysql is a MySQL access database class
Bases: shinken.db.DB
Manage connection and query execution against Oracle databases.
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
- (
- ) (
- ___...(——-)-....___
.-“” ) ( “”-.
.-‘``’|-._ ) _.-|
/ .–.| “”—...........—”“ |
/ / | | | | | |
_..—”“` /`“”—.._
.-‘ / ‘-.
: `-.__ __.-‘ : : ) “”—...—”” ( :
‘._ “–...___...–” _.’
Bases: shinken.action.Action
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.
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.
Bases: logging.StreamHandler
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
We load the object where we will put log broks with the ‘add’ method
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
Set level of logger and handlers. The logger need the lowest level (see link above)
Bases: shinken.borg.Borg
Please Add a Docstring to describe the class here
Bases: shinken.action.Action
Please Add a Docstring to describe the class here
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.
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).
Bases: shinken.property.Property
Please Add a Docstring to describe the class here
Bases: shinken.property.Property
Please Add a Docstring to describe the class here
Bases: shinken.property.Property
Please Add a Docstring to describe the class here
Bases: shinken.property.Property
Please Add a Docstring to describe the class here
Bases: shinken.property.Property
Please Add a Docstring to describe the class here
Bases: dict
Dictionary with sorted keys.
The interface is similar to the ordinary dict’s one, but:
v defaults to None.
(add reverse=True for reverse ordering).
(add reverse=True for reverse ordering).
D.__iter__() <==> iter(D) <==> D.iterkeys() -> an iterator over sorted keys (add reverse=True for reverse ordering).
(add reverse=True for reverse ordering).
If key is not found, d is returned if given, otherwise KeyError is raised
the largest key; raise KeyError if D is empty.
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)