Apinger.conf – duplicate targets



  • Hi!

    /etc/inc/gwlb.inc->setup_gateways_monitor()
    Because function not clean temp buffers $alarmscfg and $apingercfg it make multiply entries for one gateway in apinger.conf.

                    $apingerconfig .= $alarmscfg;
                    $apingerconfig .= $apingercfg;
                    $alarmscfg = "";    // reset
                    $apingercfg = "";    // reset
            }
            fwrite($fd, $apingerconfig);
            fclose($fd);
    
    


  • Should be on newer snapshots.
    Thanks.


Log in to reply