Debian Codegraph @

CHANGES

raw
1 Changes in 1.1.2
2 Bug Fixes:
3 - Python 3 compatibility
4 - Python 2.7 compatibility
5 - use_regexp_matching=0 does not work properly when using + in hostname (#248)
6
7 New Features:
8 - Support multi members in hostgroup definition (#244)
9
10 Changes in 1.1.1 (unreleased)
11 Bug Fixes:
12 - Fix recursive delete of host
13 - Multiple fixes for macro resolving
14 - Fix issues when finding command file fails
15 - Multiple fixes to daemon class and sudo
16 - Fix crash when archives directory contains directories
17 - Python 2.6 compatibility
18 - Fix comment_id being used instead of downtime_id in pynag.Model
19
20 New Features:
21 - New class: livestatus.LivestatusQuery
22 - New methods: Livestatus.write() and livestatus.raw_query()
23 - Livestatus now retries on socket errors
24 - New module Utils.state
25 - New module Parsers.main
26
27 Refactor:
28 - Perfdata moved to Utils.metrics
29 - GitRepo moved to Utils.git
30 - PynagError moved to pynag.errors
31 - send_nsca moved to Utils.nsca
32 - synchronized moved to Utils.decorators
33 - cache_only moved to Utils.decorators
34 - reconsile_threshold moved to Utils.metrics
35 - check_threshold moved to Plugins.classic_threshold_syntax
36 - check_range moved to Plugins.classic_threshold_syntax
37 - Livestatus moved to Parsers.livestatus
38 - Config moved to Parsers.config_parser
39 - SshConfig moved to Parsers.ssh_config
40 - StatusDat moved to Parsers.status_dat
41 - RetentionDat moved to Parsers.retention_dat
42 - ObjectCache moved to Parsers.object_cache
43 - ExtraOptsParser moved to Parsers.extra_opts
44 - LogFiles moved to Parsers.logs
45
46 Changes in 0.9.1 (August 5 2014)
47 Bug Fixes:
48 - Fixes file_time bug in Utils.CheckResult
49
50 Changes in 0.9.0 (July 23 2014)
51 New Features:
52 - new method: Model.*.rename()
53 - new class: Utils.CheckResult, add checkresults
54 http://docs.pynag.org/en/latest/pynag.Utils.html#pynag.Utils.CheckResult
55 - new importer module, currently supports csv files
56 http://docs.pynag.org/en/latest/pynag.Utils.html#module-pynag.Utils.importer
57 - better docstrings, reflected on http://docs.pynag.org
58
59 Bug Fixes:
60 - Bug fixes in Model.*.get_current_status()
61 - Fix Parsers.Livestatus.test() traceback
62 - Fix Parsers line continuation
63 - Fix contactgroup/service and contactgroup/host relationships
64
65 Changes in 0.8.9 (Apr 15 2014)
66 Bug Fixes:
67 - Deploy gzipped version of manpage with setup.py
68
69 Changes in 0.8.8 (Apr 15 2014)
70 Bug Fixes:
71 - MANIFEST fixes in the build process
72 New Features:
73 - Utils.misc.FakeNagiosEnvironment()
74 - Parsers.MultiSite now has backend aware get_host, get_contact, etc
75 - Incremental updates to unit tests
76
77 Changes in 0.8.7 (Apr 14 2014)
78 Bug Fixes:
79 - Ship a gzipped version of manpage with release
80
81 Changes in 0.8.6 (Apr 14 2014)
82 Bug Fixes:
83 - manpage is now delivered with the tarball (not generated on build itme)
84 - Docstring updates
85 New Features:
86 - Support for systemd init scripts
87 - New Module Parsers.MultiSite
88 - All classes in Parsers are now new-style
89
90 Changes in 0.8.5 (Apr 8 2014)
91 Bug Fixes:
92 - Fix broken build due to manpage requirements
93
94 Changes in 0.8.4 (Apr 8 2014)
95 New Features:
96 - get_effective_* is now faster
97 - New decorator Utils.cache_only()
98 - New method Service.merge_with_host()
99
100 Bug Fixes:
101 - Fix hostgroup/service relationships
102
103 Changes in 0.8.3 (Mar 24 2014)
104 New Features:
105 - Utils.runCommand() supports new env parameter
106 Bug Fixes:
107 - Parsers.LogFiles() now orders archivelogs by last modified time
108
109 Changes in 0.8.2 (Mar 21 2014)
110 New Features:
111 - Utils.AttributeList() - now aware of "null" values
112 - Notable performance tweaks in parsing
113 - Experimental Config Parser over ssh
114 - New EventHandler: NagiosReloadHandler
115 - Better shinken compatiblity
116 - New method: guess_nagios_binary()
117 - Major improvements in grep_to_livestatus
118 Bug Fixes:
119 - Code is more python3 compatible
120 - Performance tweaks in external commands
121 - Fixed Macro resolving for hosts
122 - Bugfixes in "Pynag livestatus" subcommand
123
124 Changes in 0.8.1 (Feb 19 2014)
125 New Features:
126 - Support setting of custom host variables
127 - Allow Model.*.acknowledge() with a timestamp
128 Bug Fixes:
129 - Better support for weird mk-livestatus configs
130 - Fix unintilized variables in pynag.Parsers.config
131
132 Changes in 0.8.0 (Jan 15 2014)
133 New Features:
134 - Auto guess config locations for icinga and naemon
135 - Performance improvements in Model
136 - send_nsca moved to pynag.Utils
137 - Model.filter() now uses Utils.grep() internally
138 - Utils.runCommand() now supports shell=False
139
140 Bug Fixes:
141 - fix host.delete() not deleting services
142 - Fixes for __in __notin and __contains in Utils.grep()
143 - Bug fixes in send_nsca
144
145 Changes in 0.7.0 (Oct 14 2013)
146 New Features:
147 - All plugins now have a --timeout=58 seconds
148 - New option to plugins: --extra-opts
149 - More thread safety in Model
150 - New method: ObjectDefinition.move() to move definition to a new file
151 - Plugins new threshold syntax can now fail back on the old syntax
152
153 Bug Fixes:
154 - python 2.4 compatibility in unittests
155 - Removed deprecated overload of Contact.get_description()
156
157 Changes in 0.6.1 (Aug 30 2013)
158 Bug Fixes:
159 - Disable unittesting on rhel5 (stops build because of unittest2)
160
161 Changes in 0.6.0 (Aug 28 2013)
162 New Features:
163 - Support line continuations with \ at end of line in config files
164 - Fix traceback in ParserError initilization
165 - Better error messages when invalid livestatus syntax has been used
166 - Utils.grep() new keywords __notstartswith and __notendswith
167 - Model.ObjectDefinition now supports "in" operator
168 - Multiple performance tweaks for parsing
169 - Plugins.PluginHelper.add_option() wrapper created
170 - Performance tweaks in Utils.grep()
171 - Thread-safety in Parsing/Saving methods in Model and Parser
172 - "in" operator implemented for Object Definitions
173 - delete() methods now more clever for {host,service,contact}s and groups
174 - Incremental performance updates on parsing
175 - New method: ObjectDefinition.attribute_is_empty()
176 - Massive refactor/rewrites in parsing logic
177
178 Bug Fixes:
179 - Fix traceback on search when searching for shortname in invalid configs
180 - pynag.Utils.GitRepo better handles file renames now
181 - pynag.Plugins.PluginHelper - no more crashing if parse_arguments was not called
182 - Fix parsing when multiple objects have conflicting names
183 - Support relative paths for cfg_dir and cfg_file
184
185
186 Changes in 0.5.0 (Jun 26 2013)
187 New Features:
188 - pynag cli - new action "unset" to remove attributes when updating
189 - PluginHelper - New option --pnp-compatible-perfdata
190 - TCP Support for mk-livestatus
191 - ObjectDefinitions now have new method: set_macro()
192 - Vast improvements to unit testing
193 - Fix unhandled tracebacks if invalid templates are defined
194 - Utils.GitRepo has new method: show()
195 - Vast performance improvement in parsing
196 - ObjectDefinition now iterable
197 - New Utility Class pynag.Utils.PluginOutput
198 - ObjectDefinition: magic fields like shortname are now part of keys()
199 - mk_livestatus new utility methods: get_servicegroups,hostgroups,etc
200
201 Noteworthy bug fixes:
202 - tracis-ci and coveralls.io support
203 - Macroresolving when ARG1 contains other macros
204 - get_suggested_filename() no longer returns filenames with invalid characters
205 - check_range(): Always return True on invalid range_format
206 - check_range(): raise exception on invalid input thresholds
207
208
209 Changes in 0.4.9 (Apr 30 2013)
210
211 New Features:
212 - pynag cli now has livestatus subcommand
213 - pynag cli multiple changes to make it more friendly to bash scripts
214 - --quiet option
215 - --seperator option
216 - pynag cli has acknowledge and downtime subcommands
217 - pynag.Model.*.delete() now are more context aware and remove references
218 from other objects
219 - More features in pynag.Utils.GitRepo
220 - Parser for retention.dat created
221 - pynag.utils.grep_to_livestatus() to convert from pynag style filters to
222 livestatus style filters
223 - add_to_contactgroup() created for pynag.Model.Services, Hosts, and
224 Contacts
225 - New functions pynag.Utils.grep(). Model filter() will use this in the
226 future.
227 - pynag.Model - object definitions now implement sort()
228 - pynag.Parsers.Logfiles added to parse nagios log files
229
230 Bugfixes:
231 - Multiple doctest and unittest fixes and improvements to code quality
232 - send_nsca - revert back to tabs instead of spaces
233 - Fix unhandled traceback with pynag copy
234 - Fix bug where directories with ending .cfg were parsed as files
235 - PluginHelper fixed in accordance to
236 http://nagiosplugins.org/rfc/new_threshold_syntax
237
238
239 Changes in 0.4.8 (Dec 10 2012)
240
241 New Features:
242 - MK Livestatus integration in pynag.Parsers.mk_livestatus
243 - Testing framework for plugins in scripts/plugintest
244 - Control.Command now uses livestatus if available.
245 - pynag.Plugins.PluginHelper() prototype
246 - Support for Nagios plugins new threshold format
247
248 Bugfixes:
249 - New Service() objects with no host_name are not saved in None/service_description anymore.
250 - GitEventHandler could not list files with spaces
251 - pynag.Plugins.simple.check_range was very broken, fixed and added testing framework
252 for pynag.Plugins
253 - Fix for correctly returning exit codes in Control.daemon()
254 - Static file parser now skips line not in format of key=value
255 - pynag.Parsers.status.get_hoststatus() and pynag.Parsers.status.get_servicestatus() should raise a ValueError rather than return it.
256 - timeperiod_name and alias were incorrectly saved
257 - Unhandled exception in contact.get_effective_services()
258
259 Changes in 0.4.7 (Oct 26 2012)
260
261 New Features:
262 - pynag cli: new parameter --debug
263 - pynag cli: new parameter --version
264 - Parsers.config.get_cfg_value() implemented
265 - Parsers.config.get_pid() implemented
266 - New Module: pynag.Control.Command for interactions with command_pipe
267 - Parsers.config.get_pid() implemented
268
269 Bugfixes:
270 - Discrepancy in CLI where filters between list and delete
271 - CLI now prints nice error message instead of stacktrace on errors
272 - ObjectFetcher.filter(): parameters ending in __isnot were always treated as an OR condition.
273 - "pynag execute" now works with services that define hostgroups instead of host_name
274 - Fixed macro resolving issues for services with hostgroups defined instead of host_name
275 - Fixed Default initilization of ObjectRelations.hostgroup_subgroups
276 - Bugfix: Nagios needs_reload() always returns false
277 - Bugfix: pynag.Parsers.config.needs_reload() always returns false
278 - Bugfix: Inverted conditions on pynag.Plugins.simple.check_range()
279 - Bugfix: Unhandled exception in pynag.Plugins.simple where must_thresholds=False
280
281
282 Changes in 0.4.6 (Sep 16 2012)
283
284 New Features:
285 - CLI Improvements
286 - manpage for pynag CLI updated
287 - New module Utils created
288 - Experimental new get_status() for ObjectDefinition
289 - Reworked GitEventHandler
290 - new function, Control.daemon.status()
291 - Experimental Perfdata analysis support
292
293 Bugfixes:
294 - Various bugfixes for get_effective_*groups()
295 - Various bugfixes in Parsers.config._edit_static_file()
296 - needs_reload() now compares timestamps with object_cache_file instead of lockfile
297 - Removed unneeded error handling from Control.daemon class
298 - Model filter, bugfix in __isnot= parameter
299
300 Changes in 0.4.5 (Aug 21 2012)
301
302 Bugfixes:
303 - popen2 import moved to send_nsca() to hide deprecationwarning
304 - pynag.Model no longer depends on defaultdict to work (for python 2.4)
305 - Removed dependency on defaultdict (does not exist on python 2.4)
306 - When permission problems occur for reading status.dat, exception is
307 now thrown in parse() rather than init()
308 - Version number is now correct
309 - debian subdir moved to debian.upstream for packaging
310
311
312
313 Changes in 0.4.4 (Aug 20 2012)
314
315 New Features:
316 - Host.copy(recursive=True) now recursively copies services
317 - README moved to markdown format ([email protected])
318 - Parsers.status class reworked. Now support get_servicestatus()
319 - filter() now supports __exists suffix for as a search condition
320 - Major rework og object relations and object cache ([email protected])
321 Bugfixes:
322 - get_all_macros returns empty hash map on non-existant check_command
323 - New get_effective_* functions i.e. Host.get_effective_contacts()
324 - ObjectDefinition.get_id() changed from md5sum to built-in __hash__()
325 - Fixes to get_effective_command_line() where macro within another macro was
326 not properly solved. ([email protected])
327 - GitEventHandler changed to use subprocess module instead of GitPython
328
329 - Support for nagios's ambigious Timeperiod format.
330 - check_thresholds() added (Issue 22) ([email protected])
331 - check_range() conditions now inverted (Fixes issue 22)
332 - /usr/local/nagios/etc/ added to paths where nagios.cfg might be found (Thanks
333 Abhinav Upadhyay)
334 - pycharm code inspection cleanup ([email protected])
335
336 Changes in 0.4.3 (Jul 13 2012)
337
338 Bugfixes:
339 - Model: Objectdefinition.delete() cascade parameter renamed to recursive.
340 Recursive implemented for host.
341
342 - Various fixes where nagios.cfg is not located in /etc/nagios/
343
344 - Improvements to build process
345
346 - Parsers: Exception handling loosened to not catch kill signals
347
348 - Model: calling filter() with __has_field now works on items seperated by ", "
349
350 Changes in 0.4.2
351
352 New features:
353 - new command-line tool pynag introduced (deprecated pynag-maincfg, etc).
354 pynag utility offers an easy way to create/update/delete configuration
355 objects from the command line. ([email protected])
356
357 - Model: ObjectDefinition.attributes are now defined according to
358 documentation, no longer dynamically created in order to ensure consistency
359 ([email protected])
360
361 - Model: run_check_command() available for hosts and services
362 ([email protected])
363
364 - Parsers: Working with comma seperated attribute values now easier
365 via new AttributeList class ([email protected])
366
367 - Model: copy() feature added to ObjectDefinitions.
368 ([email protected])
369
370 Bugs fixed:
371 - Model, ObjectDefinition.copy() now returns a copy of the newly created object
372
373 - Parsers, Appending cfg_dir to nagios maincfg and pathnames dont match
374 exactly what is in config before (for example double slashes would cause a
375 duplicate)
376
377 - Parsers: Cache is no longer reloaded as often (improves performance)
378 ([email protected])
379
380 - Parsers: Properly raise ParserError if unexpected '}' is encountered
381 while Parsing ([email protected])
382
383 - Parsers: ParserError class now has cleaner more detailed output
384 ([email protected])
385
386 - Model: get_all_macros() now returns custom macros ([email protected])
387
388 - Fixed key errors where data is not present ([email protected])
389
390 - Parsers: improvements to reload_cache() to fix memory leak in save()
391
392 - Code cleanup ala Eclipse python analyser. Unused variables etc removed.
393
394 Changes in 0.4.1
395
396 Plugins
397 Fix to check_range which now support multiple status lines
398 Modifications for python-2.3 support
399
400 Scripts
401 Added pynag-maincfg which allows for editing nagios.cfg
402 Added pynag-addservice for easy addition of services
403
404 Model
405 Ability to set filename for new objects
406 save() now works on when changing 'use'
407 Modifications for python-2.3 support
408
409 Parsers
410 typo fixed in edit_service
411 Memory leak fix
412 Added servicedependency and hostdependency support
413
414 EventHandlers
415 Added GitEventHandler which automaticly commits to git
416
417
418
419 Changes in 0.4.0
420
421 Features added:
422 - Model, New module that turns configuration into python objects
423 - Parsers, major refactoring
424
425
426 Changes in 0.3.1
427
428 Bugs Fixed:
429 - Plugin, Fixed joinallstr, wasn't being added between severity levels.
430
431 Features added:
432 - Plugin, Add must_threshold variable for programs that do not need classic -w or -c
433 - Plugin, allow add_arg to be specified multiple times if multiple=True specified
434 - Plugin, removed space character between severity and colon, "OK:" instead of "OK :"
435
436
437
438
439 Changes in 0.3
440
441 Bugs Fixed:
442
443
444 Features added:
445 - Plugin add_messages() and check_messages()
446 - new build system for easier RPM creation
447
448
449 Misc Changes:
450
451
452 New Contributors:
453
454 Tomas Ewdardsson, Pall Sigurdsson