diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-06-18 16:39:32 (GMT) |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-06-18 16:39:32 (GMT) |
commit | f0b22b37f9554fa230a355fe2a1e45e5b59630f2 (patch) | |
tree | 26db15f0a3a8f122bd0efad108bc1a4dd6c015a6 | |
parent | 6da7dba782f37eafdec595acfc3445a56d445915 (diff) | |
download | monitoring-plugins-f0b22b37f9554fa230a355fe2a1e45e5b59630f2.tar.gz |
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.
-rw-r--r-- | lib/parse_ini.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/parse_ini.c b/lib/parse_ini.c index ede0e5f..cd3d827 100644 --- a/lib/parse_ini.c +++ b/lib/parse_ini.c | |||
@@ -46,7 +46,9 @@ static char *default_ini_file_names[] = { | |||
46 | }; | 46 | }; |
47 | 47 | ||
48 | static char *default_ini_path_names[] = { | 48 | static char *default_ini_path_names[] = { |
49 | "/usr/local/etc/monitoring-plugins/monitoring-plugins.ini", | ||
49 | "/usr/local/etc/monitoring-plugins.ini", | 50 | "/usr/local/etc/monitoring-plugins.ini", |
51 | "/etc/monitoring-plugins/monitoring-plugins.ini", | ||
50 | "/etc/monitoring-plugins.ini", | 52 | "/etc/monitoring-plugins.ini", |
51 | /* deprecated path names (for backward compatibility): */ | 53 | /* deprecated path names (for backward compatibility): */ |
52 | "/etc/nagios/plugins.ini", | 54 | "/etc/nagios/plugins.ini", |