Skip to main content

CSF bug with whm-server-status

Comments

14 comments

  • cPRex Jurassic Moderator

    Hey there!  This is a known issue we're tracking through case CPANEL-54008 and we hope to have this fixed as part of the next CSF update!

    I've linked this thread to the case so I'll be sure to post an update if I hear anything on my end.

    1
  • bellwood

    Thanks Rex Hatt

    0
  • cPRex Jurassic Moderator

    Anytime!

    0
  • dscreative

    Any idea when this is likely to be fixed? The apache status reports are very useful for seeing what was causing the high load average, and at present we can't take any action to try to stop the problems as we don't know what is causing them. It seems like this would be fairly straight-forward to correct.

    1
  • cPRex Jurassic Moderator

    Let me reach out to the team and I'll let you know what I find!

    0
  • cPRex Jurassic Moderator

    It looks like the specific CSF team leader I wanted to speak with is out today so I may not hear about this until tomorrow, but I'll be sure to post then.

    0
  • chris matthews

    This worked for us, first edit csf.conf and change :

    PT_APACHESTATUS = "http://127.0.0.1/whm-server-status"

    to read:

    PT_APACHESTATUS = "http://127.0.0.1/server-status"

    Save and restart csf

    Next, in WHM open the Apache configuration and click on  the include editor, in the pre-main drop down menu select your apache version and add the following:

    <Location /server-status>
        SetHandler server-status
        Require local
        Require ip 127.0.0.1
    </Location>

    save and restart apache.

    Done!

    0
  • cPRex Jurassic Moderator

    chris matthews - that does indeed work, but we want to ensure that there is a long-term solution without the need to adjust files on the server.

    Our team is still looking into this one on my end.

    0
  • chris matthews

    @ cPRex Adjusting files on servers is something system admins frequently do to make things work  :)

    We look forward to seeing that long term solution when your team gets around to it.

    0
  • Reginaldo Bray

    hello,

    We have cpanel 136.0.33 and same issue here:

    STATS: Unable to retrieve Apache Server Status [http://127.0.0.1/whm-server-status?auto&key=REDACTED] - Unable to download: Not Found

    Any updates on this matter?

    Regards,

    Reginaldo Bray

    0
  • cPRex Jurassic Moderator

    It looks like we have a fix in place and it's going through final testing now.

    0
  • Reginaldo Bray

    Thank you cPRex for the update.

    I will wait for the fix.

    Best regards,

    Reginaldo Bray

    0
  • Metro2

    I’m seeing this same issue on two cPanel servers running the cPanel nginx reverse proxy.

    Both servers were fine until cpanel-csf 16.31-1.2.1.cpanel was installed automatically on September 3. Immediately after LFD restarted, the once-per-minute STATS: Unable to retrieve Apache Server Status ... Not Found errors began.

    On these servers nginx listens on 80/443 and Apache listens on 8080/8443.

    Directly querying the existing Apache status endpoint works:

    curl http://127.0.0.1:8080/whm-server-status?auto

    returns HTTP 200 and the normal Apache scoreboard.

    I see the confirmed workaround above is to change PT_APACHESTATUS to /server-status and add the Apache <Location /server-status> include.

    With cPanel nginx installed and Apache on port 8080, should the corresponding setting be:

    PT_APACHESTATUS = "http://127.0.0.1:8080/server-status"

    after adding that same Apache include?

    I’d like to make sure I’m using the cPanel-recommended workaround for an nginx reverse-proxy setup before changing Apache configuration.

    Thanks for any help!

    0

Please sign in to leave a comment.