What causes Monit Alerts

  • Hello all,


    this week I received 20 Emails with Monit Alerts one morning between 6:06 am and 7:30 am.
    All the notification emails either stated "Recource limit matched Service localhost (loadavg(5min) of 2.6 matches resource limit [loadavg(5min)>2.0]) or "Resource limit suceeded Service localhost ('localhost' loadavg(1min) check succeeded [current loadavg(1min)=4.0]).


    Now I'm wondering what caused those alerts as there where no activities initialised by me during that period (like backups or whatever). Does anyone have a clue what might be responsible for the alerts or does anybody know a tool to trace the origin for such a bunch of notofications?


    Thanks in advance.


    McFly3025.

    • Offizieller Beitrag

    That is probably when you system checks for updates?

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

  • Could be collectd running amok again.


    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!

  • Hi there,
    I observe more or less similar mail notifications since I dared to upgrade form Sardaukar to Kralizec 1.9 last week. I usually receive a pair of monit notification within one minute:

    Zitat


    1. notification: monit alert -- Resource limit matched localhost: cpu wait usage of 100.0% matches resource limit [cpu wait usage>95.0%]
    2. notification: monit alert -- Resource limit succeeded localhost: 'localhost' cpu wait usage check succeeded [current cpu wait usage=1.5%]


    What makes me wonder:
    A. On Sardaukar I did not receive such messages
    B. Messages are sent sometimes when the OMV server starts up
    C Messages are sent sometimes when the OMV server resumes from hibernation (via AutoShutDown plugin)
    I could not find a pattern up to now, except that the messages were only sent on start up or resuming conditions.


    When I watch the processes on my OMV server with "top" I cant find any process which may be the cause for such a load. So, as the original poster wrote, I also do not have a clue what is causing thins load not do I have an idea how to tackle the issue. Perhaps someone has a hint?


    Thanks in advance,
    topi

    OpenMediaVault 6.x (most recent stable version) -- 64 bit -- OMV-Extras 6.x (most recent stable version) -- Default Kernel

  • For me its collectd that sometims clogs up the CPU really heavy. Wouldn't wonder me if it does this too for you guys when you resume from hibernation.


    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!

  • Thanks David for the hint.
    Would there be a tool or a way to trace the resource consumption of collectd while resuming or starting up?
    Thanks,
    topi

    OpenMediaVault 6.x (most recent stable version) -- 64 bit -- OMV-Extras 6.x (most recent stable version) -- Default Kernel

  • Thank you for your replies.


    Actually my system has been up for almost 40 days without any interruptions. I recieived a couple of notifications during that time, but it was only last Wednesday that I received that amount for appr. 90 minutes.
    I was checking that apt-logfile and there was nothing suspicious catching my eyes. So maybe it was really this collectd.


    Best regards.


    McFly

  • Hi votdev,


    I checked the situation now for a few days when the mail notifications appear. I can say for sure that they appear only when my system starts up or when it resumes from hibernation. It shows alwas the same pattern, I usually receive a pair of monit notifications within one minute:


    Code
    1. notification: monit alert -- Resource limit matched localhost: cpu wait usage of 100.0% matches resource limit [cpu wait usage>95.0%]
     2. notification: monit alert -- Resource limit succeeded localhost: 'localhost' cpu wait usage check succeeded [current cpu wait usage=1.5%]


    So, would there be a way to make monit somehow more resilient with this cpu usage peaks?


    Thanks,
    topi

    OpenMediaVault 6.x (most recent stable version) -- 64 bit -- OMV-Extras 6.x (most recent stable version) -- Default Kernel

  • I keep getting the same notifications when my system resumes from suspended mode.


    votdev: checking those config-files but I don't understand what parameters I have to change to avoid those notifications...

  • I'd like to modify the MAIL-FORMAT statement. But seems that the changes I make get overwritten by omv-mkconf monit. So where can I define MAIL-FORMAT that omv-mkconf monit will use? Primarily, I'd like to change the subject line. (I'm still fighting the distinction of Resource limit matched vs. Resource limit succeeded).


    You mention in another post that I can modify:
    OMV_MONIT_SERVICE_SYSTEM_LOADAVG_1MIN_MULT
    OMV_MONIT_SERVICE_SYSTEM_LOADAVG_5MIN_MULT


    but I'm not sure how or what I may modify it to be.


    I event tried creating my own injection as /etc/monit/conf.d/openmediavualt-mailformat.conf, but it get's wiped out with omv-mkconf monit

  • This happen to me too. My server has more than enough power & ram to run OMV.


    At first I thought the ClamAV, antivirus, using too much resource.
    But after I uninstalled it, I still get notification about "Resource limit succeeded Service localhost".
    It happened every time the server is wake up/resumed from hibernation or shutdown.
    Can't find the solution.


    OMV v2.1.1

    OMV v5.0
    Asus Z97-A/3.1; i3-4370
    32GB RAM Corsair Vengeance Pro

  • I've had that noisy "loadavg" event in syslog twice per minute or more.
    I've fixed that by adding extra lines to /etc/default/openmediavault and reloading.

    Code
    # Fix monit issue with reporting high loadavg
    OMV_MONIT_SERVICE_SYSTEM_LOADAVG_1MIN_MULT=50
    OMV_MONIT_SERVICE_SYSTEM_LOADAVG_5MIN_MULT=50
    Bash
    omv-mkconf monit
    monit restart all

Jetzt mitmachen!

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