server-status-project / server-status

Simple, modern looking server status page with administration and some nice features, that can run even on shared webhosting
https://demo.status.sajdl.com/
Apache License 2.0
398 stars 88 forks source link

Uptime monitoring #3

Open Pryx opened 6 years ago

Pryx commented 6 years ago

Would be nice to have the option to use our script (cron) to check server up-time. It should be possible to connect that to services and provide a nice visualization like https://help.statuspage.io/knowledge_base/topics/uptime-calendar. This feature could be also used to identify network problems that aren't on our side, when webhook is triggered.

yigitkeremoktay commented 4 years ago

For some common platforms we can have some plugins (for apps like WP) and for no common apps we can create a simple php script that will check the db connection and reply with its status when a ping from the server-status was made

yigitkeremoktay commented 4 years ago

This feature will soon be available in Beta

thnilsen commented 3 years ago

Rather than recreating the wheel and having a new fully fledged monitoring system built inside server-status, why not try and integrate with an existing monitoring product? Seems like a lot of effort to create a good and reliable monitoring system with graphing from scratch when there are some ready made products one could make a plugin for.

One possible open source simple monitor solution that should be fairly simple to grab uptime graphs from is https://github.com/phpservermon/phpservermon.

What do you think @yigitkeremoktay @Pryx ?

yigitkeremoktay commented 3 years ago

I say let's give it a shot

Tealk commented 3 years ago

currently I am trying to develop something for it https://github.com/Tealk/phpservermon-serverstatus-bridge

Tealk commented 3 years ago

currently I have the problem that phpservermon does not pass the data correctly

perhaps it would be better to include a rudimentary query, could someone help me with this?

jhuesser commented 3 years ago

Would be also cool, to upgrade the API, to allow creating issues. With that we could trigger web hooks from other monitoring systems (for example PRTG etc.) so they can change a status if downtime is detected. I think this would also solve #2

Tealk commented 3 years ago

so i integrated the whole thing in server-status now, the corn is working but there is no update script yet and the acp is not ready yet either https://github.com/Tealk/server-status/blob/uptime-monitor/admin/cron.php