Failed to execute command 'export LANG=C; monit summary 2>&1'

  • When connecting to the webGui, I'm getting the following error. I can OK past it and everything seems fine but I don't like errors. Any thoughts?


    Failed to execute command 'export LANG=C; monit summary 2>&1': /etc/monit/conf.d/openmediavault-filesystem.conf:3: Error: syntax error '93OMV_SSL_CERTIFICATE_DIR=/etc/ssl'
    Error #4000:
    exception 'OMVException' with message 'Failed to execute command 'export LANG=C; monit summary 2>&1': /etc/monit/conf.d/openmediavault-filesystem.conf:3: Error: syntax error '93OMV_SSL_CERTIFICATE_DIR=/etc/ssl'' in /usr/share/php/openmediavault/monit.inc:150
    Stack trace:
    #0 /usr/share/openmediavault/engined/module/afp.inc(118): OMVMonit->status('netatalk')
    #1 /usr/share/openmediavault/engined/rpc/services.inc(63): OMVModuleAFP->getStatus()
    #2 [internal function]: OMVRpcServiceServices->getStatus(Array, Array)
    #3 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
    #4 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('getStatus', Array, Array)
    #5 /usr/sbin/omv-engined(500): OMVRpc::exec('Services', 'getStatus', Array, Array, 1)
    #6 {main}

    • Offizieller Beitrag

    Are you updated to OMV 2.1.1?

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Now it is now letting me make any changes in the web front end. Whenever it says 'the configuration has changed and you must apply changes' when I try and save my changes with the apply button it says applying configuration changes for a min and then I get the error again. Also unser sustem information - performance statistics none of the info is being logged. for instance my cpu usage by hour is not showin

  • I fixed it in /etc/default/openmediavault but I think my /etc/monit/conf.d/openmediavault-filesystem.conf file is also strange. If you look at the if space usage > 93OMV_SSL_CERTIFICATE_DIR=/etc/ssl% for 5 times within 15 cycles is that proper?


    # Alert if disk space of root filesystem gets low
    check filesystem rootfs with path /
    if space usage > 93OMV_SSL_CERTIFICATE_DIR=/etc/ssl% for 5 times within 15 cycles
    then alert else if succeeded for 10 cycles then alert


    check filesystem fs_media_44af1310-9906-4c34-881d-7f08b7ac7c12 with path "/media/44af1310-9906-4c34-881d-7f08b7ac7c12"
    if space usage > 93OMV_SSL_CERTIFICATE_DIR=/etc/ssl% for 5 times within 15 cycles
    then alert else if succeeded for 10 cycles then alert
    #check program mp_media_44af1310-9906-4c34-881d-7f08b7ac7c12 with path "/bin/mountpoint -q '/media/44af1310-9906-4c34-881d-7f08b7ac7c12'"
    # if status == 1 then alert


    check filesystem fs_media_625a2938-8777-4c24-bf2b-a3edf264e03a with path "/media/625a2938-8777-4c24-bf2b-a3edf264e03a"
    if space usage > 93OMV_SSL_CERTIFICATE_DIR=/etc/ssl% for 5 times within 15 cycles
    then alert else if succeeded for 10 cycles then alert
    #check program mp_media_625a2938-8777-4c24-bf2b-a3edf264e03a with path "/bin/mountpoint -q '/media/625a2938-8777-4c24-bf2b-a3edf264e03a'"
    # if status == 1 then alert


    check filesystem fs_media_cbbb91fc-c830-4449-8e86-fd5380bd5b2f with path "/media/cbbb91fc-c830-4449-8e86-fd5380bd5b2f"
    if space usage > 93OMV_SSL_CERTIFICATE_DIR=/etc/ssl% for 5 times within 15 cycles
    then alert else if succeeded for 10 cycles then alert
    #check program mp_media_cbbb91fc-c830-4449-8e86-fd5380bd5b2f with path "/bin/mountpoint -q '/media/cbbb91fc-c830-4449-8e86-fd5380bd5b2f'"
    # if status == 1 then alert


    check filesystem fs_media_a4be5e75-5d67-406b-8277-ceeb0f954f8f with path "/media/a4be5e75-5d67-406b-8277-ceeb0f954f8f"
    if space usage > 93OMV_SSL_CERTIFICATE_DIR=/etc/ssl% for 5 times within 15 cycles
    then alert else if succeeded for 10 cycles then alert
    #check program mp_media_a4be5e75-5d67-406b-8277-ceeb0f954f8f with path "/bin/mountpoint -q '/media/a4be5e75-5d67-406b-8277-ceeb0f954f8f'"
    # if status == 1 then alert

  • I edited /etc/monit/conf.d/openmediavault-filesystem.conf to look like:


    # Alert if disk space of root filesystem gets low
    check filesystem rootfs with path /
    if space usage > OMV_MONIT_SERVICE_FILESYSTEM_SPACEUSAGE for 5 times within 15 cycles
    then alert else if succeeded for 10 cycles then alert


    check filesystem fs_media_44af1310-9906-4c34-881d-7f08b7ac7c12 with path "/media/44af1310-9906-4c34-881d-7f08b7ac7c12"
    if space usage > OMV_MONIT_SERVICE_FILESYSTEM_SPACEUSAGE for 5 times within 15 cycles
    then alert else if succeeded for 10 cycles then alert
    #check program mp_media_44af1310-9906-4c34-881d-7f08b7ac7c12 with path "/bin/mountpoint -q '/media/44af1310-9906-4c34-881d-7f08b7ac7c12'"
    # if status == 1 then alert


    check filesystem fs_media_625a2938-8777-4c24-bf2b-a3edf264e03a with path "/media/625a2938-8777-4c24-bf2b-a3edf264e03a"
    if space usage > OMV_MONIT_SERVICE_FILESYSTEM_SPACEUSAGE for 5 times within 15 cycles
    then alert else if succeeded for 10 cycles then alert
    #check program mp_media_625a2938-8777-4c24-bf2b-a3edf264e03a with path "/bin/mountpoint -q '/media/625a2938-8777-4c24-bf2b-a3edf264e03a'"
    # if status == 1 then alert


    check filesystem fs_media_cbbb91fc-c830-4449-8e86-fd5380bd5b2f with path "/media/cbbb91fc-c830-4449-8e86-fd5380bd5b2f"
    if space usage > OMV_MONIT_SERVICE_FILESYSTEM_SPACEUSAGE for 5 times within 15 cycles
    then alert else if succeeded for 10 cycles then alert
    #check program mp_media_cbbb91fc-c830-4449-8e86-fd5380bd5b2f with path "/bin/mountpoint -q '/media/cbbb91fc-c830-4449-8e86-fd5380bd5b2f'"
    # if status == 1 then alert


    check filesystem fs_media_a4be5e75-5d67-406b-8277-ceeb0f954f8f with path "/media/a4be5e75-5d67-406b-8277-ceeb0f954f8f"
    if space usage > OMV_MONIT_SERVICE_FILESYSTEM_SPACEUSAGE for 5 times within 15 cycles
    then alert else if succeeded for 10 cycles then alert
    #check program mp_media_a4be5e75-5d67-406b-8277-ceeb0f954f8f with path "/bin/mountpoint -q '/media/a4be5e75-5d67-406b-8277-ceeb0f954f8f'"
    # if status == 1 then alert



    now I am getting the following error:
    Failed to execute command 'export LANG=C; monit summary 2>&1': /etc/monit/conf.d/openmediavault-filesystem.conf:3: Error: syntax error 'OMV_MONIT_SERVICE_FILESYSTEM_SPACEUSAGE'


    what should my /etc/monit/conf.d/openmediavault-filesystem.conf look like?

  • I think I broke things when I set custom values in the etc\default\openmediavault by adding the line OMV_MONIT_SERVICE_FILESYSTEM_SPACEUSAGE="80"


    I was able to restore my /etc/monit/conf.d/openmediavault-filesystem.conf and etc\default\openmediavault from a backup a had and everythgin 'SEEMS' to be running ok. Thanks for that assistance.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!