From 38628e3528961fe3bf6170f5d68a72cebd0b999d Mon Sep 17 00:00:00 2001
From: Plamen Vasilev
Date: Thu, 16 Dec 2021 19:27:36 +0200
Subject: [PATCH] fix occasionally random ordering for fail2ban (#388)
If
$j->canonical(1);
need another changes, please fix that.
I get this from: https://github.com/librenms/librenms-agent/pull/240
---
snmp/fail2ban | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/snmp/fail2ban b/snmp/fail2ban
index 8564002..42f29ed 100644
--- a/snmp/fail2ban
+++ b/snmp/fail2ban
@@ -157,7 +157,7 @@ sub stats{
}
my $j=JSON->new;
-
+ $j->canonical(1);
if ( $_[0] ){
$j->pretty(1);
return $j->encode( \%toReturn );