Skip to content

Commit

Permalink
add perfdata for the mode interface-nat-rejects
Browse files Browse the repository at this point in the history
  • Loading branch information
lausser committed Dec 16, 2023
1 parent be8aa84 commit 141a546
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
* 2023-12-16 11.2.3
add perfdata for the mode interface-nat-rejects
* 2023-12-16 11.2.2.1
fix Makefile.am and git add the cisco and arista pm files which i had forgotten
* 2023-11-30 11.2.2
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dnl Process this file with autoconf to produce a configure script.
AC_REVISION ($Revision: 1.150 $)
AC_PREREQ([2.69])
AC_INIT([check_nwc_health],[11.2.2.1])
AC_INIT([check_nwc_health],[11.2.3])
AM_INIT_AUTOMAKE([1.9 tar-pax])
AM_MAINTAINER_MODE([disable])
AC_CANONICAL_HOST
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,10 @@ sub check {
$self->{rejects}, $self->{cnatProtocolStatsName});
$self->set_thresholds(warning => 30, critical => 50);
$self->add_message($self->check_thresholds($self->{rejects}));
$self->add_perfdata(
label => 'nat_packets_rejected_pct',
value => $self->{rejects},
uom => '%',
);
}

0 comments on commit 141a546

Please sign in to comment.