@@ -143,7 +143,7 @@ public class Site2SiteVpnManagerImpl extends ManagerBase implements Site2SiteVpn
143143 true , ConfigKey .Scope .Domain );
144144 public static final ConfigKey <Long > VpnCustomerGatewayObsoleteCheckInterval = new ConfigKey <Long >(
145145 ConfigKey .CATEGORY_NETWORK , Long .class , "vpn.customer.gateway.obsolete.check.interval" , "0" ,
146- "Interval in minutes to periodically check VPN customer gateways for obsolete/excluded parameters and generate events and alerts. " +
146+ "Interval in hours to periodically check VPN customer gateways for obsolete/excluded parameters and generate events and alerts. " +
147147 "Set to 0 to disable. Default: 0 (disabled)." ,
148148 true , ConfigKey .Scope .Global );
149149
@@ -1155,8 +1155,8 @@ public boolean start() {
11551155 final long checkInterval = VpnCustomerGatewayObsoleteCheckInterval .value ();
11561156 if (checkInterval > 0 ) {
11571157 TimerTask task = new CheckVpnCustomerGatewayObsoleteParametersTask ();
1158- _vpnCheckTimer .schedule (task , checkInterval * 60 * 1000L , checkInterval * 60 * 1000L );
1159- logger .info ("Scheduled VPN customer gateway obsolete parameters check with interval: " + checkInterval + " minutes " );
1158+ _vpnCheckTimer .schedule (task , checkInterval * 60 * 60 * 1000L , checkInterval * 60 * 60 * 1000L );
1159+ logger .info ("Scheduled VPN customer gateway obsolete parameters check with interval: " + checkInterval + " hours " );
11601160 } else {
11611161 logger .debug ("VPN customer gateway obsolete check is disabled (interval = 0)" );
11621162 }
@@ -1225,7 +1225,6 @@ protected void runInContext() {
12251225 }
12261226 if (CollectionUtils .isNotEmpty (message )) {
12271227 String subject = String .format ("VPN customer gateways using " + String .join (", " , message ));
1228- _alertMgr .clearAlert (AlertService .AlertType .ALERT_TYPE_VPN_GATEWAY_OBSOLETE_PARAMETERS , 0L , 0L );
12291228 _alertMgr .sendAlert (AlertService .AlertType .ALERT_TYPE_VPN_GATEWAY_OBSOLETE_PARAMETERS , 0L , 0L , subject , null );
12301229 }
12311230 }
0 commit comments