Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

cPanel Monitering FAILED alert emails for all services after every graceful restart

Discussion in 'General Discussion' started by leadwatch, Jun 11, 2018.

Tags:
  1. leadwatch

    leadwatch Registered

    Joined:
    Jun 11, 2018
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    NJ, USA
    cPanel Access Level:
    Root Administrator
    Every time I do a graceful reboot in WHM, a few minutes later, I receive a cPanel alert email for each service that says it failed. The message is the same for all services. The alerts typically only come in once, but sometimes a few will be sent a second time. After that they stop.

    For example:
    Service Check Raw Output:
    The “mysql” service is down.
    The subprocess “/usr/local/cpanel/scripts/restartsrv_mysql” reported error number 255 when it ended.

    Server is running CENTOS 7.5 kvm, cPanel/WHM v70.0.48 (though the issue has been happening for months, seemingly independent of version). The setup is default from the host. I do updates and the associated graceful restarts (which is when I experience the issue) as needed.

    I'm relatively new to server administration. I've been searching for a solution for this but have come up empty other than turning off failure alerts altogether, which I don't want to do.

    Does anyone know why this happens and how I can fix it without turning off alerts?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,740
    Likes Received:
    1,796
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @leadwatch,

    This can happen after a reboot when the service monitoring process (Chksrvd) starts before the other services. You can try increasing the default value of "3" to a value such as "4" for the following option under the System tab in WHM >> Tweak Settings:

    ChkServd TCP check failure threshold

    Per it's description:

    The number of times a ChkServd TCP check must fail before notification is sent and the service is restarted. On heavily loaded systems these types of service checks fail occasionally, producing erroneous indications that services are down. A value of 3 or higher is recommended for most systems.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. leadwatch

    leadwatch Registered

    Joined:
    Jun 11, 2018
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    NJ, USA
    cPanel Access Level:
    Root Administrator
    Hi Michael,

    I set the ChkServd TCP check failure threshold to 5 and rebooted the server to test. It did not fix the issue. I still got a series of alert emails for failed services right after reboot. Do you have any other suggestions?

    Thanks.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,740
    Likes Received:
    1,796
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. leadwatch

    leadwatch Registered

    Joined:
    Jun 11, 2018
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    NJ, USA
    cPanel Access Level:
    Root Administrator
    I opened a ticket as you suggested.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,740
    Likes Received:
    1,796
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @leadwatch,

    To update, per support ticket 9730779, it looks like the services were not actually failing. Instead the service checks from Chkservd occurred while the server was in the process of shutting down and thus the notifications were sent when the server booted back up.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice