2017-12-17 16:30 CET

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0001863openmediavaultBugpublic2017-12-06 11:04
Reporterhenfri 
Assigned Tovotdev 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionno change required 
Product VersionArrakis (4.x) 
Target VersionFixed in Version 
Summary0001863: Error in Monit configuration
DescriptionHello,

after update to Arrakis, I have this error in the monit configuration:
root@homeserver:~# head /etc/monit/conf.d/openmediavault-filesystem.conf
# Alert if disk space of root filesystem gets low
check filesystem rootfs with path /
  if space usage > 93OMV_SHAREDFOLDERS_DIR=/sharedfolders% for 5 times within 15 cycles
    then alert else if succeeded for 10 cycles then alert

It seems, that a variable is not resolved.

omv-mkconf monit does not resolve this.
TagsNo tags attached.
Product build4.0
Attached Files
  • ? file icon openmediavault (2,759 bytes) 2017-12-06 07:20 -
    # This file is part of OpenMediaVault.
    #
    # @license   http://www.gnu.org/licenses/gpl.html GPL Version 3
    # @author    Volker Theile <volker.theile@openmediavault.org>
    # @copyright Copyright (c) 2009-2016 Volker Theile
    #
    # OpenMediaVault is free software: you can redistribute it and/or modify
    # it under the terms of the GNU General Public License as published by
    # the Free Software Foundation, either version 3 of the License, or
    # any later version.
    #
    # OpenMediaVault is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    # GNU General Public License for more details.
    #
    # You should have received a copy of the GNU General Public License
    # along with OpenMediaVault. If not, see <http://www.gnu.org/licenses/>.
    
    # Default values
    OMV_CONFIG_FILE="/etc/openmediavault/config.xml"
    OMV_CONFIG_TEMPLATE_FILE="/usr/share/openmediavault/templates/config.xml"
    OMV_PRODUCTINFO_FILE="/usr/share/openmediavault/productinfo.xml"
    OMV_SCRIPTS_DIR="/usr/share/openmediavault/scripts"
    OMV_DATAMODELS_DIR="/usr/share/openmediavault/datamodels"
    OMV_I18N_LOCALE_DIR="/usr/share/openmediavault/locale"
    OMV_MOUNT_DIR="/srv"
    OMV_NFSD_EXPORT_DIR="/export"
    OMV_CACHE_DIR="/var/cache/openmediavault"
    OMV_LOG_DIR="/var/log/openmediavault"
    OMV_SSL_CERTIFICATE_DIR="/etc/ssl"
    OMV_SSL_CERTIFICATE_PREFIX="openmediavault-"
    OMV_SSH_KEYS_DIR="/etc/ssh"
    OMV_SSH_KEY_PREFIX="openmediavault-"
    OMV_DPKGARCHIVE_DIR="/var/cache/openmediavault/archives"
    OMV_DOCUMENTROOT_DIR="/var/www/openmediavault"
    OMV_CRONSCRIPTS_DIR="/var/lib/openmediavault/cron.d"
    OMV_CONFIGIMPORT_SCRIPTS_DIR="/usr/share/openmediavault/configimport"
    OMV_MKCONF_SCRIPTS_DIR="/usr/share/openmediavault/mkconf"
    OMV_ENGINED_DIR="/usr/share/openmediavault/engined"
    OMV_ENGINED_SO_ADDRESS="/var/lib/openmediavault/engined.sock"
    OMV_ENGINED_SO_OWNERGROUP_NAME="openmediavault-engined"
    OMV_ENGINED_SO_SNDTIMEO=10
    OMV_ENGINED_SO_RCVTIMEO=180
    OMV_ENGINED_DIRTY_MODULES_FILE="/var/lib/openmediavault/dirtymodules.json"
    OMV_INITSYSTEM_SCRIPTS_DIR="/usr/share/openmediavault/initsystem"
    OMV_INITSYSTEM_FILE="/var/lib/openmediavault/initsystem.req"
    OMV_USERMGMT_DEFAULT_GROUP="users"
    OMV_RRDGRAPH_DIR="/var/lib/openmediavault/rrd"
    OMV_RRDGRAPH_ERROR_IMAGE="/usr/share/openmediavault/icons/rrd_graph_error_64.png"
    OMV_WEBGUI_FILE_OWNERGROUP_NAME="openmediavault-webgui"
    OMV_CONFIGOBJECT_NEW_UUID="fa4b1c66-ef79-11e5-87a0-0002b3a176b4"
    OMV_DEBUG_SCRIPT="NO"
    OMV_DEBUG_PHP="NO"
    OMV_DEBUG_EXTJS="NO"
    OMV_RSNAPSHOT_CONFS_DIR="/var/lib/openmediavault/rsnapshot.d"
    OMV_RSNAPSHOT_CRONSCRIPT="/var/lib/openmediavault/cron.d/rsnapshot"
    OMV_MONIT_SERVICE_FILESYSTEM_SPACEUSAGE=93OMV_SHAREDFOLDERS_DIR="/sharedfolders"
    
    ? file icon openmediavault (2,759 bytes) 2017-12-06 07:20 +

-Relationships
+Relationships

-Notes

~0005061

votdev (administrator)

Can you please post your /etc/default/openmediavault.

~0005062

henfri (reporter)

Here is the file. Thanks for looking ito it!

~0005063

votdev (administrator)

Last edited: 2017-12-06 11:04

View 3 revisions

The problem is that you did not add a empty line at the file end when you added the 'OMV_MONIT_SERVICE_FILESYSTEM_SPACEUSAGE' environment variable. This is common standard on Linux.

To fix your issue simply split the last line

OMV_MONIT_SERVICE_FILESYSTEM_SPACEUSAGE=93OMV_SHAREDFOLDERS_DIR="/sharedfolders"

into

OMV_MONIT_SERVICE_FILESYSTEM_SPACEUSAGE=93
OMV_SHAREDFOLDERS_DIR="/sharedfolders"

After that recreate the following configuration files:

# omv-mkconf monit
# omv-mkconf systemd
# systemctl reload monit.service

+Notes

-Issue History
Date Modified Username Field Change
2017-12-05 19:59 henfri New Issue
2017-12-05 19:59 henfri Status new => assigned
2017-12-05 19:59 henfri Assigned To => votdev
2017-12-05 22:41 votdev Note Added: 0005061
2017-12-06 07:20 henfri File Added: openmediavault
2017-12-06 07:21 henfri Note Added: 0005062
2017-12-06 11:02 votdev Note Added: 0005063
2017-12-06 11:02 votdev Status assigned => closed
2017-12-06 11:02 votdev Resolution open => no change required
2017-12-06 11:03 votdev Note Edited: 0005063 View Revisions
2017-12-06 11:04 votdev Note Edited: 0005063 View Revisions
+Issue History