summaryrefslogtreecommitdiffstats
path: root/lib/parse_ini.c
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2014-06-18 18:39:32 +0200
committerHolger Weiss <holger@zedat.fu-berlin.de>2014-06-18 18:39:32 +0200
commitf0b22b37f9554fa230a355fe2a1e45e5b59630f2 (patch)
tree26db15f0a3a8f122bd0efad108bc1a4dd6c015a6 /lib/parse_ini.c
parent6da7dba782f37eafdec595acfc3445a56d445915 (diff)
downloadmonitoring-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.
Diffstat (limited to 'lib/parse_ini.c')
-rw-r--r--lib/parse_ini.c2
1 files changed, 2 insertions, 0 deletions
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[] = {
46}; 46};
47 47
48static char *default_ini_path_names[] = { 48static 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",