firesnake / is-it-running
A tool to check if a website is up and delivers the expected site
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 3
Open Issues: 5
Type:project
Requires
- php: >=8.0
- ext-curl: *
- ext-http: *
- adistoe/env-loader: ^1.1
- doctrine/annotations: ^1.13
- doctrine/orm: ^2.13
- dragonmantank/cron-expression: ^3.3
- phpmailer/phpmailer: ^6.6
- symfony/cache: ^6.1
- twig/twig: ^3.4
README
Table of Contents
About
Is it running is a monitoring System for websites. It allows you to monitor several environments with predefined checks. How these environments are addressed, is completely up to you.
In every Environment you can define variables, which then in turn can be used by the individual checks.
Installation
The Software uses doctrine. To be able to use doctrine you have to set it up. Here is a link to their documentation.
The Software also provides a few cli commands. In order for them to work, you must create
a bootstrap.php
file. It must be located in workdir/bootstrap.php
.
This file must include the Autoloader of composer and, provide the method
public function getEntityManager(): EntityManager;
Once that is done, all you have to do is set up the database and create the tables. You will find how that is done in the documentation of Doctrine.
Write you own CheckRunner
The CheckRunner is the main performer of this software.
In the CheckRunner you can examine the response of the curlResponse
and determine if the check is successful or failed. This class is an example of a check runner.
firesnake\isItRunning\entities\CheckableEnvironment\HttpStatusTest
Each CheckRunner must implement the interface firesnake\isItRunning\entities\CheckableEnvironment\CheckRunner
You must however add your own CheckRunner in the PerformerRegistry. You can access
the registry via an instance of the firesnake\isItRunning\IsItRunning
class.
The Comment of the checkRunner is only used if the test fails.
How to use
- Create an Environment
- Create a Check and configure it how you need it
- Wait on the dashboard (It does refresh itself every minute)
You can use the EnvironmentVariables for the url of a Check. This syntax must be fulfilled:
{{variableName}}rest-of-url
Where you place the variable is up to you. If needed, multiple variables can be used.