diff options
Diffstat (limited to 'plugins/check_time.c')
-rw-r--r-- | plugins/check_time.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_time.c b/plugins/check_time.c index b3210bc..dde6eea 100644 --- a/plugins/check_time.c +++ b/plugins/check_time.c | |||
@@ -119,7 +119,7 @@ main (int argc, char **argv) | |||
119 | result = STATE_WARNING; | 119 | result = STATE_WARNING; |
120 | else | 120 | else |
121 | result = STATE_UNKNOWN; | 121 | result = STATE_UNKNOWN; |
122 | terminate (result, | 122 | die (result, |
123 | _("TIME UNKNOWN - could not connect to server %s, port %d\n"), | 123 | _("TIME UNKNOWN - could not connect to server %s, port %d\n"), |
124 | server_address, server_port); | 124 | server_address, server_port); |
125 | } | 125 | } |
@@ -142,7 +142,7 @@ main (int argc, char **argv) | |||
142 | result = STATE_WARNING; | 142 | result = STATE_WARNING; |
143 | else | 143 | else |
144 | result = STATE_UNKNOWN; | 144 | result = STATE_UNKNOWN; |
145 | terminate (result, | 145 | die (result, |
146 | _("TIME UNKNOWN - no data on recv() from server %s, port %d\n"), | 146 | _("TIME UNKNOWN - no data on recv() from server %s, port %d\n"), |
147 | server_address, server_port); | 147 | server_address, server_port); |
148 | } | 148 | } |
@@ -155,7 +155,7 @@ main (int argc, char **argv) | |||
155 | && (end_time - start_time) > warning_time) result = STATE_WARNING; | 155 | && (end_time - start_time) > warning_time) result = STATE_WARNING; |
156 | 156 | ||
157 | if (result != STATE_OK) | 157 | if (result != STATE_OK) |
158 | terminate (result, _("TIME %s - %d second response time\n"), | 158 | die (result, _("TIME %s - %d second response time\n"), |
159 | state_text (result), (int) (end_time - start_time)); | 159 | state_text (result), (int) (end_time - start_time)); |
160 | 160 | ||
161 | server_time = ntohl (raw_server_time) - UNIX_EPOCH; | 161 | server_time = ntohl (raw_server_time) - UNIX_EPOCH; |