Howdy, Stranger!

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

Advertise on LowEndTalk.com
Public Status Script - Page 2
New on LowEndTalk? Please Register and read our Community Rules.

Public Status Script

2

Comments

  • Any plans to make it webserver independent? :)

  • http://serverbear.com/9801/edis#view-uptime-beta

    Only released this morning, but it'll show downtime per node & location for most of the hosts we have monitoring setup. That page will get a lot snazzier as we do more work on it.

    Thanked by 1Riz
    ServerBear - Easy UnixBench/dd/IOPS/FIO (NEW) & Network Benchmarks | Example Report | Compare Low End Boxes
    Gleam - Run kick-ass viral competitions & rewards to grow your userbase. Free until Sept.
  • BlueVMBlueVM Member
    edited December 2012

    MartinD - Yes, the next "major" version will allow for SSH based password & key authentication to your remote servers as well as the ability to select what information gets pulled & displayed. Obviously I'd suggest creating a jailed ssh user for the pulls if that's the route you choose to go.

    BlueVM | 20% Off For Life => Coupon Code: FEBRUARYSPECIAL
  • @BlueVM said: MartinD - Yes, the next "major" version will allow for SSH based password & key authentication to your remote servers as well as the ability to select what information gets pulled & displayed.

    Great - I'll keep an eye out for that.

  • @Jack said: how would one take part in the openbeta for Serverbear uptime?

    Any hosts that we already have added just shoot me some Node Name & IP addresses + which location they are in.

    ServerBear - Easy UnixBench/dd/IOPS/FIO (NEW) & Network Benchmarks | Example Report | Compare Low End Boxes
    Gleam - Run kick-ass viral competitions & rewards to grow your userbase. Free until Sept.
  • @BlueVM so does this mean it won't need http/php?

  • @DeanClinton - The page displaying the uptime data will need http/php, but the servers your monitoring will not.

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

    @MartinD said: Any plans to make it webserver independent? :)

    look at this .. https://github.com/RaymiiOrg/raymon - PHP independent .. works like charm .. just need bash on client machines ... no need of php .. ... also if you dont want a web server on client side then just sftp the generated json file on client side to the server at regular intervals by cron on client side ..here is the live example http://vps11.sparklingclouds.nl/status/stat.php

  • @BlueVM - oooh! waits anxiously

  • Seems like an unfinished product? I clicked the issues link, it took me nowhere :x

    -- BOFH

  • @fresher_06 - the website says different. The website says that the client machines need a webserver.

  • @Raymii - I've sent you an e-Mail. I can't seem to get it working on http://serverup.org
    Thanks for your help if you can offer it.

  • RaymiiRaymii Member
    edited December 2012

    @DeanClinton the website says you need a webserver, because that is what I use to transport the JSON files. It would require some modification to the PHP script, but the client and the server parts are completely independent. The client side generates JSON via bash, and the server part parses JSON into a nice layout.

    The server part gets the JSON files, but as @fresher_06 says, you can for example let the clients sftp the generated json files to the server, and let the server get them from localghost. (As in, client --> sftp --> server/var/hiddenwww, which listens only on localhost, [seperate server maybe], server localhost/files.json).

    I also replied to your email.

    And thanks to @fresher_06 for mentioning my program :)

    Quis custodiet ipsos custodes?
    https://raymii.org - https://cipherli.st
  • DeanDean Member
    edited December 2012

    @BlueVM - I've been playing with your script and modifying it to suit my needs. So far, I've got it returning the info without the need for exec() - so those servers that phpInfo with it disabled can still return results.

    It's given me the start I need to figure out how to go about it - thanks!

  • @BlueVM think you could toss your source code for the script up onto GitHub?

    DevOp based out of Chicago Somewhat knowledgeable about php.
  • HalfEatenPieHalfEatenPie Member
    edited December 2012

    @Adduc said: @BlueVM think you could toss your source code for the script up onto GitHub?

    Earlier in the thread...

    @BlueVM said: 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!

    Catalyst Host - Pie Approved!
  • I'll be dumping it onto github once I make some additional changes.

    BlueVM | 20% Off For Life => Coupon Code: FEBRUARYSPECIAL
  • Just want to thank you BlueVM for releasing your script to the public.

  • Me too, thanks @BlueVM

  • @Noxter, @DeanClinton - No problem. If you'd like you can post some example URLs with your customizations. I like seeing what people change :)

    BlueVM | 20% Off For Life => Coupon Code: FEBRUARYSPECIAL
  • Sure - I made some modifications to the client script I can send to you if you want (where it doesn't use exec() for those that have PHP secured down a little).

    http://www.serverup.org is my demo page - at the moment I'm making behind the scenes changes, I've not really made many changes to the front end.

  • Are these info (Such as load) refreshes when ever some one loads the page or it uses some type of Sql and stores data for lets say 5 minutes increment?

  • DeanDean Member
    edited December 2012

    No, they aren't stored. It's done by @BlueVM 's script. It's done via JSON, so pulls in every minute without the need for refresh. It's live data.

    One of the changes I will be making is to implement saving of the data and if it's older than so long will pull fresh data.

  • @NinjaHawk_Roel - Like DeanClinton said, it pulls every so often via json. (You can change the time increments). I plan on adding a way to pull the data into a database and have history as an optional element.

    BlueVM | 20% Off For Life => Coupon Code: FEBRUARYSPECIAL
  • @BlueVM said: I plan on adding a way to pull the data into a database and have history as an optional element.

    That sounds like an awesome plan :)

  • Guys, does anyone know a good status script I can use for Windows server? Or a script that pings ports etc... I need to monitor game server ports.

    Thanks

  • @n0my said: Windows server

    windows
    and server
    should never be together

  • Its game server bud :)

  • Leaving the obviously useless response aside, PRTG is awesome for windows servers.

    -- BOFH

  • Thanks Wintereise, will try it :)

  • Could have multiple instances of this script by vhost it looks like?

  • NikkiNikki Member
    edited December 2012

    If you remember https://github.com/nikkiii/status, I might have a new one in a while (A week or two).

    Been working on a new theme/backend system that'll allow mysql, sqlite etc for databases, and a new logging system :)

    http://servers.nikkii.us/

  • @Nikki very nice looking. seems statsend github is mia though?

  • @twain I have a few edits to it that I'll have to upload too, in Statsend it used bytes for disk size, which is tough when you have > 2TB :(, I just moved it to megabytes.

  • @Nikki - nice!!

  • AllSimple does a good job :)

    http://status.allsimple.net/

  • @Nikki Nice work. Will it offer live monitoring option similar status2k? Also any admin side demo available? Does it offer notification and logs similar to s2k which is available within admin area?

  • @NHRoel status2k's live monitoring is nothing special, just a setInterval(AJAX request)

  • @kamalnasser said: status2k's live monitoring is nothing special, just a setInterval(AJAX request)

    Yeah, I am aware of that. I hope Nikki can implement something similar :)

  • @NHRoel I have to write an admin panel still, and integrate a theme system too (Which is what I really wanted to do for this one, to make sure users can easily customize it).

    I was also thinking about ajax updating, I'll do that a little later :), Right now I have a few other projects going though.

  • @Nikki said: I have to write an admin panel still, and integrate a theme system too (Which is what I really wanted to do for this one, to make sure users can easily customize it).

    I was also thinking about ajax updating, I'll do that a little later :), Right now I have a few other projects going though.

    Sounds like a terrific plan :). Maybe a sql query based public front that supplies a saved value instead of reloading every time when page loads. You can understand why ;)

  • @NHRoel It'll use the same method v1 used, but it'll have a few more features like different storage backends, different themes, maybe a plugin system too.

    Right now it uses statsend to send data back to the mysql database, which works pretty well :D

  • Patiently waiting :).

    Till then, s2k will do the job.

  • Seems dimecadium's statsend is gone? https://github.com/dimecadmium/
    :(

  • @twain yeah it is :(

    However, I have a copy http://servers.nikkii.us/statsend.zip

  • Raymii's script is very nice.

    I am looking for something similar for monitoring my VPN nodes, but provide me with the network volume (GB) / average bandwidth (Mbps) used in last 30 days, not the kind that reset on 1st of month. The TX/RX get zeroed upon reboot anyway. May be showing in different colour if the average / volume usage over the last 30 days is over 80% of the set amount for that node. It would also need to limit to "physical" interfaces like eth0, venet0 and vmnet0.

    Can anyone suggest what would serve my need? The VPN nodes doesn't have much ram so best if no web/db server is installed. Thanks,

  • joepie91joepie91 Member, Provider

    @rorona said: Raymii's script is very nice.

    I am looking for something similar for monitoring my VPN nodes, but provide me with the network volume (GB) / average bandwidth (Mbps) used in last 30 days, not the kind that reset on 1st of month. The TX/RX get zeroed upon reboot anyway. May be showing in different colour if the average / volume usage over the last 30 days is over 80% of the set amount for that node. It would also need to limit to "physical" interfaces like eth0, venet0 and vmnet0.

    Can anyone suggest what would serve my need? The VPN nodes doesn't have much ram so best if no web/db server is installed. Thanks,

    What you're looking for is a "rolling average". That term may get you some useful hits on Google.

  • @joepie91 said: What you're looking for is a "rolling average". That term may get you some useful hits on Google.

    you might want to try vnstat.

    Quis custodiet ipsos custodes?
    https://raymii.org - https://cipherli.st
  • Great thanks @Nikkii. Btw your lowendping site is extremely useful. The multi trace is awesome for network troubleshooting

  • @BlueVM , thanks for sharing yours. Nice contribution ;)

Sign In or Register to comment.