Skip to content

Releases: opsview/plugnpy

plugnpy-v2.0.14

02 Feb 12:18
Compare
Choose a tag to compare
  • Use utf-8 encoding for cache manager keys

plugnpy-v2.0.12

24 Aug 12:27
Compare
Choose a tag to compare
  • Support for negative thresholds when using conversion factors

plugnpy-v2.0.8

03 Jul 09:43
Compare
Choose a tag to compare
  • Auto convert byte rate units

plugnpy-v2.0.7

21 May 10:36
Compare
Choose a tag to compare
  • Added set_data method to CacheManagerUtils
  • Added unit mapping. e.g. using the unit 'per_second' will display '/s' in the metric output
  • host, port and namespace are now CacheManagerUtils attributes

plugnpy-v2.0.6

24 Mar 15:20
Compare
Choose a tag to compare
  • Updated 'make test' target to run tests on py27 and py37 using tox

  • Fixed geventhttpclient dependency issue - setup.py was reading the
    version from init.py, but init.py imports cachemanager.py
    which tries to import geventhttpclient, which isn't installed

  • Fixed/suppressed linting issues

  • Updated examples to use -> /usr/bin/env python3

  • Added helper methods

    • Generating cache manager keys
      Added CacheManagerUtils.generate_key to help generate keys for
      cachemanager, any arguments passed to the method are escaped if
      they contain the delimeter and then joined by the delimiter before
      a SHA-256 hash is generated.
    • Dynamic imports
      Added dynamic_import and import_modules methods to utils to help
      with dynamic imports.

plugnpy-v2.0.5

30 Jan 10:48
Compare
Choose a tag to compare
  • If an exception was raised inside the 'func' passed into the
    get_via_cachemanager, the set_data call would never happen.
  • This meant that the next call to the cachemanager would not be able
    to get the lock, resulting in the call timing out.
  • Any exceptions that are raised in the func are now caught and the
    error message is stored in the cachemanager under the 'error' key.

plugnpy-v2.0.4

17 Jan 11:15
Compare
Choose a tag to compare
  • CacheManagerUtils now requires TTL as an explicit parameter.

plugnpy-v2.0.3

03 Jan 12:20
Compare
Choose a tag to compare

Add handling for unit 'per_second' to ensure graphing of data:

  • Summary unit '/s'
  • Performance unit 'per_second'

plugnpy-v2.0.2

01 Nov 16:50
Compare
Choose a tag to compare

Add cache manager client

  • Remove conda artifacts from Makefile
  • Add CacheManagerClient with simple interface to get/set data
  • Add CacheManagerUtils with helper function to handle get/set
  • Add examples/check_disk.py, plugin written using cachemanager

plugnpy-v2.0.1

10 Sep 08:41
Compare
Choose a tag to compare
  • Fix inconsistencies:
    • exit with code 3 when -h/--help is called
    • raname msg_fmt field in check.add_metric to display_format
    • refactor conversion implementation
    • add support for IEC and SI bytes conversion
    • add check.evaluate() and check.convert_value() static helper methods
    • add support for custom precision for summary and perf data
    • add constants for status codes and units
    • README improvements
  • Fix encoding error in README
  • Fix missing perf data for numbers with type str