univention.admin.handlers.nagios package
Contents
univention.admin.handlers.nagios package¶
Submodules¶
univention.admin.handlers.nagios.nagios module¶
UDM module for all nagios settings
- class univention.admin.handlers.nagios.nagios.object(co, lo, position, dn='', superordinate=None, attributes=None)[source]¶
Bases:
univention.admin.handlers.simpleLdap
- module = 'nagios/nagios'¶
univention.admin.handlers.nagios.service module¶
UDM module for nagios services
- class univention.admin.handlers.nagios.service.NagiosTimePeriod[source]¶
Bases:
univention.admin.syntax.UDM_Attribute
- udm_module = 'nagios/timeperiod'¶
UDM module name to search for.
- attribute = 'name'¶
The UDM property name to use as the value for this syntax class.
- class univention.admin.handlers.nagios.service.object(co, lo, position, dn='', superordinate=None, attributes=None)[source]¶
Bases:
univention.admin.handlers.simpleLdap
- module = 'nagios/service'¶
- OPTION_BITS = {'notificationOptionCritical': b'c', 'notificationOptionRecovered': b'r', 'notificationOptionUnreachable': b'u', 'notificationOptionWarning': b'w'}¶
- open()[source]¶
Opens this object.
During the initialization of this object the current set LDAP attributes are mapped into
info
. This method makes it possible to e.g. resolve external references to other objects which are not represented in the raw LDAP attributes of this object, for example the group memberships of a user.By default only the open hook for extended attributes is called. This method can be subclassed.
Warning
If this method changes anything in self.info it must call
save()
afterwards.Warning
If your are going to do any modifications (such as creating, modifying, moving, removing this object) this method must be called directly after the constructor and before modifying any property.
univention.admin.handlers.nagios.timeperiod module¶
UDM module for nagios time priod objects
- class univention.admin.handlers.nagios.timeperiod.syntax_timeperiod[source]¶
Bases:
univention.admin.syntax.simple
- name = 'timeperiod'¶
- classmethod parse(text)[source]¶
Validate the value by parsing it.
- Returns
the parsed textual value.
- Raises
univention.admin.uexceptions.valueError – if the value is invalid.
- class univention.admin.handlers.nagios.timeperiod.object(co, lo, position, dn='', superordinate=None, attributes=None)[source]¶
Bases:
univention.admin.handlers.simpleLdap
- module = 'nagios/timeperiod'¶