Parameters
Simple mode
| --urls | NGINX stub_status endpoint URLs, separated by commas. Each URL will generate an agent. |
| --user | username if the NGINX endpoint requires HTTP basic authentication, optional |
| --password | password if the NGINX endpoint requires HTTP basic authentication, optional |
| --ssl | whether to verify the URL HTTPS certificate or not, optional (default true) |
| --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 |
| --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 (default 10) |
Advanced mode
| --conf | path to the configuration file |
| --targets_file | path to the file containing the NGINX URLs (mandatory when using --conf) |
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
[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