From a7393fe4b093ed77cae598980ce19623e9b735b8 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Wed, 10 Jul 2019 16:56:25 +0200 Subject: [PATCH] enhance performance snmp service --- os/windows/snmp/mode/service.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/windows/snmp/mode/service.pm b/os/windows/snmp/mode/service.pm index 933b0bb97..0902acf79 100644 --- a/os/windows/snmp/mode/service.pm +++ b/os/windows/snmp/mode/service.pm @@ -82,7 +82,7 @@ sub run { my $oid_svSvcName = '.1.3.6.1.4.1.77.1.2.3.1.1'; my $oid_svSvcInstalledState = '.1.3.6.1.4.1.77.1.2.3.1.2'; my $oid_svSvcOperatingState = '.1.3.6.1.4.1.77.1.2.3.1.3'; - my $result = $self->{snmp}->get_table(oid => $oid_svSvcEntry); + my $result = $self->{snmp}->get_table(oid => $oid_svSvcEntry, start => $oid_svSvcName, end => $oid_svSvcOperatingState); my %services_match = (); $self->{output}->output_add(severity => 'OK',