diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2018-06-08 09:23:38 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2018-06-08 09:23:38 +0200 |
commit | 2ea15fc5189c16cc0b413c0703da98bd638fb1b6 (patch) | |
tree | 58a02ef7ce674bfc780a227702b5edb062d6cd99 /plugins | |
parent | 50bda03d27649119ca8a71a1ca96b88f1b81e50f (diff) | |
download | monitoring-plugins-2ea15fc.tar.gz |
check_curl: changed name of plugin in user-agent and added curl_version() to it
Diffstat (limited to 'plugins')
-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 @@ | |||
32 | * | 32 | * |
33 | * | 33 | * |
34 | *****************************************************************************/ | 34 | *****************************************************************************/ |
35 | const char *progname = "check_curl"; | 35 | const char *progname = "check_http"; |
36 | 36 | ||
37 | const char *copyright = "2006-2018"; | 37 | const char *copyright = "2006-2018"; |
38 | const char *email = "devel@monitoring-plugins.org"; | 38 | const char *email = "devel@monitoring-plugins.org"; |
@@ -247,8 +247,8 @@ main (int argc, char **argv) | |||
247 | argv = np_extra_opts (&argc, argv, progname); | 247 | argv = np_extra_opts (&argc, argv, progname); |
248 | 248 | ||
249 | /* set defaults */ | 249 | /* set defaults */ |
250 | snprintf( user_agent, DEFAULT_BUFFER_SIZE, "%s/v%s (monitoring-plugins %s)", | 250 | snprintf( user_agent, DEFAULT_BUFFER_SIZE, "%s/v%s (monitoring-plugins %s, %s)", |
251 | progname, NP_VERSION, VERSION); | 251 | progname, NP_VERSION, VERSION, curl_version()); |
252 | 252 | ||
253 | /* parse arguments */ | 253 | /* parse arguments */ |
254 | if (process_arguments (argc, argv) == ERROR) | 254 | if (process_arguments (argc, argv) == ERROR) |