summaryrefslogtreecommitdiffstats
path: root/plugins/check_by_ssh.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_by_ssh.c')
-rw-r--r--plugins/check_by_ssh.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/check_by_ssh.c b/plugins/check_by_ssh.c
index bbed9541..49794cc7 100644
--- a/plugins/check_by_ssh.c
+++ b/plugins/check_by_ssh.c
@@ -86,7 +86,7 @@ main (int argc, char **argv)
86 child_process = spopen (comm); 86 child_process = spopen (comm);
87 87
88 if (child_process == NULL) { 88 if (child_process == NULL) {
89 printf (_("Unable to open pipe: %s"), comm); 89 printf (_("Could not open pipe: %s\n"), comm);
90 return STATE_UNKNOWN; 90 return STATE_UNKNOWN;
91 } 91 }
92 92
@@ -145,7 +145,7 @@ main (int argc, char **argv)
145 eol[0] = 0; 145 eol[0] = 0;
146 if (service[commands] && status_text 146 if (service[commands] && status_text
147 && sscanf (status_text, "STATUS CODE: %d", &cresult) == 1) { 147 && sscanf (status_text, "STATUS CODE: %d", &cresult) == 1) {
148 fprintf (fp, _("[%d] PROCESS_SERVICE_CHECK_RESULT;%s;%s;%d;%s\n"), 148 fprintf (fp, "[%d] PROCESS_SERVICE_CHECK_RESULT;%s;%s;%d;%s\n",
149 (int) local_time, host_shortname, service[commands++], cresult, 149 (int) local_time, host_shortname, service[commands++], cresult,
150 output); 150 output);
151 } 151 }
@@ -232,13 +232,13 @@ process_arguments (int argc, char **argv)
232 break; 232 break;
233 case 't': /* timeout period */ 233 case 't': /* timeout period */
234 if (!is_integer (optarg)) 234 if (!is_integer (optarg))
235 usage2 (_("timeout interval must be an integer"), optarg); 235 usage2 (_("Timeout interval must be a positive integer"), optarg);
236 else 236 else
237 timeout_interval = atoi (optarg); 237 timeout_interval = atoi (optarg);
238 break; 238 break;
239 case 'H': /* host */ 239 case 'H': /* host */
240 if (!is_host (optarg)) 240 if (!is_host (optarg))
241 usage2 (_("invalid host name"), optarg); 241 usage2 (_("Invalid host name"), optarg);
242 hostname = optarg; 242 hostname = optarg;
243 break; 243 break;
244 case 'p': /* port number */ 244 case 'p': /* port number */