diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-06-18 00:39:38 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-06-18 00:39:38 +0200 |
commit | f94e95785cb15a0028be40019848ec05a8e208a8 (patch) | |
tree | d0c7c36acd5a81fe9bd7b68f1fa883284dfbe395 /lib | |
parent | f02b3f6b2866e2ccb8cdfc2257c1f9a540ddc3e9 (diff) | |
download | monitoring-plugins-f94e95785cb15a0028be40019848ec05a8e208a8.tar.gz |
lib/parse_ini.c: Read "monitoring-plugins.ini"
Read "monitoring-plugins.ini" if that file exists, but fall back to
reading "plugins.ini" or "nagios-plugins.ini" for backward
compatibility.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/parse_ini.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/parse_ini.c b/lib/parse_ini.c index b6d80562..e19af1bb 100644 --- a/lib/parse_ini.c +++ b/lib/parse_ini.c @@ -41,12 +41,16 @@ typedef struct { } np_ini_info; static char *default_ini_file_names[] = { + "monitoring-plugins.ini", "plugins.ini", "nagios-plugins.ini", NULL }; static char *default_ini_path_names[] = { + "/usr/local/etc/monitoring-plugins.ini", + "/etc/monitoring-plugins.ini", + /* Deprecated path names (for backward compatibility): */ "/etc/nagios/plugins.ini", "/usr/local/nagios/etc/plugins.ini", "/usr/local/etc/nagios/plugins.ini", |