[omd-commits] OMD Git: omd: unset LANG in etc/init.d/nagios

git version control git at mathias-kettner.de
Tue Dec 13 11:40:07 CET 2011


Module:   omd
Branch:   master
Commit:   ff02844370b4976cd03a45afa019e9aac9e075b0
URL:      http://omdistro.org/projects/omd/repository/revisions/ff02844370b4976cd03a45afa019e9aac9e075b0

Author:   Mathias Kettner <mk at mathias-kettner.de>
Date:     Fri Dec  9 09:08:06 2011 +0100
Commiter: Mathias Kettner <mk at mathias-kettner.de>
Date:     Fri Dec  9 09:08:06 2011 +0100

unset LANG in etc/init.d/nagios

Plugin output of e.g. check_icmp would use comma
in perf data otherwise, if Nagios is restarted
via etc/init.d/nagios (e.g. when doing cmk -R).

---

 packages/nagios/skel/etc/init.d/nagios |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/packages/nagios/skel/etc/init.d/nagios b/packages/nagios/skel/etc/init.d/nagios
index d1e402c..54de800 100755
--- a/packages/nagios/skel/etc/init.d/nagios
+++ b/packages/nagios/skel/etc/init.d/nagios
@@ -47,6 +47,11 @@ STATUS_DAT=###ROOT###/tmp/nagios/status.dat
 USR=###SITE###
 GRP=###SITE###
 
+# Make sure that check plugins do not run localized.
+# check_icmp outputs performance data with german
+# comma instead of dot and makes it unparsable.
+unset LANG
+
 # OMD: create configuration file out of fragments
 case "$1" in start|restart|reload|checkconfig|check)
     merge-nagios-config \



More information about the omd-commits mailing list