Module: check_mk
Branch: master
Commit: 7b326bd31e3731cf8cc04510fc820a83909d3dbe
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7b326bd31e3731…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Aug 15 22:52:48 2011 +0200
Solaris agent: unset LANG, like in Linux agent
---
ChangeLog | 1 +
agents/check_mk_agent.solaris | 4 ++++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 348678d..d2da9ee 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -25,6 +25,7 @@
* FIX: cisco_temp_perf: add critical level to performance data
* FIX: windows agent: hopefully fix case with quotes in directory name
* FIX: printer_supply: fixed logic of Perf-O-Meter (mixed up crit with ok)
+ * FIX: Solaris agent: reset localization to C, fixes problems with statgrab
* snmp_uptime, snmp_info: added scan functions. These checks will now
always be added. Please use ingored_checktypes to disable, if non needed.
* brocade_port: check for Brocade FC ports has been rewritten with
diff --git a/agents/check_mk_agent.solaris b/agents/check_mk_agent.solaris
index 544842b..f1e04c7 100755
--- a/agents/check_mk_agent.solaris
+++ b/agents/check_mk_agent.solaris
@@ -23,6 +23,10 @@
# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA.
+# Remove locale settings to eliminate localized outputs where possible
+export LC_ALL=C
+unset LANG
+
MK_LIBDIR="/to/be/changed"
MK_CONFDIR="/to/be/changed"
export MK_LIBDIR MK_CONFDIR