diff --git a/plugins/netutils.c b/plugins/netutils.c
index 6702b13f25250439416549681e85f5aa98a8d316..1231c1efe87e67c71135955dc4d80c0ac19664c5 100644 (file)
--- a/plugins/netutils.c
+++ b/plugins/netutils.c
socket_timeout_alarm_handler (int sig)
{
if (sig == SIGALRM)
- printf ("CRITICAL - Socket timeout after %d seconds\n", socket_timeout);
+ printf (_("CRITICAL - Socket timeout after %d seconds\n"), socket_timeout);
else
- printf ("CRITICAL - Abnormal timeout after %d seconds\n", socket_timeout);
+ printf (_("CRITICAL - Abnormal timeout after %d seconds\n"), socket_timeout);
exit (STATE_CRITICAL);
}
send_result = send (sd, send_buffer, strlen (send_buffer), 0);
if (send_result<0 || (size_t)send_result!=strlen(send_buffer)) {
- printf ("Send failed\n");
+ printf (_("Send failed\n"));
result = STATE_WARNING;
}
if (!FD_ISSET (sd, &readfds)) { /* it hasn't */
if (!recv_length) {
strcpy (recv_buffer, "");
- printf ("No data was received from host!\n");
+ printf (_("No data was received from host!\n"));
result = STATE_WARNING;
}
else { /* this one failed, but previous ones worked */
SOCK_DGRAM : SOCK_STREAM, res->ai_protocol);
if (*sd < 0) {
- printf ("Socket creation failed\n");
+ printf (_("Socket creation failed\n"));
freeaddrinfo (res);
return STATE_UNKNOWN;
}
@@ -315,7 +315,7 @@ send_request (int sd, int proto, const char *send_buffer, char *recv_buffer, int
send_result = send (sd, send_buffer, strlen (send_buffer), 0);
if (send_result<0 || (size_t)send_result!=strlen(send_buffer)) {
- printf ("Send failed\n");
+ printf (_("Send failed\n"));
result = STATE_WARNING;
}
@@ -330,7 +330,7 @@ send_request (int sd, int proto, const char *send_buffer, char *recv_buffer, int
/* make sure some data has arrived */
if (!FD_ISSET (sd, &readfds)) {
strcpy (recv_buffer, "");
- printf ("No data was received from host!\n");
+ printf (_("No data was received from host!\n"));
result = STATE_WARNING;
}
@@ -339,7 +339,7 @@ send_request (int sd, int proto, const char *send_buffer, char *recv_buffer, int
if (recv_result == -1) {
strcpy (recv_buffer, "");
if (proto != IPPROTO_TCP)
- printf ("Receive failed\n");
+ printf (_("Receive failed\n"));
result = STATE_WARNING;
}
else