[monitoring-plugins] check_curl: changed name of plugin in user-agent ...

Andreas Baumann git at monitoring-plugins.org
Fri Jun 8 09:30:18 CEST 2018


 Module: monitoring-plugins
 Branch: feature_check_curl
 Commit: 2ea15fc5189c16cc0b413c0703da98bd638fb1b6
 Author: Andreas Baumann <mail at andreasbaumann.cc>
   Date: Fri Jun  8 09:23:38 2018 +0200
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=2ea15fc

check_curl: changed name of plugin in user-agent and added curl_version() to it

---

 plugins/check_curl.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/plugins/check_curl.c b/plugins/check_curl.c
index 4fe8937..43d5961 100644
--- a/plugins/check_curl.c
+++ b/plugins/check_curl.c
@@ -32,7 +32,7 @@
 *
 *
 *****************************************************************************/
-const char *progname = "check_curl";
+const char *progname = "check_http";
 
 const char *copyright = "2006-2018";
 const char *email = "devel at monitoring-plugins.org";
@@ -247,8 +247,8 @@ main (int argc, char **argv)
   argv = np_extra_opts (&argc, argv, progname);
 
   /* set defaults */
-  snprintf( user_agent, DEFAULT_BUFFER_SIZE, "%s/v%s (monitoring-plugins %s)",
-    progname, NP_VERSION, VERSION);
+  snprintf( user_agent, DEFAULT_BUFFER_SIZE, "%s/v%s (monitoring-plugins %s, %s)",
+    progname, NP_VERSION, VERSION, curl_version());
 
   /* parse arguments */
   if (process_arguments (argc, argv) == ERROR)



More information about the Commits mailing list