Page 1 of 1

High 5 minute load average alert

Posted: 10 Jun 2014, 11:23
by davshirley
If the server has a high load level, I get a nice little email that contains a snapshot of the running processes, vmstat and a dump of the server-status page.

The problem here is that our server-status page is behind a http password protection so all I ever see in the report is:

Unable to retrieve Apache Server Status [http://127.0.0.1/server-status] - Unable to download: 401 - Authorization Required

Is there any way that I can provide the user/pass so that I can get a complete report?

Re: High 5 minute load average alert

Posted: 10 Jun 2014, 11:35
by ForumAdmin
You could try changing PT_APACHESTATUS in /etc/csf/csf.conf to something like:

Code: Select all

"http://username:password@127.0.0.1/whm-server-status"
But we've not tried it and it may not work. If it fails with URLGET set to 1, try setting URLGET to 2. There's little else that can be done.

Re: High 5 minute load average alert

Posted: 10 Jun 2014, 20:04
by davshirley
I knew it had to be in there somewhere.

I'll set it to that, set PT_LOAD_LEVEL to something silly (1), restart lfd and wait a few....

There's the email. Works like a charm! Thanks!