aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar Holger Weiss <holger@zedat.fu-berlin.de> 2014-06-18 18:39:32 +0200
committerGravatar Holger Weiss <holger@zedat.fu-berlin.de> 2014-06-18 18:39:32 +0200
commitf0b22b37f9554fa230a355fe2a1e45e5b59630f2 (patch)
tree26db15f0a3a8f122bd0efad108bc1a4dd6c015a6 /lib
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')
-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[] = {
};
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",