diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-07 11:51:12 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-07 11:51:12 +0000 |
commit | 9e17dab6c3e4b4e7142f3ea5b2a60fcd488dc709 (patch) | |
tree | cb5831f4c018edc441686b2fe7715eb91de4ffee /plugins/check_time.c | |
parent | 7f1bb2a782a008b55b0ef657ec01d7fbdb637fd4 (diff) | |
download | monitoring-plugins-9e17dab6c3e4b4e7142f3ea5b2a60fcd488dc709.tar.gz |
replace "terminate" with "die" for shorter name and better readability
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@656 f882894a-f735-0410-b71e-b25c423dba1c
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 b3210bc3..dde6eeaf 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; |