Discover Centmin Mod today
Register Now

Intercept error nginx about SSL, is this a good idea?

Discussion in 'Domains, DNS, Email & SSL Certificates' started by Sysnet, Jul 25, 2021.

Tags:
  1. Sysnet

    Sysnet New Member

    6
    0
    1
    Nov 17, 2020
    Ratings:
    +0
    Local Time:
    12:29 AM
    Hi everyone, first a big thank you for this forum and the continue work of eva2000 related to Nginx.


    I think to create a plugin who has the feature of monitoring a website SSL certificate and check everything is okay

    this plugin will be installed in the same server who has all the Server Blocks Nginx, that mean a self hosted monitoring.

    I want to avoid resources used cpu and memory, so the functionality of plugin will be different in comparison to traditional monitoring system.

    Create a module in Nginx or Lua to intercept all error logs related to SSL, that means intercept this directive error_log

    server {
    # Server configuration
    error_log /var/log/error.log;
    }

    My main question is, does nginx error_log register (logged) all error related to SSL?
    If the above question is true, what do you think about this idea?
     
    Last edited: Jul 25, 2021
  2. eva2000

    eva2000 Administrator Staff Member

    47,292
    10,703
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,628
    Local Time:
    3:29 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
  3. Sysnet

    Sysnet New Member

    6
    0
    1
    Nov 17, 2020
    Ratings:
    +0
    Local Time:
    12:29 AM
    Thank you eva2000