aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_nwstat.c
diff options
context:
space:
mode:
authorGravatar Benoit Mortier <opensides@users.sourceforge.net> 2004-12-01 23:54:51 +0000
committerGravatar Benoit Mortier <opensides@users.sourceforge.net> 2004-12-01 23:54:51 +0000
commitd19edd4043c498626fe68308005947975ef0a697 (patch)
tree7a213ee16f9331e928b1c32aa6c521c05519db58 /plugins/check_nwstat.c
parent1d8128e328f714258b7fec0c62245e1d187e0439 (diff)
downloadmonitoring-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_nwstat.c')
-rw-r--r--plugins/check_nwstat.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/plugins/check_nwstat.c b/plugins/check_nwstat.c
index 46bc7e90..ec5d5d6c 100644
--- a/plugins/check_nwstat.c
+++ b/plugins/check_nwstat.c
@@ -14,6 +14,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ $Id$
+
******************************************************************************/
const char *progname = "check_nwstat";
@@ -80,9 +82,6 @@ void print_usage(void);
-
-
-
int
main(int argc, char **argv) {
int result;
@@ -123,7 +122,7 @@ main(int argc, char **argv) {
textdomain (PACKAGE);
if (process_arguments(argc,argv)==ERROR)
- usage(_("Could not parse arguments\n"));
+ usage(_("check_nwstat: could not parse arguments\n"));
/* initialize alarm signal handling */
signal(SIGALRM,socket_timeout_alarm_handler);
@@ -609,10 +608,10 @@ main(int argc, char **argv) {
if (time_sync_status==0) {
result=STATE_CRITICAL;
- asprintf (&output_message,_("Critical: Time not in sync with network!"));
+ asprintf (&output_message,_("CRITICAL - Time not in sync with network!"));
}
else {
- asprintf (&output_message,_("OK! Time in sync with network!"));
+ asprintf (&output_message,_("OK - Time in sync with network!"));
}
/* check LRU sitting time in secondss */
@@ -710,7 +709,9 @@ main(int argc, char **argv) {
return result;
}
-
+
+
+
/* process command-line arguments */
int process_arguments(int argc, char **argv) {
int c;
@@ -896,9 +897,6 @@ int process_arguments(int argc, char **argv) {
-
-
-
void print_help(void)
{
char *myport;
@@ -987,7 +985,6 @@ Notes:\n\
-
void print_usage(void)
{
printf (_("\