Skip to content
Snippets Groups Projects
Commit e4e5a93e authored by hahn's avatar hahn
Browse files

add ssl check in apmonitor client

parent 98f739e3
No related branches found
No related tags found
No related merge requests found
...@@ -242,7 +242,7 @@ class appmonitorcheck { ...@@ -242,7 +242,7 @@ class appmonitorcheck {
* ) * )
* @return boolean * @return boolean
*/ */
public function checkCert($aParams) { private function checkCert($aParams) {
$sUrl = isset($aParams["url"]) $sUrl = isset($aParams["url"])
? $aParams["url"] ? $aParams["url"]
: 'http'. ($_SERVER['HTTPS'] ? 's' : '') . '://' . $_SERVER['SERVER_NAME'] .':' . $_SERVER['SERVER_PORT'] : 'http'. ($_SERVER['HTTPS'] ? 's' : '') . '://' . $_SERVER['SERVER_NAME'] .':' . $_SERVER['SERVER_PORT']
...@@ -325,7 +325,7 @@ class appmonitorcheck { ...@@ -325,7 +325,7 @@ class appmonitorcheck {
* ) * )
* @return boolean * @return boolean
*/ */
public function checkDiskfree($aParams) { private function checkDiskfree($aParams) {
$this->_checkArrayKeys($aParams, "directory", "critical"); $this->_checkArrayKeys($aParams, "directory", "critical");
$sDirectory = $aParams["directory"]; $sDirectory = $aParams["directory"];
...@@ -378,7 +378,7 @@ class appmonitorcheck { ...@@ -378,7 +378,7 @@ class appmonitorcheck {
* ) * )
* @return boolean * @return boolean
*/ */
public function checkFile($aParams) { private function checkFile($aParams) {
$aOK = array(); $aOK = array();
$aErrors = array(); $aErrors = array();
$this->_checkArrayKeys($aParams, "filename"); $this->_checkArrayKeys($aParams, "filename");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment