From 9775e498b549d12de41ff6ce1e111891200030c7 Mon Sep 17 00:00:00 2001 From: ramonn Date: Tue, 29 Nov 2011 14:35:52 +0000 Subject: [PATCH] 2011-11-29 Ramon Novoa * modules/pandora_module_snmpget.cc: Modified the call to snmpget.exe to directly retrieve the value. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5204 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_agents/win32/ChangeLog | 5 +++++ pandora_agents/win32/modules/pandora_module_snmpget.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pandora_agents/win32/ChangeLog b/pandora_agents/win32/ChangeLog index 9e52c88bd1..1fd13499c8 100644 --- a/pandora_agents/win32/ChangeLog +++ b/pandora_agents/win32/ChangeLog @@ -1,3 +1,8 @@ +2011-11-29 Ramon Novoa + + * modules/pandora_module_snmpget.cc: Modified the call to snmpget.exe + to directly retrieve the value. + 2011-11-29 Ramon Novoa * modules/pandora_module.h, diff --git a/pandora_agents/win32/modules/pandora_module_snmpget.cc b/pandora_agents/win32/modules/pandora_module_snmpget.cc index 24195b0076..d6c1ac388a 100644 --- a/pandora_agents/win32/modules/pandora_module_snmpget.cc +++ b/pandora_agents/win32/modules/pandora_module_snmpget.cc @@ -30,7 +30,7 @@ using namespace Pandora_Modules; * @param host Host to be SNMPGeted. */ Pandora_Module_SNMPGet::Pandora_Module_SNMPGet (string name, string version, string community, string agent, string oid, string advanced_options) - : Pandora_Module_Exec (name, "snmpget.exe -v " + version + " -c " + community + " " + advanced_options + " " + agent + " " + oid + " 2>nul | tail.exe -1 | cut.exe -d\" \" -f 4- | tr.exe -d \\\"\\n") { + : Pandora_Module_Exec (name, "snmpget.exe -OUevqt -v " + version + " -c " + community + " " + advanced_options + " " + agent + " " + oid + " 2>nul | tr.exe -d \\\"\\n") { this->setKind (module_snmpget_str); }