monit errors

  • Can anyone help?
    I was getting lots of monit messages in syslog for my disks exceeding usage limit-


    monit[3404]: 'fs_media_48b3563b-9ef9-47a3-953d-df8c90510038' space usage 82.6% matches resource limit [space usage>80.0%]


    So I (stupidly) tried to fix it by modifying /etc/monit/conf.d/openmediavault-filesystem.conf
    and changing 80% to 90% in the following line for all my disks


    "
    # Alert if filesystem is missing or disk space gets low
    check filesystem fs_media_48b3563b-9ef9-47a3-953d-df8c90510038 with path /media$
    if space usage > 80% for 5 times within 15 cycles
    then alert else if succeeded for 10 cycles then alert
    "
    I now get errors on reboot saying -


    /etc/monit/conf.d/openmediavault-filesystem.conf.bak:7: Error: service name conflict, fs_media_48b3563b-9ef9-47a3-953d-df8c90510038 already defined '/media/99cfeb1a-024b-46e8-b1bc-b6d64a91bdd7'


    I tried putting back the original openmediavault-filesystem.conf but the errors still occur


    What did I do wrong?

  • To fix your error: mkconf monit should fix it.


    To change the threshold for notification you have to add a line to /etc/default/openmediavault : OMV_MONIT_SERVICE_FILESYSTEM_SPACEUSAGE=80 Replace it with the value you want.


    See here for more Info on the environment variables:


    http://wiki.openmediavault.org…tle=Environment_Variables


    Greetings
    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

    • Official Post

    rm /etc/monit/conf.d/openmediavault-filesystem.conf.bak
    service monit restart

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.14 | k8s 7.3.1-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    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!

  • rm /etc/monit/conf.d/openmediavault-filesystem.conf.bak
    service monit restart


    That did it.
    Thanks again to all.


    Once again I'm struck by how helpful folks are on this forum. Makes using OMV a pleasure, even for Linux beginner like myself.
    I'll need to stop tinkering though....

  • In 1.0... I got this to work by doing:

    • Add
      Code
      OMV_MONIT_SERVICE_FILESYSTEM_SPACEUSAGE=90

      to

      Code
      /etc/default/openmediavault

      . It wasn't already in there, so I added it to the end.

    • run
      Code
      sudo
      Code
      omv-mkconf monit


    • run
      Code
      sudo service monit restart


    • double check that the 80%'s turned to 90%'s here:
      Code
      /etc/monit/conf.d/openmediavault-filesystem.conf

      (don't change stuff here, it will get overritten.


    It would be good to have documentation on the other environment variables we can modify that aren't in

    Code
    /etc/default/openmediavault

    .

    • Official Post

    grep -r "\=\${" /usr/share/openmediavault/mkconf/* will show you the majority of them - some of these may be very dangerous to change!

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.14 | k8s 7.3.1-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    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!

  • It would be good to have documentation on the other environment variables we can modify that aren't in
    Source Code


    /etc/default/openmediavault


    .


    http://wiki.openmediavault.org…tle=Environment_Variables


    http://wiki.openmediavault.org…Environment_Variables/all


    Greetings
    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

    • Official Post

    Did you just add that to the wiki?

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.14 | k8s 7.3.1-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    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!

  • Actually I added that on September 14th to the wiki.


    Greetings
    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

  • i modified monit"OMV_MONIT_SERVICE_FILESYSTEM_SPACEUSAGE" to 90 and get errors
    when i try to restart monit.
    Also webgui gets error


    WEBGUI

    Code
    Failed to execute command 'export LANG=C; monit summary 2>&1': /etc/monit/conf.d/openmediavault-filesystem.conf:2: Error: service name conflict, rootfs already defined '/' /etc/monit/conf.d/openmediavault-filesystem.conf:6: Error: service name conflict, fs_media_5a24e136-09b9-48e1-95db-b44d5db3e28a already defined '"/media/5a24e136-09b9-48e1-95db-b44d5db3e28a"'


    SSH

    Code
    root@NAS:/etc/monit/conf.d# sudo service monit restart
    Stopping daemon monitor: monit.
    Starting daemon monitor: monit/etc/monit/conf.d/openmediavault-filesystem.conf:2: Error: service name conflict, rootfs already defined '/'
    /etc/monit/conf.d/openmediavault-filesystem.conf:6: Error: service name conflict, fs_media_5a24e136-09b9-48e1-95db-b44d5db3e28a already defined '"/media/5a24e136-09b9-48e1-95db-b44d5db3e28a"'
     failed!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!