Merge branch 'ent-7942-12356-r-works-bug-en-module_ping-agente-windows' into 'develop'
Do not rely on the exit status of ping.exe for module_ping. See merge request artica/pandorafms!4432
This commit is contained in:
commit
aa18f8d1ec
|
@ -30,7 +30,7 @@ using namespace Pandora_Modules;
|
||||||
* @param host Host to be pinged.
|
* @param host Host to be pinged.
|
||||||
*/
|
*/
|
||||||
Pandora_Module_Ping::Pandora_Module_Ping (string name, string host, string count, string timeout, string advanced_options)
|
Pandora_Module_Ping::Pandora_Module_Ping (string name, string host, string count, string timeout, string advanced_options)
|
||||||
: Pandora_Module_Exec (name, "ping -n " + count + " -w " + timeout + " " + advanced_options + " " + host) {
|
: Pandora_Module_Exec (name, "ping -n " + count + " -w " + timeout + " " + advanced_options + " " + host + " | find \"TTL=\"") {
|
||||||
this->proc = 1;
|
this->proc = 1;
|
||||||
this->setKind (module_ping_str);
|
this->setKind (module_ping_str);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue