NGINX web server discovery

NGINX is an open source web server with a load balancer. Discovery identifies the web server and information related to the load balancer.

Discovery identifies NGINX server software using the following process:

1. The NGINX Process Classifier detects a running process that matches the following criteria during the exploration of a Linux server:
  • Name starts with nginx
  • Name contains master
2. If there is a match:
  • A record is created in the NGINX Web Server [cmdb_ci_nginx_web_server] table.
  • A Runs on relationship is created in the CI Relationship [cmdb_rel_ci] table for a Linux server (Linux Server [cmdb_ci_linux_server]) and for an NGINX web server (NGINX Web Server [cmdb_ci_nginx_web_server]) .

    The following two probes are triggered:

    • NGINX – Version: This probe contains a Bourne shell script. It determines the version of NGINX and populates the NGINX Web Server [cmdb_ci_nginx_web_server] table.
    • NGINX – Get Configuration: This probe contains a Bourne shell script and an argument that determines the path of the NGINX configuration file. The probe identifies configuration parameters based on keywords within the configuration file and returns them as a single payload result.
    The sensor on the ServiceNow instance parses the payload result and populates the CMDB.
You must have the following requirements to discover an NGINX webserver:
  • NGINX is installed and running on the server.
  • The MID Server has access to the NGINX configuration file, which is /etc/nginx/nginx.conf by default.