From c249367f38ef09dabaf13c05d7121b1bc20e723f Mon Sep 17 00:00:00 2001 From: Thomas Constans Date: Fri, 23 Jun 2023 12:12:54 +0200 Subject: [PATCH] remove dep to utils.pm --- check_snmp_mem.pl | 5 ++--- check_snmp_storage.pl | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/check_snmp_mem.pl b/check_snmp_mem.pl index ef470ad..7d1f785 100755 --- a/check_snmp_mem.pl +++ b/check_snmp_mem.pl @@ -19,9 +19,8 @@ use Getopt::Long; # Nagios specific use lib "/usr/lib64/nagios/plugins"; -use utils qw(%ERRORS $TIMEOUT); -#my $TIMEOUT = 15; -#my %ERRORS=('OK'=>0,'WARNING'=>1,'CRITICAL'=>2,'UNKNOWN'=>3,'DEPENDENT'=>4); +my $TIMEOUT = 15; +my %ERRORS=('OK'=>0,'WARNING'=>1,'CRITICAL'=>2,'UNKNOWN'=>3,'DEPENDENT'=>4); # SNMP Datas diff --git a/check_snmp_storage.pl b/check_snmp_storage.pl index d642803..72fb6e7 100755 --- a/check_snmp_storage.pl +++ b/check_snmp_storage.pl @@ -18,9 +18,8 @@ use Getopt::Long; # Nagios specific use lib "/usr/lib64/nagios/plugins"; -use utils qw(%ERRORS $TIMEOUT); -#my $TIMEOUT = 15; -#my %ERRORS=('OK'=>0,'WARNING'=>1,'CRITICAL'=>2,'UNKNOWN'=>3,'DEPENDENT'=>4); +my $TIMEOUT = 15; +my %ERRORS=('OK'=>0,'WARNING'=>1,'CRITICAL'=>2,'UNKNOWN'=>3,'DEPENDENT'=>4); # SNMP Datas my $storage_table= '1.3.6.1.2.1.25.2.3.1';