1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Server microstats, show server load in footer 1.1

Server microstats, show server load in footer only for admins

  1. dbembibre
    This is a simple add-on to show in your footer area the server load.
    This add-on only works on linux and Unix.

    You need to allow access to the virtual files /proc/loadavg in your php open_basedir.
    I have this in my vhost.conf

    Code:
    <IfModule mod_php5.c>
                php_admin_flag engine on
                php_flag xcache.cacher 1
                php_flag xcache.optimizer 1
                php_admin_value open_basedir "/var/www/vhosts/site.com/httpdocs:/tmp:/proc/loadavg"
    
    </IfModule>
    
    
    The add-on create the template microstats_label with the following content if you need to show the server load to more people:

    PHP:
    <xen:if is="{$visitor.is_admin}">
    {
    $serverload}
    </
    xen:if>

    Tested in 1.2 and 1.1.5

    Installation:

    1. Upload the microstats folder to your XenForo library directory (validate that the Listener.php have read permissions).
    2. Import addon-microstats.xml via your Admin Control Panel.
    Captura de pantalla 2013-07-10 a la(s) 21.21.03.png

    If you want the load average in moderator bar download this update:
    http://xenforo.com/community/resour...ver-load-in-footer.2065/download?version=5528
    Captura.JPG

Recent Updates

  1. Moving Load average to moderator bar

Recent Reviews

  1. viper357
    viper357
    5/5,
    Version: 1.1
    Works perfectly on 1.5.4. Thank you for taking the time to do make this add-on. Thank You, Thank you.