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

    dbembibre Active Member

    dbembibre submitted a new resource:

    Server microstats, show server load in footer - Server microstats, show server load in footer only for admins

    Read more about this resource...
     
    IcEWoLF likes this.
  2. IcEWoLF

    IcEWoLF Well-Known Member

    Thanks for this. :)
     
  3. kingston

    kingston Well-Known Member

    Will this work on NGINX?
     
  4. kingston

    kingston Well-Known Member

    Yes it works on NGINX. Nice add-on. Thanks!
     
  5. dbembibre

    dbembibre Active Member

    Sorry for the delay, yes i use nginx as web server !!
     
  6. kingston

    kingston Well-Known Member

    Is there a way to get the stats of a second server? I have just separated out my DB and webserver and would like to know the load and stats of that one as well.
     
  7. dbembibre

    dbembibre Active Member

    Is not posible because the executed php file is who read the load in the virtual file structure /proc. :( I can't read the server load of other machine.
     
  8. kingston

    kingston Well-Known Member

    Really wanted to put this up top in the admin bar. I monitor our load pretty closely as we have spikes all the time and I am trying to improve how well the site responds. I tried embedding the code in the moderation bar and it is not working. any advice?
     
  9. kingston

    kingston Well-Known Member

    @dbembibre sorry to bother you but how can I move this into a different template? I tried and the text didnt show up. Thanks for the help.
     
  10. dbembibre

    dbembibre Active Member

  11. dbembibre

    dbembibre Active Member

    Dont worry im on holidays and dont see this. I upload an update with the things that you need, but if you want you can edit by hand.

    Open /Library/microsostats/Listener.php and change the hookname to moderator_bar.

    PHP:
    if ($hookName == 'moderator_bar')
    Open your_style/templates/ micrsotats_label and replace with this:

    PHP:
    <xen:if is="{$visitor.is_admin}">
    <
    span class="itemCount " title="">{$serverload}</span>
    </
    xen:if>
    You see something like this

    Captura.JPG
     
    kingston likes this.
  12. kingston

    kingston Well-Known Member

    Thank you. When trying to monitor it was annoying to have to scroll down to the bottom every time. This is great!
     
  13. ehd

    ehd Active Member

    Awesome. Exactly what I needed. Thank you very much!
     
  14. ehd

    ehd Active Member

    Does anybody have an idea how to put in the number of the users currently online in that line, too?

    Thanks.
     
  15. ehd

    ehd Active Member

    Anyone?

    Thanks!
     
  16. Rusty Nail

    Rusty Nail New Member

    I am getting an error when trying to install this
    Callback microstats_Listener::template_hook is invalid (Invalid Class).
     
  17. teletubbi

    teletubbi Active Member

    Than you upload it not properly.
    Some files are missing.
     
    Rusty Nail likes this.
  18. Rusty Nail

    Rusty Nail New Member

    There is only one file and the xml file and it's in the right place. Edit seems to be working now and I dunno why cause I didn't change anything lol ! Just one of them days I guess
     
    Last edited: Jul 9, 2016

Share This Page