aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2011-11-15 00:01:20 +0000
committerPetter Reinholdtsen <pere@hungry.com>2011-11-15 00:01:20 +0000
commitdd340e3a085adda86462e3e42cb2ca4d644f1869 (patch)
tree73760fbada27a539e86951a17e8db3920ded0903
parent0ea0a7ebe8d225ae4c5a022548974a6075abab89 (diff)
downloadsitesummary-dd340e3a085adda86462e3e42cb2ca4d644f1869.tar.gz
sitesummary-dd340e3a085adda86462e3e42cb2ca4d644f1869.tar.bz2
sitesummary-dd340e3a085adda86462e3e42cb2ca4d644f1869.tar.xz
Adjust nagios-plugins/check_cups_queue to enforce the C locale
is used to get age calculation working independent of system locale.
-rw-r--r--debian/changelog4
-rwxr-xr-xnagios-plugins/check_cups_queue4
2 files changed, 6 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog
index 1640421..7d5ade3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,10 +1,14 @@
sitesummary (0.0.70) UNRELEASED; urgency=low
+ [ Petter Reinholdtsen ]
* Improve LDAP server Nagios check, not only checking if the TCP
port is listening, but also check if the server will reply to
searches for the root DSE.
* Adjust sitesummary-nodes code for generating Nagios configuration
to avoid perl warnings when no default route is set for a host.
+ * Adjust nagios-plugins/check_cups_queue to enforce the C locale
+ is used to get age calculation working independent of system
+ locale.
-- Petter Reinholdtsen <pere@debian.org> Mon, 14 Nov 2011 11:42:16 +0100
diff --git a/nagios-plugins/check_cups_queue b/nagios-plugins/check_cups_queue
index 859a10a..4666bc8 100755
--- a/nagios-plugins/check_cups_queue
+++ b/nagios-plugins/check_cups_queue
@@ -16,8 +16,8 @@
# Location of the lpstat command (if not in path)
LPSTAT="/usr/bin/lpstat"
-
-
+# Ensure known locale
+export LC_ALL=C
# Don't change anything below here