[omd-commits] OMD Git: omd: diskspace: Fixed error messages in syslog which were caused by exit codes != 0

git version control git at mathias-kettner.de
Tue Apr 22 19:19:04 CEST 2014


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

Author:   Lars Michelsen <lm at mathias-kettner.de>
Date:     Tue Apr 22 19:18:59 2014 +0200
Commiter: Lars Michelsen <lm at mathias-kettner.de>
Date:     Tue Apr 22 19:18:59 2014 +0200

diskspace: Fixed error messages in syslog which were caused by exit codes != 0

---

 Changelog                      |    2 ++
 packages/maintenance/diskspace |    2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/Changelog b/Changelog
index 498cf32..cfb1740 100644
--- a/Changelog
+++ b/Changelog
@@ -15,6 +15,8 @@ This file documents the revision history for the Open Monitoring Distribution
               reload of the system apache instead of a restart
             - Added nagios/icinga reload init hooks
             - FIX: Providing correct exit codes when running "omd status"
+          - diskspace: Fixed error messages in syslog which were caused by
+            exit codes of 3 when diskspace cleanup has not been configured
           - Check_MK/MK Livestatus: new version 1.2.4
           - Thruk: Update to 1.82
           - Dokuwiki: Fixed integration with multisite cookie authentication
diff --git a/packages/maintenance/diskspace b/packages/maintenance/diskspace
index fd90380..71560ff 100755
--- a/packages/maintenance/diskspace
+++ b/packages/maintenance/diskspace
@@ -192,7 +192,7 @@ read_config()
 
 if min_free_bytes is None:
     verbose('minimal free bytes (min_free_bytes) not configured. terminating.')
-    sys.exit(3)
+    sys.exit(0)
 
 try:
     main()



More information about the omd-commits mailing list