# Parameters

**Simple mode**

<table border="1" id="bkmrk-nginx-simple-params" style="width: 66.2963%;"><tbody><tr><td style="width: 21.7907%;">--urls</td><td style="width: 77.9359%;">NGINX stub_status endpoint URLs, separated by commas. Each URL will generate an agent.</td></tr><tr><td style="width: 21.7907%;">--user</td><td style="width: 77.9359%;">username if the NGINX endpoint requires HTTP basic authentication, optional</td></tr><tr><td style="width: 21.7907%;">--password</td><td style="width: 77.9359%;">password if the NGINX endpoint requires HTTP basic authentication, optional</td></tr><tr><td style="width: 21.7907%;">--ssl</td><td style="width: 77.9359%;">whether to verify the URL HTTPS certificate or not, optional (default true)</td></tr><tr><td style="width: 21.7907%;">--prefix</td><td style="width: 77.9359%;">prefix for module names, optional</td></tr><tr><td style="width: 21.7907%;">--transfer_mode</td><td style="width: 77.9359%;">data transfer mode (native or tentacle), optional</td></tr><tr><td style="width: 21.7907%;">--tentacle_ip</td><td style="width: 77.9359%;">tentacle IP, optional</td></tr><tr><td style="width: 21.7907%;">--tentacle_port</td><td style="width: 77.9359%;">tentacle port, optional</td></tr><tr><td style="width: 21.7907%;">--interval</td><td style="width: 77.9359%;">monitoring interval in seconds, optional</td></tr><tr><td style="width: 21.7907%;">--allow_list</td><td style="width: 77.9359%;">regular expression to include only modules whose name matches, optional</td></tr><tr><td style="width: 21.7907%;">--deny_list</td><td style="width: 77.9359%;">regular expression to exclude modules whose name matches, optional</td></tr><tr><td style="width: 21.7907%;">--timeout</td><td style="width: 77.9359%;">maximum wait time for the HTTP request in seconds, optional (default 10)</td></tr></tbody></table>

**Advanced mode**

<table border="1" id="bkmrk-nginx-advanced-params"><tbody><tr><td>--conf</td><td>path to the configuration file</td></tr><tr><td>--targets_file</td><td>path to the file containing the NGINX URLs (mandatory when using --conf)</td></tr></tbody></table>

**Configuration file (--conf)**

```
username= username if the NGINX endpoint requires HTTP basic authentication, optional
password= password if the NGINX endpoint requires HTTP basic authentication, optional
verify_ssl= whether to verify the URL HTTPS certificate or not, optional
prefix= prefix for module names, optional
transfer_mode= data transfer mode (native or tentacle), optional
tentacle_ip= tentacle IP, optional
tentacle_port= tentacle port, optional
agents_group= name of the agent group the created agents will be assigned to, optional
agents_group_id= id of the agent group the created agents will be assigned to, optional
interval= monitoring interval in seconds, optional
allow_list= regular expression to include only modules whose name matches, optional
deny_list= regular expression to exclude modules whose name matches, optional
timeout= maximum wait time for the HTTP request in seconds, optional

```

**Example**

```ini
[CONF]
username=pandora
password=pandora
verify_ssl=false
prefix=nginx_
transfer_mode=native
tentacle_ip=127.0.0.1
tentacle_port=41121
interval=300
allow_list=
deny_list=
timeout=10

```

Targets file (`--targets_file`):

```
http://192.168.0.10/nginx_status
http://192.168.0.11/nginx_status

```