[monitoring-plugins] lib/parse_ini.c: Search for INI file in subdirs

Holger Weiss git at monitoring-plugins.org
Wed Jun 18 18:50:08 CEST 2014


 Module: monitoring-plugins
 Branch: master
 Commit: f0b22b37f9554fa230a355fe2a1e45e5b59630f2
 Author: Holger Weiss <holger at zedat.fu-berlin.de>
   Date: Wed Jun 18 18:39:32 2014 +0200
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=f0b22b3

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 ede0e5f..cd3d827 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",



More information about the Commits mailing list