aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_time.c
diff options
context:
space:
mode:
authorGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2003-08-07 11:51:12 +0000
committerGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2003-08-07 11:51:12 +0000
commit9e17dab6c3e4b4e7142f3ea5b2a60fcd488dc709 (patch)
treecb5831f4c018edc441686b2fe7715eb91de4ffee /plugins/check_time.c
parent7f1bb2a782a008b55b0ef657ec01d7fbdb637fd4 (diff)
downloadmonitoring-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.c6
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)
result = STATE_WARNING;
else
result = STATE_UNKNOWN;
- terminate (result,
+ die (result,
_("TIME UNKNOWN - could not connect to server %s, port %d\n"),
server_address, server_port);
}
@@ -142,7 +142,7 @@ main (int argc, char **argv)
result = STATE_WARNING;
else
result = STATE_UNKNOWN;
- terminate (result,
+ die (result,
_("TIME UNKNOWN - no data on recv() from server %s, port %d\n"),
server_address, server_port);
}
@@ -155,7 +155,7 @@ main (int argc, char **argv)
&& (end_time - start_time) > warning_time) result = STATE_WARNING;
if (result != STATE_OK)
- terminate (result, _("TIME %s - %d second response time\n"),
+ die (result, _("TIME %s - %d second response time\n"),
state_text (result), (int) (end_time - start_time));
server_time = ntohl (raw_server_time) - UNIX_EPOCH;