[monitoring-plugins] lib/parse_ini.c: Read "monitoring-plugins.ini"

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


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

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.

---

 lib/parse_ini.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/parse_ini.c b/lib/parse_ini.c
index b6d8056..e19af1b 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",



More information about the Commits mailing list