Permalink
Commits on Aug 22, 2018
  1. check_uptime: add warn, crit, and min values to perfdata

    madrisan committed Aug 22, 2018
    Based on a merge request opened by "magmax" (https://github.com/magmax).
    
    Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
Commits on Aug 12, 2018
  1. build: check for the compiler flag -Wstringop-truncation

    madrisan committed Aug 12, 2018
    availability. No extra warnings displayed.
    
    Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
Commits on Aug 5, 2018
  1. Merge pull request #9 from madrisan/v23

    madrisan committed Aug 5, 2018
    Version 23
Commits on Aug 4, 2018
  1. Fixes reported by LGTM have been committed

    madrisan committed Aug 4, 2018
  2. Version 23

    madrisan committed Aug 4, 2018
    Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
  3. README: add badges for LGTM.com

    madrisan committed Aug 4, 2018
Commits on Aug 3, 2018
  1. check_docker: make clear 'check_docker --memory' is alpha software

    madrisan committed Aug 3, 2018
    Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
  2. Enable -Wformat-signedness and fix the warnings reported by gcc

    madrisan committed Aug 3, 2018
    Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
  3. Fix the issues about long-long-suffixes reported by LGTM.com

    madrisan committed Aug 3, 2018
     * This argument should be of type 'unsigned int' but is of type
       'unsigned long long'
     * This argument should be of type 'int' but is of type 'long long'
    
    The C99 standard defines the long-long-suffix as one of 'll' or 'LL'.
    See: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf
    
    Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
  4. build: fix the alignment of the summary printed by ./configure

    madrisan committed Aug 3, 2018
    Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
Commits on Aug 2, 2018
  1. README: add again a badge for coverity scans

    madrisan committed Aug 2, 2018
    now that the web site and scans for open-source projects are working again.
  2. Merge pull request #8 from madrisan/coverity_scan

    madrisan committed Aug 2, 2018
    Fix severy issues reported by Coverity
  3. tests/testutils: fix a resource leak issue reported by Coverity (CID …

    madrisan committed Aug 2, 2018
    …183446)
    
    CID 183446 (#1 of 1): Resource leak (RESOURCE_LEAK)
    Variable stream going out of scope leaks the storage it points to.
    
    Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
Commits on Jul 27, 2018
  1. tests/testutils: fix an issue reported by Coverity (CID 183357)

    madrisan committed Jul 27, 2018
    This less-than-zero comparison of an unsigned value is never true.
    (size = ftell(stream)) < 0UL
    
    This issue was introduced by 14f360f
    
    Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
  2. tests/tslibcontainer_count: fix a 'logically daed code' error

    madrisan committed Jul 27, 2018
    detected by Coverity (CID 183356).
    This issue was introduced by f1bc44d
    
    Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
  3. tests/testutils: fix an issue reported by Coverity (CID 183345)

    madrisan committed Jul 27, 2018
    Argument cannot be negative:
     * Function ftell(stream) returns a negative number.
     * Assigning: unsigned variable size = ftell.
     * CID 183345: Argument cannot be negative (NEGATIVE_RETURNS)
    
    'size' is passed to a parameter that cannot be negative.
    
    Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
  4. lib/container_count: fix a resource leak error

    madrisan committed Jul 27, 2018
    detected by Coverity (CID 183349).
    Variable buffer going out of scope leaks the storage it points to.
    
    Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
  5. tests/tsliburlencode: fix a resource leak error

    madrisan committed Jul 27, 2018
    detected by Coverity (CID 183348).
    Resource url_encode(data->url) is not freed or pointed-to in strcmp.
    
    Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
Commits on Jul 26, 2018
  1. lib/container_count: fix a resource leak error

    madrisan committed Jul 26, 2018
    detected by Coverity (CID 183347).
    Variable value going out of scope leaks the storage it points to.
    
    Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
  2. tests/tslibcontainer_count: fix an explicit null dereference count

    madrisan committed Jul 26, 2018
    detected by Coverity (CID 183344).
    Passing null pointer filename to test_fstringify, which dereferences it.
    
    Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
Commits on Jul 16, 2018
  1. check_docker: add pg* counters to memory perfdata

    madrisan committed Jul 16, 2018
    Add pgfault, pgmajfault, pgpgin, and pgpgout to the --memory
    perfdata.
    
    Allow users to specify a 'delay' argument at command line to
    modify the time between subsequent docker sysfs files parsing.
    
    Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
Commits on Jul 14, 2018
  1. check_docker: fix some issues

    madrisan committed Jul 14, 2018
     * fix the path of the memory.stat file
     * fix the help message by adding the options -b,-k,-m,-g
     * fix the warning and critical thresholds calculation
    
    Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
Commits on Jul 13, 2018
  1. tests: now unit test for lib/container_memory.c

    madrisan committed Jul 13, 2018
    Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
  2. tests: new unit test for lib/url_encode.c

    madrisan committed Jul 13, 2018
    Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
Commits on Jul 12, 2018
  1. tests: move unconditionnaly some libraries to libutils.a

    madrisan committed Jul 12, 2018
    Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
  2. tests: port the last artitecture modifitions to the test

    madrisan committed Jul 12, 2018
    framework to fix two build issues.
    
    Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
  3. check_docker: provide a calculation of the memory allocation

    madrisan committed Jul 12, 2018
    by all the running containers (new option '--memory').
    
    Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
Commits on Jun 22, 2018
  1. tests: move some test code from lib/container.c to tests/

    madrisan committed Jun 22, 2018
    Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
Commits on Jun 7, 2018
  1. tests: add a unit test for testutils

    madrisan committed Jun 7, 2018
    Add a test for the new function test_fstringify ()
    
    Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
Commits on May 30, 2018
  1. lib/collection: fix a nasty memory corruption bug

    madrisan committed May 30, 2018
    Fix a memory allocation bug that creates sometimes
    a memory curruption detected by the glibc libraries:
    
        free(): invalid next size (fast)
    
    when free'ing the data pointed by 'hashtable->keys'.
    
    Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
  2. check_docker: fix the help message

    madrisan committed May 30, 2018
    Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
  3. lib/collection: add an arg 'increment' to counter_put()

    madrisan committed May 30, 2018
    This change is required for a future usage of this library
    where the count will not always be incremented by a single unit.
    
    Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
  4. lib/collection: fix Copyleft

    madrisan committed May 30, 2018
    Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
Commits on May 29, 2018
  1. lib/container: move some logic from main to docker_get()

    madrisan committed May 29, 2018
    This function is now called with a query id argument and can be
    easily expanded and support other queries to the docker rest
    interface.
    
    Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
  2. lib/container: docker_get() code refactoring

    madrisan committed May 29, 2018
    Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>