diff --git a/src/main/java/com/pangdata/apps/monitor/MysqlMariaDBMonitor.java b/src/main/java/com/pangdata/apps/monitor/MysqlMariaDBMonitor.java index 7295aa1..2aa3646 100644 --- a/src/main/java/com/pangdata/apps/monitor/MysqlMariaDBMonitor.java +++ b/src/main/java/com/pangdata/apps/monitor/MysqlMariaDBMonitor.java @@ -89,6 +89,11 @@ public static void main(String[] args) throws Exception { USER = (String) PangProperties.getProperty("jdbc.username"); PASS = (String) PangProperties.getProperty("jdbc.password"); PREFIX = (String) PangProperties.getProperty("pang.prefix"); + + if(PREFIX == null || PREFIX.trim().isEmpty()) { + logger.error("Prefix doesn't defined. Please set prefix configuration on conf/pang.properties."); + return; + } final Map fields = extractFields();