Skip to content

Commit

Permalink
fix(check_memory): remove comma from perfdata
Browse files Browse the repository at this point in the history
    warning/Influxdb2Writer: Ignoring invalid perfdata for
    checkable 'px1!Memory' and command 'check_memory' with
    value: vmem_pageouts/s=8926,

Comma is not allowed in perfdata.

Signed-off-by: Davide Madrisan <[email protected]>
  • Loading branch information
madrisan committed Jan 30, 2024
1 parent 13424c7 commit d7d7a3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Contributors:
Bug report and patch for fixing check_network
when run in a containerized environment
ggzengel - https://github.com/ggzengel
Bug report (issues#137)
Bug reports (issues#137, issues#140)

Some code and coding styles/ideas belong to the following open source projects:

Expand Down
6 changes: 3 additions & 3 deletions plugins/check_memory.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
/*
* License: GPLv3+
* Copyright (c) 2014-2022 Davide Madrisan <[email protected]>
* Copyright (c) 2014-2024 Davide Madrisan <[email protected]>
*
* A Nagios plugin to check system memory usage on Linux.
*
Expand Down Expand Up @@ -43,7 +43,7 @@
#include "xasprintf.h"

static const char *program_copyright =
"Copyright (C) 2014-2022 Davide Madrisan <" PACKAGE_BUGREPORT ">\n";
"Copyright (C) 2014-2024 Davide Madrisan <" PACKAGE_BUGREPORT ">\n";

static struct option const longopts[] = {
{(char *) "available", no_argument, NULL, 'a'},
Expand Down Expand Up @@ -262,7 +262,7 @@ main (int argc, char **argv)
dpgmajfault = nr_vmem_pgmajfault[1] - nr_vmem_pgmajfault[0];

perfdata_vmem_msg =
xasprintf (", vmem_pageins/s=%lu, vmem_pageouts/s=%lu, "
xasprintf (" vmem_pageins/s=%lu vmem_pageouts/s=%lu "
"vmem_pgmajfault/s=%lu", dpgpgin, dpgpgout, dpgmajfault);
}

Expand Down

0 comments on commit d7d7a3d

Please sign in to comment.