Commit Graph

57 Commits

Author SHA1 Message Date
Petr Suchy af5334a073
Jabber (XMPP) notifications (#852)
Added Jabber/XMPP notifications.
Closes #829.
2020-04-19 15:31:40 +02:00
Flávio Gomes da Silva Lisboa b346cd9c4d
Fixed fail to ping IPv6 #879 (#880)
Fixes #879.
2020-04-19 14:41:29 +02:00
TimZ99 ed6ef89df5
Hotfix - sslCheck warning days
Minimum amount of days the ssl cert needs to be valid before expiration wasn't used.
2020-02-09 15:16:23 +01:00
TimZ99 7ffc75598a
Refactor 2020-02-09 15:10:07 +01:00
Ing. Petr Suchy 5934e9a25c
*fix - checkSsl should check PHP_VERSION and not PHP_RELEASE_VERSION 2020-02-07 08:03:12 +01:00
Ing. Petr Suchy 8fa1bf6c0d
*edit - check ssl just when other error is not already in 2020-02-07 07:59:50 +01:00
Tim 45d1c03e5a
Feature/ssl cert expiration check (#831)
Added ssl expiration to warning state.
2020-02-04 16:44:48 +01:00
TimZ99 0550ff7dcf
Added ping error 2020-01-15 10:33:47 +01:00
TimZ99 6ba4b59239
Changed ping from socket to exec function
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>
2020-01-14 20:12:40 +01:00
Tim 07243f4cb5
Merge branch 'develop' into patch-1 2019-12-12 18:32:29 +01:00
TimZ99 97f8a6d637
Refactor
Removed unreachable code

Removed useless method overriding
2019-12-12 17:52:36 +01:00
Jeremy GHYS b7426291f8
Fix Server Downtime is displayed incorrectly
Server Downtime is displayed in correctly when receiveing e-mails about it.
2019-12-12 17:26:42 +01:00
TimZ99 2c51ad12f7
Implementing the PSR12 standard
Using PHPCS and PHPSBF.
2019-12-11 21:27:04 +01:00
TimZ99 0198d76a75
Added default timeout
Fixes #794.
2019-10-09 22:03:53 +02:00
TimZ99 a8eaedc817
Fixed undefined index
Fixes #787.
2019-09-30 17:50:20 +02:00
TimZ99 4ebe934b2e
Added timeout to services
Fixes #775.
2019-09-25 23:35:37 +02:00
Arkhee dd3bc35009
"Last online" stuck on "never" when checking some websites (#770)
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
2019-09-17 19:20:41 +02:00
Michael 6761776a8f
Allow HTTP/2 status responses (#695)
Fixed #672 and resolved #669.
2019-05-19 03:14:26 +02:00
TimZ99 6c14709d7c
Updated default template
Fixes #685.
- Updated to Bootstrap V4.
- Changed jqPlot to Chart.js.
- Updated jQuery to the V3.
- Changed Bootstrap Multiselect to Bootstrap-select.
2019-02-08 15:51:56 +01:00
Tim c645444db9
Added post field as addition to #631 (#642) 2018-09-08 14:03:39 +02:00
TimZ99 ed61b3854f
Fixed regex to prevent false negatives
Would fail if:
- location wat written without capital letter.
- the server redirected to www.
- there was no / at the end of the url.
2018-09-05 23:44:20 +02:00
Tim cf6f30adfc
Added combined notifications (#639)
If multiple servers go up or down together, you don't get spammed with notifications if you have this option enabled. It will send one combined notification.
2018-09-05 23:08:17 +02:00
Tim d33c891be2
Added redirect check (#626) 2018-09-05 22:58:50 +02:00
Tim b26f85d975
Added option to view latest (failing) server response and error (#627)
Shows:
- latest error.
- latest positive response.
- latest failure response.
2018-09-05 22:52:23 +02:00
Tim 72b262c706
Added the option to specify the request method (#631) 2018-09-05 22:42:08 +02:00
Tim 7aa7ec363b
Mark specific HTTP status codes as online (#628)
Add option to specify which HTTP status codes are considered as "online".
Closing #175.
2018-09-05 22:34:19 +02:00
TimZ99 f21f3db19e
Typo fix, removed unused code & updated documentation 2018-07-12 17:31:00 +02:00
TimZ99 1c984b30ff
Updated documentation, added some small changes 2018-07-12 17:31:00 +02:00
TimZ99 e2c424e167
Spacing, indentation and braces
Co-Authored-By: Scrutinizer Auto-Fixer <auto-fixes@scrutinizer-ci.com>
2018-07-12 17:31:00 +02:00
Danial 82d01b07f7 Add support for "site online when pattern not found" (#579)
Choose to mark a website offline of online is the pattern is (not) found.
2018-05-24 12:49:26 +02:00
Matthew Pattman 0580e75642
Added last offline and the duration of the last outage
Co-authored-by: TimZ99 <TimZ99@users.noreply.github.com>
2018-04-27 21:14:46 +02:00
Timz99 79742fe6bd
Fixed wrong ping error
- Fixed error: Failed to parse address &quot;8.8.8.8&quot;
- Added correct error message.

NOTE:
This will not fix other problems with ping, non-root user are having
(on unix)!
2018-04-25 14:15:44 +02:00
eezec 7302e669fd
Fixes #500 - updatePing (#516)
Moved rtime out of the if/else block, this fixes #500.
2018-03-27 23:36:10 +02:00
Tim 6eda990ed0
Added support for Telegram (#554)
Added support for Telegram. Notifications can be received in private chat or in groupchat.

This will close #389 and is a preview of what's coming next (#459) 😉.
2018-03-27 23:36:09 +02:00
Tim e910367faa
Corrected Pushover comment
Changed sms to pushover.
2018-03-27 23:36:08 +02:00
Tim b9a3b203b4
Fixed #350 Email encoding
Removed utf8_decode().

Co-authored-by: shuhai <admin@4wei.cn>
2018-03-27 23:36:06 +02:00
Nls 8d720496d4
Refactor header checking to be sure that we can't crash this ! 2018-03-27 23:36:02 +02:00
Nls b835de1cf6
Add optionnal header check on StatusUpdater 2018-03-27 23:36:02 +02:00
Nls 6be807cf9a
Add header_name & header_value to the server object 2018-03-27 23:36:01 +02:00
Pepijn Over 32e018b6bb
preparing for 3.2.0 release 2018-03-27 23:24:25 +02:00
Tom Hatzer 363f67b335 Add copyright notice to updatePing method 2016-12-23 11:30:27 +01:00
Tom Hatzer 4c7d2bd4f3 Add updatePing method to check if ip is pingable 2016-12-23 11:29:28 +01:00
Victor Macko dc132831d4 Merge branch 'develop' of github.com:phpservermon/phpservermon
Conflicts:
	src/includes/functions.inc.php
	src/lang/en_US.lang.php
	src/psm/Module/Config/Controller/ConfigController.class.php
	src/psm/Util/Server/Updater/StatusUpdater.php
	src/templates/config/config.tpl.html
2016-07-06 22:43:10 +10:00
Samuel Denis-D'Ortun dcd552517b Merge branch 'davyrolink-201410_log-users' into develop 2016-05-21 20:34:16 -04:00
Samuel Denis-D'Ortun 953a7ddf57 Mute error when fsockopen fail to connect to host 2016-05-21 20:34:03 -04:00
Samuel Denis-D'Ortun c811876c89 Merge branch '201410_log-users' of https://github.com/davyrolink/phpservermon into davyrolink-201410_log-users
# Conflicts:
#	src/includes/psmconfig.inc.php
#	src/psm/Util/Install/Installer.php
2016-05-21 20:33:31 -04:00
Pavel Dvořák 24d7fee63e Use salt to encrypt the website check password #297 2016-05-21 19:55:35 -04:00
Pavel Dvořák 340660da4b Issue #96 Authentication fields for website/services
- 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
2016-05-21 17:08:01 +02:00
Pep 653fe4f7b8 Merge pull request #195 from Esselans/develop
Improved translation & UTF email output
2016-01-31 00:28:04 +01:00
Laurent a02ea03399 If pattern is set up, you cannot catch server problems
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
2015-06-01 00:22:10 +02:00