Jump to content

Ideas About Server Status Plugin


Blesta Addons

Recommended Posts

Hello all ,

 

i will begin in coding new plugin "server status" , what i have in the first release is the fallowing

 

add/edit/delete  server .

monitor ports : 80 apache , 53 mysql , 21 ftp ;

 

check status in realtime  (on page load) .

 

 

 

TODO in next releases :

set ports to check  .

cron jobs to check servers every X minutes ;

alert by email when server is down .

store monitoring status for X last Days/mounths

show the average online/outage percent  .

 

any idea to add ?

Link to comment
Share on other sites

If you're running PHP-FPM you will need to do additional checks to ensure that it is running. You could integrate it with the PHP-FPM status page and even with the Apache status page for more detailed info.

this method need that some php function should be allowed , a lot of host block checking directly the apache status . we should implement function that is workable for all (root/users) .

my idea was likely like this http://www.phpservermonitor.org/ , but without storing data at the moments, if i have more time i can think to integrate the full script to blesta , but with the lock of time i decided to work with the basics now .

Link to comment
Share on other sites

I'm picturing colored statuses for each service that's being monitored in the client area or front facing page.
 
<span class="label label-success">OK</span>
<span class="label label-warning">Warning</span>
<span class="label label-danger">Critical</span>

Edit: I would also suggest caching the results for a period of time so that a lot of traffic won't cause a lot of requests. This could otherwise be used to cause a sort of dos attack. On page load, check cache. If cache is expired, query servers. If cache is not expired, serve from cache. Keep the cache for a minute or so.

Link to comment
Share on other sites

What about downloading a PHP page from the website and checking it for some text? e.g. blesta.com and <img [/size]src[/size]="[/size]http://www.blesta.com/wp-content/themes/blesta/img/logo.png" [/size]alt[/size]="[/size]Blesta[/size]" [/size]width[/size]="[/size]164[/size]" [/size]height[/size]="[/size]41[/size]">[/size]

this ned to make a custom regex and the admin should specify a customurl , as told before , i'm searching a basic way to work for all .

 

I like https://status.botox.bz/ & https://www.cloudflare.com/system-status with a way we can write a note why the server was down and updates etc.

the first link is not what we can implement , as need a master and client server , is used for monitoring servers with complexe data and structure like nagios , not usable in our case . the second link of cloudflare is a good way for the view template .  

 

I'm picturing colored statuses for each service that's being monitored in the client area or front facing page.

 

<span class="label label-success">OK</span>

<span class="label label-warning">Warning</span>

<span class="label label-danger">Critical</span>

Edit: I would also suggest caching the results for a period of time so that a lot of traffic won't cause a lot of requests. This could otherwise be used to cause a sort of dos attack. On page load, check cache. If cache is expired, query servers. If cache is not expired, serve from cache. Keep the cache for a minute or so.

Great note , i will add it to my code .

Link to comment
Share on other sites

  • 4 months later...
  • 2 years later...
  • 2 weeks later...

What about something like this: http://status.a2hosting.com/

Yes, it's from WHMCS... but I love how WHMCS does it.. As well as the status, you can put any news or other issues that is going on, and you can post updates as you work on it? I'd love have this kind of module! I love Blesta, but I've been noticing some things missing! I love how you can openly customize Blesta :) It's MUCH Cheaper, and better than WHMCS in my opinion!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...