Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with OpenID
Advertise on LowEndTalk.com

In this Discussion

Public Status Script

Public Status Script

dominicldominicl Member
edited December 2012 in General

Hello,

I am looking for a status script to display the uptime of different servers, that users can access too. Like this: https://getkvm.com/service-status/ (Hope you don't mind me sharing @GetKVM_Ash!)

Any recommendations?

Thanks!

«13

Comments

  • I am looking for something like that also

  • @DominicL looks like that page may be getting graphs from elsewhere :)

    Junior Pen Tester

  • @dominicl

    Nah i dont mind, only coded that up yesterday, took a while but im happy with it. Going to be adding more graphs to it for CPU and RAM as well.

  • Well if you'd like I can give you a copy of the code for: http://uptime.bluevm.com

    BlueVM | 20% Off For Life => Coupon Code: FEBRUARYSPECIAL
  • @eastonch said: @DominicL looks like that page may be getting graphs from elsewhere :)

    Sure is, its basically a customer front end for our own internal monitoring. That was one of the hardest parts, securing it and making sure people cant get to our actual monitoring system, since we don't want the public to have access to everything.

  • SimpleNode | VPS Hosting | KVM and OpenVZ | Dallas, TX | PayPal and Bitcoin accepted

  • HalfEatenPieHalfEatenPie Member
    edited December 2012
    1. Its using munin (certain munin graphs can be made public and can be used publicly for that purpose)
    2. I don't know how Ash did it but more than likely its just using a munin back-end, which should be easy for you to code it yourself using the munin docs.
    Catalyst Host - Pie Approved!
  • t0p3at0p3a Member
    edited December 2012

    @SimpleNode

    Do you share the script for that? I really like it.

  • I love @PhilND's version of there status monitor, http://status.nodedeploy.com (They have back end graphs to see load and bandwidth throughout the day as well)

    Would also love something like this

    Patrick | INIZ
  • @SimpleNode said: https://simpleno.de/monitor

    This is pretty, but it gave me this after a refresh:

    Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /var/www/snode/public_html/monitor/index.php:25 Stack trace: #0 /var/www/snode/public_html/monitor/index.php(25): SimpleXMLElement->__construct('') #1 {main} thrown in /var/www/snode/public_html/monitor/index.php on line 25

  • dominicldominicl Member
    edited December 2012

    @BlueVM said: Well if you'd like I can give you a copy of the code for: http://uptime.bluevm.com

    That would be great if you could, thanks!

    @SimpleNode said: https://simpleno.de/monitor

    Who's script is that?

    @StormVZ said: I love @PhilND's version of there status monitor, http://status.nodedeploy.com (They have back end graphs to see load and bandwidth throughout the day as well)

    Yeah - love that one too!

    @herbyscrub said: This is pretty, but it gave me this after a refresh:

    Did for me too, but seems fine now.

    Thanks guys.

  • kbeeziekbeezie Member
    edited December 2012

    I thought WHMCS had this kind of thing built in? (least it did when I was using it with Directadmin nodes)

    KBeezie - Insignificant little blog about Nginx, FreeBSD, fun stuff | PhoenixVPS - Managed Support Representative
  • t0p3at0p3a Member
    edited December 2012

    I got it also

    Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /var/www/snode/public_html/monitor/index.php:25 Stack trace: #0 /var/www/snode/public_html/monitor/index.php(25): SimpleXMLElement->__construct('') #1 {main} thrown in /var/www/snode/public_html/monitor/index.php on line 25

  • @kbeezie said: I thought WHMCS had this kind of thing built in?

    It does - but I hate it.

  • @kbeezie said: I thought WHMCS had this kind of thing built in?

    I personally really dislike WHMCS's built-in function. It requires a web server (either apache or nginx) and php running on the server for it to work.

    Catalyst Host - Pie Approved!
  • kbeeziekbeezie Member
    edited December 2012

    @dominicl said: It does - but I hate it.

    Fair enough. :P

    @HalfEatenPie said: I personally really dislike WHMCS's built-in function. It requires a web server (either apache or nginx) and php running on the server for it to work.

    ? What would you be hosting the dynamic status script on if not PHP? (though personally I was thinking of a cron job to 'sed' out static page).

    KBeezie - Insignificant little blog about Nginx, FreeBSD, fun stuff | PhoenixVPS - Managed Support Representative
  • Ash_HawkridgeAsh_Hawkridge Member
    edited December 2012

    @kbeezie said: I thought WHMCS had this kind of thing built in?

    Need a public facing webserver with PHP on each VPS node though (If this is for a VPS server) to serve the file.

    EDIT: The pie beat me to it :(

  • @GetKVM_Ash said: Need a public facing webserver with PHP on each VPS node though (If this is for a VPS server) to serve the file.

    Ooooh you mean the status page that it calls and checks. Missed that.

    KBeezie - Insignificant little blog about Nginx, FreeBSD, fun stuff | PhoenixVPS - Managed Support Representative
  • @kbeezie said: Ooooh you mean the status page that it calls and checks. Missed that.

    :P

  • Simple and clean, I like it.

  • @RobertJFClarke said: Simple and clean, I like it.

    which one are you talking about.

    Catalyst Host - Pie Approved!
  • kbeeziekbeezie Member
    edited December 2012

    @SimpleNode said: https://simpleno.de/monitor

    Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /var/www/snode/public_html/monitor/index.php:25 Stack trace: #0 /var/www/snode/public_html/monitor/index.php(25): SimpleXMLElement->__construct('') #1 {main} thrown in /var/www/snode/public_html/monitor/index.php on line 25

    awwwwwwwwww, I wanted to check it out (ps:... turn off display_errors)

    KBeezie - Insignificant little blog about Nginx, FreeBSD, fun stuff | PhoenixVPS - Managed Support Representative
  • JacobJacob Member, Provider
    edited December 2012

    Who needs graphs... http://easestatus.com (not my creation, i would like to customise it more but the coding style is so awkward and messy... One day i will redo it all).

    AboveClouds • UK Company • UK Datacentre • UK Customer Support
    High Performance Pure SSD Cloud Hosting with a personal touch

  • @Jacob said: Who needs graphs... http://easestatus.com (not my creation, i wod like to customise it more but the coding style is so awkward and messy... One day i will redo it all).

    Statusmon? i used it a few years back and found it to be unreliable with uptime history reporting. Does it work well for you?

  • JacobJacob Member, Provider

    @GetKVM_Ash The internal archiving is in-accurate, very.. But there is a way around this. You can use alertra which is only like $10/pcm.

    AboveClouds • UK Company • UK Datacentre • UK Customer Support
    High Performance Pure SSD Cloud Hosting with a personal touch

  • @BlueVM said: Well if you'd like I can give you a copy of the code for: http://uptime.bluevm.com

    i would like to have it, if there is no problem. =)

    Some VPS promos: MyAffLinks | NodeStats ❤ Monitor your servers for FREE!! | lowend.rocks!! LG from all providers, Promos and more!
  • @dedicados @dominicl - At the moment our system uses php on each of the remote nodes, but I'm 99% confident I can modify it to use a key via SSH to connect to each of the nodes instead. Let me know...

    BlueVM | 20% Off For Life => Coupon Code: FEBRUARYSPECIAL
  • I just seen BlueVM uptime script that looks quite nice.

  • @t0p3a - Thank you, it can be modified to pull just about anything from the servers (IE RAM, Load, Disk Usage, etc...)

    BlueVM | 20% Off For Life => Coupon Code: FEBRUARYSPECIAL
  • t0p3at0p3a Member
    edited December 2012

    Well maybe make it available for download and let people update it somewhere or work on it togheter so it never gets outdated?

  • @StormVz remember it does alot more than that ;) Asset tracking, subnet tracking, rbl lookups, email alerts, vzmigrate from button press, status issue management, aswell as whole host of graphs

    We may look at leasing out a hosted solution and provide ftp access to the view files so you can customize the layout.

    https://nodedeploy.com | Premium VPS Solutions | Managed

  • @t0p3a - I'll be packaging it up tonight and dumping it on github.

    BlueVM | 20% Off For Life => Coupon Code: FEBRUARYSPECIAL
  • All status pages need dog pics. Especially dumb ones like mine.

    http://status.georgeloo.com/

  • t0p3at0p3a Member
    edited December 2012

    Sure after you do that provide a link i will for sure install it :)

    LOL @herbyscrub you need full background with different dog pics

  • @herbyscrub said: All status pages need dog pics. Especially dumb ones like mine. http://status.georgeloo.com/

    I like modelmayhem.com 's 404 image better :p image

    KBeezie - Insignificant little blog about Nginx, FreeBSD, fun stuff | PhoenixVPS - Managed Support Representative
  • @kbeezie fixed

    SimpleNode | VPS Hosting | KVM and OpenVZ | Dallas, TX | PayPal and Bitcoin accepted

  • DeanDean Member
    edited December 2012

    I'm looking for something that doesn't rely on PHP/HTTP to provide the info - I've got iStat installed on each of the servers does anyone know of any nice interface I could use on a central server to pull in all the info?

  • Is it resource hungry?

  • @herbyscrub said: All status pages need dog pics. Especially dumb ones like mine.

    http://status.georgeloo.com/

    I remember you posted this before... still waiting for the code to it :P

  • @DeanClinton said: Is it resource hungry?

    Nah, i don't see it using up much. Not sure how it would run on a VPS, though. Im sure people here have experience with running it on a VPS so lets hope they can chime in.

  • DavidxDavidx Member
    edited December 2012
  • @twain said: This one looks interesting: https://github.com/balanced/status.balancedpayments.com

    Reminds me of the Heroku Status page https://status.heroku.com/

    Fusioned | KVM SSD VPS | LSI RAID10 | Netherlands 1Gbps | R1Soft | IPv4 & IPv6 | SolusVM
  • BlueVMBlueVM Member
    edited December 2012

    For those of you who were interested in getting a copy of our uptime script here it is:

    http://uptime.bluevm.com/develop/uptime-checkerv0.2.2.zip

    Directions for setup: 1. Create a database with a user attached to it. 2. Use the database.sql file provided to populate your database. 3. Update /includes/config.php with your database information. 4. Copy uptime.php to each server you wish to monitor. 5. Insert an entry into the servers table of the database with the path containing uptime.php (So as an example if you put it at http://yoursite.com/uptime/uptime.php you would enter yoursite.com/uptime/ into the IP address column of the table)

    Other notes: - You must have php5 installed on your remote servers. - You do not need a database on your remote servers just php and your favorite httpd. - If you want to add free ram, bandwidth usage, etc... you can add it by editing uptime.php and adding a column for it in index.php

    If you have trouble or need some help please feel free to PM me or email me at: [email protected]

    If you would like to donate to say thanks or support future development visit: https://bluevm.com/coffee

    This script is released under the WTFPL, enjoy!

    BlueVM | 20% Off For Life => Coupon Code: FEBRUARYSPECIAL
  • PatrickPatrick Member
    edited December 2012

    @BlueVM Thanks! We're using it here http://status.stormvz.com with 1 minute refresh rate

    (Will edit template etc. soon)

    Patrick | INIZ
  • @StormVZ - Glad the directions were easy to follow. I've found that with a refresh rate of 10 seconds and about 100 people "sitting there watching it". It will consume about 4 GB of bandwidth per month... so it's pretty efficient.

    BlueVM | 20% Off For Life => Coupon Code: FEBRUARYSPECIAL
  • @BlueVM - Thanks. Will install it shortly! :)

  • BlueVMBlueVM Member
    edited December 2012

    I made some small modifications to prevent people from getting the main IP of your servers based on viewing the HTML. Its good if your worried about DOS/DDOS.

    Download URL: http://uptime.bluevm.com/develop/uptime-checkerv0.2.2.zip

    To update just replace the local files (except config.php), the remote server code has not changed. You don't need to update, reality says if someone is going to DDOS your servers they'll get the IP if its listed on the uptime page or not.

    @dominicl - Thanks

    BlueVM | 20% Off For Life => Coupon Code: FEBRUARYSPECIAL
Sign In or Register to comment.