Skip to content
Snippets Groups Projects
Select Git revision
  • 32a6e80ddef681947f7c2d9421973687e672f11f
  • master default protected
  • simple-task/7248-eol-check-add-node-22
  • 6877_check_iml_deployment
4 results

check_couchdb-lb

Blame
  • appmonitor-client.class.php 19.21 KiB
    <?php
    if (!class_exists('appmonitorcheck')) {
        require_once 'appmonitor-checks.class.php';
    }
    
    /**
     * ____________________________________________________________________________
     * 
     *  _____ _____ __                   _____         _ _           
     * |     |     |  |      ___ ___ ___|     |___ ___|_| |_ ___ ___ 
     * |-   -| | | |  |__   | .'| . | . | | | | . |   | |  _| . |  _|
     * |_____|_|_|_|_____|  |__,|  _|  _|_|_|_|___|_|_|_|_| |___|_|  
     *                          |_| |_|                              
     *                           _ _         _                                            
     *                       ___| |_|___ ___| |_                                          
     *                      |  _| | | -_|   |  _|                                         
     *                      |___|_|_|___|_|_|_|   
     *                                                               
     * ____________________________________________________________________________
     * 
     * APPMONITOR :: CLASS FOR CLIENT CHECKS<br>
     * <br>
     * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE <br>
     * LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR <br>
     * OTHER PARTIES PROVIDE THE PROGRAM ?AS IS? WITHOUT WARRANTY OF ANY KIND, <br>
     * EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED <br>
     * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE <br>
     * ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. <br>
     * SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY <br>
     * SERVICING, REPAIR OR CORRECTION.<br>
     * <br>
     * --------------------------------------------------------------------------------<br>
     * <br>
     * --- HISTORY:<br>
     * 2014-10-24  0.5    axel.hahn@iml.unibe.ch<br>
     * 2014-11-21  0.6    axel.hahn@iml.unibe.ch  removed meta::ts <br>
     * 2018-08-23  0.50   axel.hahn@iml.unibe.ch  show version<br>
     * 2018-08-24  0.51   axel.hahn@iml.unibe.ch  method to show local status page<br>
     * 2018-08-27  0.52   axel.hahn@iml.unibe.ch  add pdo connect (starting with mysql)<br>
     * 2018-11-05  0.58   axel.hahn@iml.unibe.ch  additional flag in http check to show content<br>
     * 2019-05-31  0.87   axel.hahn@iml.unibe.ch  add timeout as param in connective checks (http, tcp, databases)<br>
     * 2020-05-03  0.110  axel.hahn@iml.unibe.ch  update renderHtmloutput<br>
     * 2023-07-06  0.128  axel.hahn@unibe.ch      update httpcontent check<br>
     * 2024-07-19  0.137  axel.hahn@unibe.ch      php 8 only: use typed variables
     * 2024-11-22  0.141  axel.hahn@unibe.ch      Set client version to server version after updating http, mysqli and app checks
     * 2025-01-02  0.149  axel.hahn@unibe.ch      add getChecks method
     * --------------------------------------------------------------------------------<br>
     * @version 0.149
     * @author Axel Hahn
     * @link TODO
     * @license GPL
     * @license http://www.gnu.org/licenses/gpl-3.0.html GPL 3.0
     * @package IML-Appmonitor
     */
    class appmonitor
    {
    
        /**
         * Name and Version number
         * @var string
         */
        protected string $_sVersion = 'php-client-v0.149';
    
        /**
         * config: default ttl for server before requesting the client check again
         * value is in seconds
         * @var int
         */
        protected int $_iDefaultTtl = 300;