From dbf2b7c7e827fdf56d2758ccc2fd38375622daeb Mon Sep 17 00:00:00 2001 From: "Zane C. Bowers-Hadley" Date: Wed, 20 Jul 2022 12:42:17 -0500 Subject: [PATCH] cape: typo fix so it will send criticals if requested (#416) --- snmp/cape | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snmp/cape b/snmp/cape index cde8955..e0c2c79 100755 --- a/snmp/cape +++ b/snmp/cape @@ -310,7 +310,7 @@ while ( $process_logs && defined( $logs[$process_loop] ) ) { elsif ( $level eq 'warning' and $config->{sendWarnings} ) { push( @{ $return_json->{data}->{warnings} }, $entry ); } - elsif ( $level eq 'criticals' and $config->{sendCriticals} ) { + elsif ( $level eq 'critical' and $config->{sendCriticals} ) { push( @{ $return_json->{data}->{criticals} }, $entry ); } }