Sfoglia il codice sorgente

New output format reported by pumuckel1980 (946857)

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@916 f882894a-f735-0410-b71e-b25c423dba1c
Matthew Kent 21 anni fa
parent
commit
b4a3db443b
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      plugins/check_ping.c

+ 1 - 0
plugins/check_ping.c

@@ -423,6 +423,7 @@ run_ping (const char *cmd, const char *addr)
 			 sscanf(buf,"%*d packets transmitted, %*d packets received, %d%% packet loss",&pl)==1	||
 			 sscanf(buf,"%*d packets transmitted, %*d packets received, %d%% loss, time",&pl)==1 ||
 			 sscanf(buf,"%*d packets transmitted, %*d received, %d%% loss, time", &pl)==1 ||
+			 sscanf(buf,"%*d packets transmitted, %*d received, %d%% packet loss, time", &pl)==1 ||
 		   sscanf(buf,"%*d packets transmitted, %*d received, +%*d errors, %d%% packet loss", &pl) == 1)
 			continue;