Rename digwatch.conf -> digwatch_rules.conf

This commit is contained in:
Henri DF
2016-04-12 18:43:33 -07:00
parent 357276b787
commit ef93844234
6 changed files with 6 additions and 5 deletions

View File

@@ -1,7 +1,8 @@
rules_file: /etc/digwatch.conf
rules_file: /etc/digwatch_rules.conf
# Priority level
# Any rule with priority lower than this level will be discarded
# WARNING currently has no effect!
priority_level: warning
syslog_output:

View File

@@ -1,3 +1,3 @@
install(FILES digwatch.conf
install(FILES digwatch_rules.conf
DESTINATION "${DIR_ETC}")

View File

@@ -18,7 +18,7 @@ void digwatch_configuration::init(string conf_filename)
string m_config_file = conf_filename;
m_config = new yaml_configuration(m_config_file);
m_rules_file = m_config->get_scalar<string>("rules_file", "/etc/digwatch.conf");
m_rules_filename = m_config->get_scalar<string>("rules_file", "/etc/digwatch_rules.conf");
m_priority_level = m_config->get_scalar<string>("priority_level", "warning");
output_config file_output;

View File

@@ -94,7 +94,7 @@ class digwatch_configuration
public:
void init(std::string conf_filename);
void init();
std::string m_rules_file;
std::string m_rules_filename;
std::string m_priority_level;
std::vector<output_config> m_outputs;
private:

View File

@@ -365,7 +365,7 @@ int digwatch_init(int argc, char **argv)
digwatch_syslog::init(ls);
rules->load_rules(rules_file);
rules->load_rules(config.m_rules_filename);
inspector->set_filter(rules->get_filter());
inspector->set_hostname_and_port_resolution_mode(false);