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:
Daniel Rodriguez 2021-09-29 14:02:32 +00:00
commit aa18f8d1ec
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ using namespace Pandora_Modules;
* @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_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->setKind (module_ping_str);
}