ServerStatus Email Load Alerts

Discussion in 'Tutorials' started by Mun, Oct 11, 2014.

  1. Mun

    Mun Administrator

    ServerStatus has a great functionality to alert you of high load on your servers. As of pull/index.php version 1.1a and up we have this feature enabled. You will need the mail setup active on your uptime monitoring server to gain the benefits of this feature.

    To enable load alerts for a server :
    1. Edit includes/config.php.
    2. Find the server array you wish to monitor for high load.
    3. Add to the servers array ['maxload'] => <max load number> i.e.
      PHP:
       $servers[]= array('url' => 'http://example.com/uptime.php', .... 'maxload' => 10.2);
    4. And you are ready to go.
    This system will send you two emails. One that you have reached a critical load, and second that the load has returned to normal levels. The process will not continue to alert you about critical load as long as you are in the critical load threshold. Once it returns to normal again the system resets and begins watching for critical load to alert you on.

    If you do not wish to have load alerts for a server, remove the ['maxload'] key from the array of that server. ServerStatus is built to only alert for servers that have maxload set.

    If you do not watch uptime all the time, we suggest for best results that you run live.php to continually monitor your servers.


    Enjoy.
     

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