[Nagiosplug-checkins] CVS: nagiosplug/plugins check_fping.c,1.5,1.6 check_snmp.c,1.28,1.29
Karl DeBisschop
kdebisschop at users.sourceforge.net
Sat Aug 2 11:23:02 CEST 2003
- Previous message: [Nagiosplug-checkins] CVS: nagiosplug/plugins check_by_ssh.c,1.12,1.13 check_dig.c,1.13,1.14 check_disk.c,1.28,1.29 check_dns.c,1.17,1.18 check_dummy.c,1.3,1.4 check_pgsql.c,1.12,1.13 check_swap.c,1.14,1.15 check_tcp.c,1.30,1.31 utils.h,1.6,1.7
- Next message: [Nagiosplug-checkins] CVS: nagiosplug/plugins utils.c,1.25,1.26 utils.h,1.7,1.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv26554
Modified Files:
check_fping.c check_snmp.c
Log Message:
markup for translation
Index: check_fping.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_fping.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** check_fping.c 11 Mar 2003 22:22:09 -0000 1.5
--- check_fping.c 2 Aug 2003 18:22:15 -0000 1.6
***************
*** 23,37 ****
* Description:
*
! * This plugin will use the /bin/fping command (form saint) to ping
* the specified host for a fast check if the host is alive. Note that
* it is necessary to set the suid flag on fping.
******************************************************************************/
! #include "config.h"
#include "common.h"
#include "popen.h"
#include "utils.h"
- const char *progname = "check_fping";
#define PACKET_COUNT 1
#define PACKET_SIZE 56
--- 23,40 ----
* Description:
*
! * This plugin will use the /bin/fping command (from saint) to ping
* the specified host for a fast check if the host is alive. Note that
* it is necessary to set the suid flag on fping.
******************************************************************************/
! const char *progname = "check_fping";
! const char *revision = "$Revision$";
! const char *copyright = "1999-2003";
! const char *email = "nagiosplug-devel at lists.sourceforge.net";
!
#include "common.h"
#include "popen.h"
#include "utils.h"
#define PACKET_COUNT 1
#define PACKET_SIZE 56
***************
*** 42,50 ****
#define RTA 1
int textscan (char *buf);
int process_arguments (int, char **);
int get_threshold (char *arg, char *rv[2]);
- void print_usage (void);
- void print_help (void);
char *server_name = NULL;
--- 45,96 ----
#define RTA 1
+ void
+ print_usage (void)
+ {
+ printf (_("Usage: %s <host_address>\n"), progname);
+ }
+
+ void
+ print_help (void)
+ {
+
+ print_revision (progname, "$Revision$");
+
+ printf (_("\
+ Copyright (c) 1999 Didi Rieder (adrieder at sbox.tu-graz.ac.at)\n\n\
+ This plugin will use the /bin/fping command (from saint) to ping the\n\
+ specified host for a fast check if the host is alive. Note that it is\n\
+ necessary to set the suid flag on fping.\n\n"));
+
+ print_usage ();
+
+ printf (_(UT_HELP_VRSN));
+
+ printf (_("\
+ -H, --hostname=HOST\n\
+ Name or IP Address of host to ping (IP Address bypasses name lookup,\n\
+ reducing system load)\n\
+ -w, --warning=THRESHOLD\n\
+ warning threshold pair\n\
+ -c, --critical=THRESHOLD\n\
+ critical threshold pair\n\
+ -b, --bytes=INTEGER\n\
+ Size of ICMP packet (default: %d)\n\
+ -n, --number=INTEGER\n\
+ Number of ICMP packets to send (default: %d)\n"),
+ PACKET_SIZE, PACKET_COUNT);
+
+ printf (_(UT_VERBOSE));
+
+ printf (_("\n\
+ THRESHOLD is <rta>,<pl>%% where <rta> is the round trip average travel\n\
+ time (ms) which triggers a WARNING or CRITICAL state, and <pl> is the\n\
+ percentage of packet loss to trigger an alarm state.\n"));
+
+ }
+
int textscan (char *buf);
int process_arguments (int, char **);
int get_threshold (char *arg, char *rv[2]);
char *server_name = NULL;
***************
*** 343,398 ****
return OK;
- }
-
-
-
-
-
- void
- print_usage (void)
- {
- printf ("Usage: %s <host_address>\n", progname);
- }
-
-
-
-
-
- void
- print_help (void)
- {
-
- print_revision (progname, "$Revision$");
-
- printf
- ("Copyright (c) 1999 Didi Rieder (adrieder at sbox.tu-graz.ac.at)\n\n"
- "This plugin will use the /bin/fping command (from saint) to ping the\n"
- "specified host for a fast check if the host is alive. Note that it is\n"
- "necessary to set the suid flag on fping.\n\n");
-
- print_usage ();
-
- printf
- ("\nOptions:\n"
- "-H, --hostname=HOST\n"
- " Name or IP Address of host to ping (IP Address bypasses name lookup,\n"
- " reducing system load)\n"
- "-w, --warning=THRESHOLD\n"
- " warning threshold pair\n"
- "-c, --critical=THRESHOLD\n"
- " critical threshold pair\n"
- "-b, --bytes=INTEGER\n"
- " Size of ICMP packet (default: %d)\n"
- "-n, --number=INTEGER\n"
- " Number of ICMP packets to send (default: %d)\n"
- "-v, --verbose\n"
- " Show details for command-line debugging (do not use with nagios server)\n"
- "-h, --help\n"
- " Print this help screen\n"
- "-V, --version\n"
- " Print version information\n"
- "THRESHOLD is <rta>,<pl>%% where <rta> is the round trip average travel\n"
- "time (ms) which triggers a WARNING or CRITICAL state, and <pl> is the\n"
- "percentage of packet loss to trigger an alarm state.\n",
- PACKET_SIZE, PACKET_COUNT);
}
--- 389,391 ----
Index: check_snmp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_snmp.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -r1.28 -r1.29
*** check_snmp.c 2 Aug 2003 16:42:48 -0000 1.28
--- check_snmp.c 2 Aug 2003 18:22:15 -0000 1.29
***************
*** 66,70 ****
printf (_("\
! Check status of remote machines and obtain sustem information via SNMP"));
print_usage ();
--- 66,70 ----
printf (_("\
! Check status of remote machines and obtain sustem information via SNMP\n\n"));
print_usage ();
***************
*** 134,138 ****
printf (_(UT_VERBOSE));
! printf (_("\
- This plugin uses the 'snmpget' command included with the NET-SNMP package.\n\
If you don't have the package installed, you will need to download it from\n\
--- 134,138 ----
printf (_(UT_VERBOSE));
! printf (_("\n\
- This plugin uses the 'snmpget' command included with the NET-SNMP package.\n\
If you don't have the package installed, you will need to download it from\n\
- Previous message: [Nagiosplug-checkins] CVS: nagiosplug/plugins check_by_ssh.c,1.12,1.13 check_dig.c,1.13,1.14 check_disk.c,1.28,1.29 check_dns.c,1.17,1.18 check_dummy.c,1.3,1.4 check_pgsql.c,1.12,1.13 check_swap.c,1.14,1.15 check_tcp.c,1.30,1.31 utils.h,1.6,1.7
- Next message: [Nagiosplug-checkins] CVS: nagiosplug/plugins utils.c,1.25,1.26 utils.h,1.7,1.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Commits
mailing list