summaryrefslogtreecommitdiffstats
path: root/plugins/check_nt.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_nt.c')
-rw-r--r--plugins/check_nt.c16
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 */
434int process_arguments(int argc, char **argv){ 433int 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
563void fetch_data (const char *address, int port, const char *sendb) { 559void 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
609void print_help(void) 602void 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
685void print_usage(void) 677void print_usage(void)
686{ 678{
687 printf(_("\ 679 printf(_("\