forked from nginx-modules/ngx_ustats_module
-
Notifications
You must be signed in to change notification settings - Fork 1
/
monitoring_test.sh
executable file
·12 lines (9 loc) · 974 Bytes
/
monitoring_test.sh
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
current_dir=$(dirname $0)
current_dir=$(readlink -f $current_dir)
#$current_dir/monitoring.py --url='http://wwwnew1.lan/nginx-ustats?json=1' --action=upstream-list
$current_dir/monitoring.py --url='http://wwwnew1.lan/nginx-ustats?json=1' --action=upstream-500 --tick=20 --tick-num=30 --upstream='backend_10.5.2.6:8002' --path=/tmp -v
#$current_dir/monitoring.py --url='http://wwwnew1.lan/nginx-ustats?json=1' --action=upstream-restart --tick=20 --tick-num=30 --upstream='backend_10.5.2.6:8002' --path=/tmp -v
#$current_dir/monitoring.py --url='http://www26.lan/nginx-ustats?json=1' --action=upstream-list
#$current_dir/monitoring.py --url='http://www26.lan/nginx-ustats?json=1' --action=upstream-500 --tick=20 --tick-num=30 --upstream='127.0.0.1:8002_127.0.0.1:8002' --path=/tmp
#$current_dir/monitoring.py --url='http://www26.lan/nginx-ustats?json=1' --action=upstream-restart --tick=20 --tick-num=30 --upstream='127.0.0.1:8002_127.0.0.1:8002' --path=/tmp -v