diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2018-06-08 09:23:38 +0200 |
---|---|---|
committer | Sven Nierlein <sven@nierlein.de> | 2018-10-22 16:30:31 +0200 |
commit | 36ea82ff1252059795c79d5a52ad9550048e7080 (patch) | |
tree | 320e90f0e89026b808d20865337655f467bbb168 | |
parent | 577edf4725dfc3e6474042a0e0d6585b744b2b8c (diff) | |
download | monitoring-plugins-36ea82ff1252059795c79d5a52ad9550048e7080.tar.gz |
check_curl: changed name of plugin in user-agent and added curl_version() to it
-rw-r--r-- | plugins/check_curl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c index 4fe89378..43d5961f 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@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) |