diff options
author | Benoit Mortier <opensides@users.sourceforge.net> | 2004-12-01 23:54:51 (GMT) |
---|---|---|
committer | Benoit Mortier <opensides@users.sourceforge.net> | 2004-12-01 23:54:51 (GMT) |
commit | d19edd4043c498626fe68308005947975ef0a697 (patch) | |
tree | 7a213ee16f9331e928b1c32aa6c521c05519db58 /plugins/check_nt.c | |
parent | 1d8128e328f714258b7fec0c62245e1d187e0439 (diff) | |
download | monitoring-plugins-d19edd4043c498626fe68308005947975ef0a697.tar.gz |
standardize localization string
standardize unknow arguments
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@969 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_nt.c')
-rw-r--r-- | plugins/check_nt.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/plugins/check_nt.c b/plugins/check_nt.c index 8d66092..84b78bc 100644 --- a/plugins/check_nt.c +++ b/plugins/check_nt.c | |||
@@ -26,6 +26,8 @@ | |||
26 | * along with this program; if not, write to the Free Software | 26 | * along with this program; if not, write to the Free Software |
27 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 27 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
28 | * | 28 | * |
29 | * $Id$ | ||
30 | * | ||
29 | *****************************************************************************/ | 31 | *****************************************************************************/ |
30 | 32 | ||
31 | #include "common.h" | 33 | #include "common.h" |
@@ -109,7 +111,7 @@ int main(int argc, char **argv){ | |||
109 | textdomain (PACKAGE); | 111 | textdomain (PACKAGE); |
110 | 112 | ||
111 | if(process_arguments(argc,argv)==ERROR) | 113 | if(process_arguments(argc,argv)==ERROR) |
112 | usage(_("Could not parse arguments\n")); | 114 | usage(_("check_nt: could not parse arguments\n")); |
113 | 115 | ||
114 | /* initialize alarm signal handling */ | 116 | /* initialize alarm signal handling */ |
115 | signal(SIGALRM,socket_timeout_alarm_handler); | 117 | signal(SIGALRM,socket_timeout_alarm_handler); |
@@ -188,7 +190,7 @@ int main(int argc, char **argv){ | |||
188 | updays = uptime / 86400; | 190 | updays = uptime / 86400; |
189 | uphours = (uptime % 86400) / 3600; | 191 | uphours = (uptime % 86400) / 3600; |
190 | upminutes = ((uptime % 86400) % 3600) / 60; | 192 | upminutes = ((uptime % 86400) % 3600) / 60; |
191 | asprintf(&output_message,_("System Uptime : %u day(s) %u hour(s) %u minute(s)"),updays,uphours, upminutes); | 193 | asprintf(&output_message,_("System Uptime - %u day(s) %u hour(s) %u minute(s)"),updays,uphours, upminutes); |
192 | return_code=STATE_OK; | 194 | return_code=STATE_OK; |
193 | break; | 195 | break; |
194 | 196 | ||
@@ -427,9 +429,6 @@ int main(int argc, char **argv){ | |||
427 | 429 | ||
428 | 430 | ||
429 | 431 | ||
430 | |||
431 | |||
432 | |||
433 | /* process command-line arguments */ | 432 | /* process command-line arguments */ |
434 | int process_arguments(int argc, char **argv){ | 433 | int process_arguments(int argc, char **argv){ |
435 | int c; | 434 | int c; |
@@ -557,9 +556,6 @@ int process_arguments(int argc, char **argv){ | |||
557 | 556 | ||
558 | 557 | ||
559 | 558 | ||
560 | |||
561 | |||
562 | |||
563 | void fetch_data (const char *address, int port, const char *sendb) { | 559 | void fetch_data (const char *address, int port, const char *sendb) { |
564 | int result; | 560 | int result; |
565 | 561 | ||
@@ -603,9 +599,6 @@ void preparelist(char *string) { | |||
603 | 599 | ||
604 | 600 | ||
605 | 601 | ||
606 | |||
607 | |||
608 | |||
609 | void print_help(void) | 602 | void print_help(void) |
610 | { | 603 | { |
611 | print_revision(progname,"$Revision$"); | 604 | print_revision(progname,"$Revision$"); |
@@ -681,7 +674,6 @@ Windows NT/2000/XP server.\n\n")); | |||
681 | 674 | ||
682 | 675 | ||
683 | 676 | ||
684 | |||
685 | void print_usage(void) | 677 | void print_usage(void) |
686 | { | 678 | { |
687 | printf(_("\ | 679 | printf(_("\ |