From dc9993c665a2db8663d54766b290512ba6191e4f Mon Sep 17 00:00:00 2001 From: "Zane C. Bowers-Hadley" Date: Sat, 23 Apr 2022 23:03:53 -0500 Subject: [PATCH] fix a off by one for nfsstat on new releases --- snmp/fbsdnfsclient | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/snmp/fbsdnfsclient b/snmp/fbsdnfsclient index 7e3d57722..ab5c12694 100644 --- a/snmp/fbsdnfsclient +++ b/snmp/fbsdnfsclient @@ -95,7 +95,7 @@ while( defined( $nfsstatOutputA[$int] ) ){ $nfsstatOutputA[$int]=~s/^ +//; $nfsstatOutputA[$int]=~s/ +/ /g; - if ( $int == 3 ){ + if ( $int == 2 ){ ( $data{Getattr}, $data{Setattr}, @@ -109,7 +109,7 @@ while( defined( $nfsstatOutputA[$int] ) ){ } - if ( $int == 5 ){ + if ( $int == 4 ){ ( $data{Rename}, $data{Link}, @@ -123,7 +123,7 @@ while( defined( $nfsstatOutputA[$int] ) ){ } - if ( $int == 7 ){ + if ( $int == 6 ){ ( $data{Mknod}, $data{Fsstat}, @@ -134,7 +134,7 @@ while( defined( $nfsstatOutputA[$int] ) ){ } - if ( $int == 10 ){ + if ( $int == 9 ){ ( $data{TimedOut}, $data{Invalid}, @@ -145,7 +145,7 @@ while( defined( $nfsstatOutputA[$int] ) ){ } - if ( $int == 13 ){ + if ( $int == 12 ){ ( $data{AttrHits}, $data{AttrMisses}, @@ -159,7 +159,7 @@ while( defined( $nfsstatOutputA[$int] ) ){ } - if ( $int == 15 ){ + if ( $int == 14 ){ ( $data{BioRLHits}, $data{BioRLMisses},