This module is experimental.
The idea is to create a mechanism that allows you to hook your own events into an ObjectDefinition instance.
This enables you for example to log to file every time an object is rewritten.
Used for any particual debug notifications
Called at the beginning of save()
Called when objectdefinition.save() has finished
Called whenever a modification has been written to file
Bases: exceptions.Exception
Bases: pynag.Model.EventHandlers.BaseEventHandler
Handler that logs everything to file
Used for any particular debug notifications
Called when objectdefinition.save() has finished
Called whenever a modification has been written to file
Bases: pynag.Model.EventHandlers.BaseEventHandler
Returns a list of files that are have unstaged changes
Returns True if all files in git repo are fully commited
Commits object_definition.get_filename() if it has any changes
Bases: pynag.Model.EventHandlers.BaseEventHandler
This handler reloads nagios every time that a change is made. This is only meant for small environments
Used for any particual debug notifications
Called at the beginning of save()
Called when objectdefinition.save() has finished
Called whenever a modification has been written to file
Bases: pynag.Model.EventHandlers.BaseEventHandler
Handler that prints everything to stdout
Used for any particual debug notifications
Called when objectdefinition.save() has finished
Called whenever a modification has been written to file