项目作者: Wolnosciowiec-Archive

项目描述 :
A Zend Diagnostics check that notifies about the upcoming expiration of your domains.
高级语言: PHP
项目地址: git://github.com/Wolnosciowiec-Archive/DomainCertificateCheck.git
创建时间: 2017-03-31T04:58:49Z
项目社区:https://github.com/Wolnosciowiec-Archive/DomainCertificateCheck

开源协议:GNU Lesser General Public License v3.0

下载


DomainCertificateCheck

A Zend Diagnostics check that notifies about the upcoming expiration of your domains.

Configuration

  • domains: List of domains eg. [‘wolnosciowiec.net’, ‘cdn1.wolnosciowiec.net’]
  • daysRemainingToWarn: Days remaining to raise a warning for a domain
  • daysRemainingToFail: Days remaining to raise a failure for domain, if you have Zend Diagnostics in composer then eg. the deployment could be cancelled
    and marked as failed

Setup in plain PHP

  1. <?php
  2. $runner = new Runner();
  3. $check = new Wolnosciowiec\DomainCertificateCheck\Check\DomainCertificateCheck(
  4. ['wolnosciowiec.net', 'cdn1.wolnosciowiec.net'],
  5. 14,
  6. 3
  7. );
  8. $results = $runner->run();

Integration with Symfony and LiipMonitorBundle

  1. services:
  2. monitor.check.domain_certificate:
  3. class: Wolnosciowiec\DomainCertificateCheck\Check\DomainCertificateCheck
  4. arguments:
  5. domains: ['wolnosciowiec.net', 'cdn1.wolnosciowiec.net']
  6. daysRemainingToAlert: 14
  7. daysRemainingToWarn: 3
  8. tags:
  9. - { name: liip_monitor.check, alias: domain_certificate }