If the user has entered an IP address for the connectivity_sanity_test field on the server edit page, that IP address will be pinged before and after that server gets checked. If either of those pings fails, the server uptime results will not be logged because it is assumed that the phpservermon system is experiencing a connectivity problem. If both sanity test pings succeed, the server uptime results will be logged as normal.
* use openssl_x509_parse to parse certinfo (avoid literal case conflict)
* use OS specific ping (CLI/socket)
* Moved Windows and non-Windows check to a private class
Co-authored-by: TimZ99 <TimZ99@users.noreply.github.com>
As there are a lot of problems with permissions and ping, the function now uses exec(). Resolved#405, #576, #614, #748.
Co-Authored-By: Sean Perryman <se@nperryman.com>
Co-Authored-By: Luke C <crawford.luke@outlook.com>
Fixes#765
* // PATCH Arkhee : fix/last-online-stuck-on-never-if-webpage-too-large
// The update un "servers" table does not work
// Symptom : "Last online" stays stuck on "never"
// Reason: last_output contains the full webpage, too long for the query
// _This may depend on mysql configuration on the server_, explaining why some have the problem or not
// Field is 255 Chars, and request does not work anyway is loaded web page is too large in last_output
// So force truncate to 250 or less before query
* Spelling
* Update varchar to text
* Update tot 3.4.1
* Update tot 3.4.1
* Update README.rst
* Updated to 5000 characters
- Fixed error: Failed to parse address "8.8.8.8"
- Added correct error message.
NOTE:
This will not fix other problems with ping, non-root user are having
(on unix)!
- File functions.inc.php - modified and added features psm_curl_get parameters for website_username and website_password
- File functions.inc.php - new features and psm_password_encrypt psm_password_decrypt to encrypt and decrypt passwords
- Adjusted basic language EN and supplemented by new language CZ phrase
- ConfigController.php - adjusted executeIndex method of password encryption key for each installation separately + executeSave method of saving the settings + added labels to methods getLabels
- AbstractServerController.php - adjusted method getServers a login password of the name
- ServerController.php - adjusted executeEdit method for storing information about name and password + executeSave method of storage in a database + method getLabels on labels
- Installer.php - adjusted method install a new configuration values for the encryption key passwords + method installTables a new table structure servers + method upgrade320 the new structure
- StatusUpdater.php - adjusted method update the transmission website_username and website_password + method updateWebsite adjusted parameters passed to the function psm_curl_get
- Modified template: config/config.tpl.html, server/update.tpl.html, view.tpl.html
- Adapted javascript scripts.js
The need : to have 3 differents error codes :
- Timeout
- Http status code
- pattern not found.
The error of status code or timebout where overwritten by pattern, if set up