瀏覽代碼

Prevent this_status from getting stuck when iterating through hosts. Resolves #520

madlohe 6 年之前
父節點
當前提交
afb9249e87
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      plugins-root/check_icmp.c

+ 1 - 0
plugins-root/check_icmp.c

@@ -1361,6 +1361,7 @@ static void finish(int sig) {
   status = STATE_OK;
   status = STATE_OK;
   host = list;
   host = list;
   while (host) {
   while (host) {
+    this_status = STATE_OK;
     if (!host->icmp_recv) {
     if (!host->icmp_recv) {
       /* rta 0 is ofcourse not entirely correct, but will still show up
       /* rta 0 is ofcourse not entirely correct, but will still show up
        * conspicuosly as missing entries in perfparse and cacti */
        * conspicuosly as missing entries in perfparse and cacti */