summaryrefslogtreecommitdiffstats
path: root/plugins/check_nt.c
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-04-27 14:35:26 (GMT)
committerThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-04-27 14:35:26 (GMT)
commited62784a0b68959fd13fe5bc53a5aef4f17fbffa (patch)
treef479a5b8ad8cac8d6dcc506ba61aa5ec3fbb5bb3 /plugins/check_nt.c
parent140a93ce6bce63df2d70841f2f78aa968ea997d6 (diff)
downloadmonitoring-plugins-ed62784a0b68959fd13fe5bc53a5aef4f17fbffa.tar.gz
--help output cleanup (plus removal of spaces on blank lines)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1984 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_nt.c')
-rw-r--r--plugins/check_nt.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/plugins/check_nt.c b/plugins/check_nt.c
index 60d58fd..681b842 100644
--- a/plugins/check_nt.c
+++ b/plugins/check_nt.c
@@ -157,7 +157,7 @@ int main(int argc, char **argv){
157 return_code=STATE_OK; 157 return_code=STATE_OK;
158 temp_string = strdup (_("CPU Load")); 158 temp_string = strdup (_("CPU Load"));
159 temp_string_perf = strdup (" "); 159 temp_string_perf = strdup (" ");
160 160
161 /* loop until one of the parameters is wrong or not present */ 161 /* loop until one of the parameters is wrong or not present */
162 while (lvalue_list[0+offset]> (unsigned long)0 && 162 while (lvalue_list[0+offset]> (unsigned long)0 &&
163 lvalue_list[0+offset]<=(unsigned long)17280 && 163 lvalue_list[0+offset]<=(unsigned long)17280 &&
@@ -185,7 +185,7 @@ int main(int argc, char **argv){
185 asprintf(&temp_string_perf,"%s%s",temp_string_perf,perfdata); 185 asprintf(&temp_string_perf,"%s%s",temp_string_perf,perfdata);
186 offset+=3; /* move across the array */ 186 offset+=3; /* move across the array */
187 } 187 }
188 188
189 if (strlen(temp_string)>10) { /* we had at least one loop */ 189 if (strlen(temp_string)>10) { /* we had at least one loop */
190 output_message = strdup (temp_string); 190 output_message = strdup (temp_string);
191 perfdata = temp_string_perf; 191 perfdata = temp_string_perf;
@@ -640,7 +640,7 @@ void print_help(void)
640 printf ("%s\n", _("Windows NT/2000/XP/2003 server.")); 640 printf ("%s\n", _("Windows NT/2000/XP/2003 server."));
641 641
642 printf ("\n\n"); 642 printf ("\n\n");
643 643
644 print_usage(); 644 print_usage();
645 645
646 printf (_(UT_HELP_VRSN)); 646 printf (_(UT_HELP_VRSN));
@@ -720,14 +720,17 @@ void print_help(void)
720 printf (" %s\n", _(" configuration files.")); 720 printf (" %s\n", _(" configuration files."));
721 printf (" %s\n", _("Some examples:")); 721 printf (" %s\n", _("Some examples:"));
722 printf (" %s\n\n", _("check_nt -H 192.168.1.1 -p 1248 -v INSTANCES -l Process")); 722 printf (" %s\n\n", _("check_nt -H 192.168.1.1 -p 1248 -v INSTANCES -l Process"));
723 printf (_("Notes:")); 723
724 printf ("%s\n", _("Notes:"));
724 printf (" %s\n", _("- The NSClient service should be running on the server to get any information")); 725 printf (" %s\n", _("- The NSClient service should be running on the server to get any information"));
725 printf (" %s\n", "(http://nsclient.ready2run.nl)."); 726 printf (" %s\n", "(http://nsclient.ready2run.nl).");
726 printf (" %s\n", _("- Critical thresholds should be lower than warning thresholds")); 727 printf (" %s\n", _("- Critical thresholds should be lower than warning thresholds"));
727 printf (" %s\n", _("- Default port 1248 is sometimes in use by other services. The error")); 728 printf (" %s\n", _("- Default port 1248 is sometimes in use by other services. The error"));
728 printf (" %s\n", _("output when this happens contains \"Cannot map xxxxx to protocol number\".")); 729 printf (" %s\n", _("output when this happens contains \"Cannot map xxxxx to protocol number\"."));
729 printf (" %s\n", _("One fix for this is to change the port to something else on check_nt ")); 730 printf (" %s\n", _("One fix for this is to change the port to something else on check_nt "));
730 printf (" %s\n", _("and on the client service it\'s connecting to.")); 731 printf (" %s\n", _("and on the client service it\'s connecting to."));
732
733 printf (_(UT_SUPPORT));
731} 734}
732 735
733 736