summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3acc7c3)
raw | patch | inline | side by side (parent: 3acc7c3)
author | Benoit Mortier <opensides@users.sourceforge.net> | |
Thu, 2 Dec 2004 21:23:50 +0000 (21:23 +0000) | ||
committer | Benoit Mortier <opensides@users.sourceforge.net> | |
Thu, 2 Dec 2004 21:23:50 +0000 (21:23 +0000) |
check_ldap without this patch.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@981 f882894a-f735-0410-b71e-b25c423dba1c
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@981 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_dns.c | patch | blob | history | |
plugins/check_ldap.c | patch | blob | history | |
plugins/check_procs.c | patch | blob | history |
diff --git a/plugins/check_dns.c b/plugins/check_dns.c
index 070223e7d70b973bb9d0ffc0134fa8522c74caef..aaa3f12d830356dc8dc3884b29cd2031374f4a4b 100644 (file)
--- a/plugins/check_dns.c
+++ b/plugins/check_dns.c
multi_address = TRUE;
printf ("DNS %s: ", _("OK"));
- printf (ngettext("%.3f second response time, ", "%.3f seconds response time, ", elapsed_time), elapsed_time);
+ printf (_("%.3f seconds response time"), elapsed_time);
printf (_("%s returns %s"), query_address, address);
printf ("|%s\n", fperfdata ("time", elapsed_time, "s", FALSE, 0, FALSE, 0, TRUE, 0, FALSE, 0));
}
diff --git a/plugins/check_ldap.c b/plugins/check_ldap.c
index 9c41cc302cfdca9007052890bc65e8fda09484ab..b12a0edba776af0c5dc5077bcb141d039839bbf1 100644 (file)
--- a/plugins/check_ldap.c
+++ b/plugins/check_ldap.c
Usage: %s -H <host> -b <base_dn> [-p <port>] [-a <attr>] [-D <binddn>]\n\
[-P <password>] [-w <warn_time>] [-c <crit_time>] [-t timeout]%s\n\
(Note: all times are in seconds.)\n"),
- progname, (HAVE_LDAP_SET_OPTION ? "[-2|-3] [-4|-6]" : ""));
+ progname,
+#ifdef HAVE_LDAP_SET_OPTION
+ " [-2|-3] [-4|-6]"
+#else
+ ""
+#endif
+ );
+
printf (_(UT_HLP_VRS), progname, progname);
}
diff --git a/plugins/check_procs.c b/plugins/check_procs.c
index 4bc87c0a63493f89b67b8fdab60eac8f787fbf77..5448842ccbade6728dda7ce201889ada755bfb8a 100644 (file)
--- a/plugins/check_procs.c
+++ b/plugins/check_procs.c
printf (_("%d crit, %d warn out of "), crit, warn);
}
}
- printf (ngettext ("%d process", "%d processes", (unsigned long) procs), procs);
+ printf ("%d %s", procs, procs == 1 ? _("process") : _("processes"));
if (strcmp(fmt,"") != 0) {
printf (_(" with %s"), fmt);