2011-11-29 Ramon Novoa <rnovoa@artica.es>
* 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
This commit is contained in:
parent
cb2da4bade
commit
9775e498b5
|
@ -1,3 +1,8 @@
|
|||
2011-11-29 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* modules/pandora_module_snmpget.cc: Modified the call to snmpget.exe
|
||||
to directly retrieve the value.
|
||||
|
||||
2011-11-29 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* modules/pandora_module.h,
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue