230 views

Description

Discovery to NGINX web server, Probes 'NGINX – Version' and 'NGINX – Get Configuration' do not trigger

Nginx - Version > /nav_to.do?uri=discovery_probes.do?sys_id=997b1168d7432100a866ee5b5e61031e
Nginx - Get Configuration > /nav_to.do?uri=discovery_probes.do?sys_id=7920e49ed7722100a866ee5b5e610399

Both probes related to
Process Classification: NGINX
/nav_to.do?uri=discovery_classy_proc.do?sys_id=1f0340dad7722100a866ee5b5e610357

Steps to Reproduce

Run discovery to NGINX web server where Nginx is installed through different configuration path other than the default path '/etc/nginx/nginx.conf'.


The ps -ef | grep nginx command on the server gives an output like this:

nginx: main process nginx -c /home/ubuntu/<file_name>.conf

Workaround

This problem has been fixed. If you are able to upgrade, review the Fixed In section to determine the latest version with a permanent fix your instance can be upgraded to.

The workaround is to modify the Process Classification "NGINX" /nav_to.do?uri=discovery_classy_proc.do?sys_id=1f0340dad7722100a866ee5b5e610357 by changing the line:
cmd = '';

to:
cmd = 'nginx';

The whole new code should look like the following:
// Command for nginx is the first parameter
var cmd = discoUtil.getParameterByIndex(0);
if (cmd.indexOf('-') == 0)
cmd = 'nginx';


Related Problem: PRB1383994

Seen In

SR - Security - Integration Framework - Madrid 2019 Q2
SR - Security - Support Common - Madrid 2019 Q2
SR - Security - Support Orchestration - Madrid 2019 Q2
SR - SIR - ElasticSearch Integration - Madrid 2019 Q1
SR - SIR - Exchange Online Integration - New York 2019 Q3 2
SR - SIR - Security Incident Response - Madrid 2019 Q2
SR - SIR - Security Incident Response PA Content - New York 2019 Q3
SR - SIR - Security Incident Response UI Patch - London 2019 Q2 v.6.2.3
SR - SIR - Store SecOps Setup Assistant - Madrid 2019 Q2
SR - SIR - Store Threat Core - Madrid 2019 Q2
SR - SIR - Store Trusted Security Circles Client - New York 2019 Q3
SR - VR - Qualys - New York 2019 Q3
SR - VR - Vulnerability Response - New York 2019 Q3
SR - VR - Vulnerability Response PA Content - Madrid 2019 Q2

Fixed In

Orlando Patch 3
Paris

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2020-11-17 11:54:12
Published:2020-11-17