From f0b22b37f9554fa230a355fe2a1e45e5b59630f2 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Wed, 18 Jun 2014 18:39:32 +0200 Subject: lib/parse_ini.c: Search for INI file in subdirs Add two path names to the list of default INI file locations, as some users/distributions prefer to put configuration files into subdirectories. --- lib/parse_ini.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/parse_ini.c b/lib/parse_ini.c index ede0e5fe..cd3d8271 100644 --- a/lib/parse_ini.c +++ b/lib/parse_ini.c @@ -46,7 +46,9 @@ static char *default_ini_file_names[] = { }; static char *default_ini_path_names[] = { + "/usr/local/etc/monitoring-plugins/monitoring-plugins.ini", "/usr/local/etc/monitoring-plugins.ini", + "/etc/monitoring-plugins/monitoring-plugins.ini", "/etc/monitoring-plugins.ini", /* deprecated path names (for backward compatibility): */ "/etc/nagios/plugins.ini", -- cgit v1.2.3-74-g34f1