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?
High 5 minute load average alert
-
- Moderator
- Posts: 1524
- Joined: 01 Oct 2008, 09:24
Re: High 5 minute load average alert
You could try changing PT_APACHESTATUS in /etc/csf/csf.conf to something like:
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.
Code: Select all
"http://username:password@127.0.0.1/whm-server-status"
-
- Junior Member
- Posts: 5
- Joined: 10 Jun 2014, 11:19
Re: High 5 minute load average alert
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!
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!