This is a very quick and well defined project for an experienced PHP programmer that should involve the modification of a couple of PHP functions.
I need two files customized in this open source project: [login to view URL]
The two files ([login to view URL] and [login to view URL]) can be found here: [login to view URL]
1. I need the function updateWebsite (in PHP file: [login to view URL]) to be able to also optionally read the web page that it checks for a simple JSON text string contained in the page: {"result":false, "error_message":"Stopped Receiving Data @ 12/14/2018 1:06:55 AM", "response_time":0.00019}
Only this JSON string is contained on the webpage, and nothing else.
The JSON file check via CURL must be able to use a defined private HTTP PORT (not port 80).
If JSON result is false, then this triggers the server is down. If JSON result is true, then this triggers the server is up.
The message JSON string should also be sent to [login to view URL] so it can be included in the subject and/or body of the notification message which is defined in the English language file: [login to view URL] under the 'notifications' => array(
Such as something like using a %MESSAGE% that can be included:
'off_email_body' => "Failed to connect to the following server:<br/><br/>Server: %LABEL%<br/>IP: %IP%<br/>Port: %PORT%<br/>Error: %ERROR%<br/>%MESSAGE%<br/>Date: %DATE%",