System Load checker email report

Why at once per day? It say eveytime dataskq run, so, everyminute it run, everytime you got high-load you'll get a new mail.

Regards
 
I have set a low check_load value and second time it exceeded that value it didn't send any email.

So, which one is correct? An email will be sent when the dataskq runs, or At most once a day?

Edited: Note that it says:
An email will be sent when the dataskq runs and NOT everytime the dataskq runs. So the email will be sent once the dataskq runs.
 
Last edited:
Yes, and if you check cron jobs, dataskq run every minute cause is set to be * * * * *.

If it doenst send multiple email, you should need to manually start dataskq in debug mode when you got high load and try to figure out why it doesnt send mail.

Regards
 
As far as I can tell, the system load checker will send 1 (one) email when the dataskq runs.
This means that if the system load average exceeds the check_load value 5 seconds after the dataskq runs, the system will send 1 (one) email 55 seconds later. And that's all.

I don't want to debug the high load because I have set
Code:
check_load=0.5
check_load_minute=1
so, there's no real high load.

But I do want to receive an email everytime the dataskq runs, If the system load is greater than the value set above.
 
dataskq run every minute, a new istance every minute, it take about 5 secs to run so yes, untille next minute you will not receive email, but, there is no way (unlesee DA Staff change dataskq from script to daemon for example) to run it "every second".

0.5 load is pretty few load (ofc it depend on server specs), for example, i do have it set to 50, but, i do use to monitorize the server with nagios, you should maybe consider to use that on a separate (or also local if you dont have another server for that) server.

Regards
 
Yes, what you say is correct, but I don't need the dataskq to run every second.

I just want to receive an email everytime the dataskq runs If the system load is greater than the value set.

You can imagine that I have set 0.5 just to test and see if I will get more than 1 emails.

As for the check_load value I prefer to calculate the total number of processor cores and set the same number.
Usually when a server performs at 100% then the system load is supposed to be 1.0 for each core. If the server has a Quad Core HT processor then
when the server performs at 100% the system load will be 8.0

 
Yes i do know how it works the load :)

You should send an email to DA Staff asking why you dong get an email for each dataskq that run when load is higher than "defined".

Regards
 
Hello,

To clarify on this feature:
http://www.directadmin.com/features.php?id=1088

the notification will be sent out within 1 minute of the load being high.
DA remembers when the last notice was sent (stored in the admin.conf) and doesn't send another for 24 hours.

However, this has already been changed to 10 minutes in the DA code for the next release of DA, as I would agree that 24 hours is too long.

If you *really* want to be notified every minute, create:
Code:
/usr/local/directadmin/scripts/custom/load_spike_notice_post.sh
with the code
Code:
#!/bin/sh
perl -pi -e 's/^load_limit_last_sent=.*\n//' /usr/local/directadmin/data/admin/admin.conf
exit 0;
and chmod to 755, which will delete time of the last notice, so it will spam you all day long :)

John
 
Thanks for clarification John.

Maybe, you should consider a variable in directadmin.conf where everyone can define the time between each notificication for the load.

Regards
 
This is great! Thanks John.
Code:
/usr/local/directadmin/scripts/custom/load_spike_notice_post.sh
And as SeLLeRoNe indicated, a variable like check_load_email for example, would be nice to have, although 10 minutes is way better than 24 hours.

Regards
 
Back
Top