Code

Standardize the extra-opts notes
[nagiosplug.git] / plugins / check_mrtgtraf.c
index 1911d568abdae606a5c8b1f511c8c145724a7d82..4fd9bc0a72e2dea17ae62737e10e2783a60cd762 100644 (file)
@@ -5,8 +5,6 @@
 * License: GPL
 * Copyright (c) 1999-2007 Nagios Plugins Development Team
 * 
-* Last Modified: $Date$
-* 
 * Description:
 * 
 * This file contains the check_mtrgtraf plugin
@@ -28,7 +26,6 @@
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
-* $Id$
 * 
 *****************************************************************************/
 
@@ -36,7 +33,6 @@
 #include "utils.h"
 
 const char *progname = "check_mrtgtraf";
-const char *revision = "$Revision$";
 const char *copyright = "1999-2007";
 const char *email = "nagiosplug-devel@lists.sourceforge.net";
 
@@ -203,7 +199,7 @@ main (int argc, char **argv)
                           (int)incoming_warning_threshold, incoming_warning_threshold,
                           (int)incoming_critical_threshold, incoming_critical_threshold,
                           TRUE, 0, FALSE, 0),
-                 fperfdata("in", adjusted_outgoing_rate, outgoing_speed_rating,
+                 fperfdata("out", adjusted_outgoing_rate, outgoing_speed_rating,
                           (int)outgoing_warning_threshold, outgoing_warning_threshold,
                           (int)outgoing_critical_threshold, outgoing_critical_threshold,
                           TRUE, 0, FALSE, 0));
@@ -273,7 +269,7 @@ process_arguments (int argc, char **argv)
                                                        &outgoing_warning_threshold);
                        break;
                case 'V':                                                                       /* version */
-                       print_revision (progname, revision);
+                       print_revision (progname, NP_VERSION);
                        exit (STATE_OK);
                case 'h':                                                                       /* help */
                        print_help ();
@@ -331,7 +327,7 @@ validate_arguments (void)
 void
 print_help (void)
 {
-       print_revision (progname, revision);
+       print_revision (progname, NP_VERSION);
 
        printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n");
        printf (COPYRIGHT, copyright, email);
@@ -347,8 +343,8 @@ print_help (void)
 
        print_usage ();
 
-       printf (_(UT_HELP_VRSN));
-       printf (_(UT_EXTRA_OPTS));
+       printf (UT_HELP_VRSN);
+       printf (UT_EXTRA_OPTS);
 
        printf (" %s\n", "-F, --filename=STRING");
   printf ("    %s\n", _("File to read log from"));
@@ -370,11 +366,8 @@ print_help (void)
   printf (" %s\n", _("- The calculated i/o rates are a little off from what MRTG actually"));
   printf (" %s\n", _("  reports.  I'm not sure why this is right now, but will look into it"));
   printf (" %s\n", _("  for future enhancements of this plugin."));
-#ifdef NP_EXTRA_OPTS
-       printf (" -%s", _(UT_EXTRA_OPTS_NOTES));
-#endif
 
-       printf (_(UT_SUPPORT));
+       printf (UT_SUPPORT);
 }