Browse Source

optional port

devel
Dmitry Novikov 7 years ago
parent
commit
a711e0e8d3
  1. 2
      agent/netflow/netflow_collect.sh

2
agent/netflow/netflow_collect.sh

@ -15,7 +15,7 @@ spec.loader.exec_module(ls)
db = ls.DATABASES db = ls.DATABASES
ldb = db.get('default') ldb = db.get('default')
print('%s %s %s %s %d' % (ldb['NAME'], ldb['USER'], print('%s %s %s %s %d' % (ldb['NAME'], ldb['USER'],
ldb['PASSWORD'], ldb['HOST'], ldb['PORT']))"`
ldb['PASSWORD'], ldb['HOST'], ldb.get('PORT', 3306)))"`
if ! ping -c 1 ${mysql_host} &> /dev/null; then if ! ping -c 1 ${mysql_host} &> /dev/null; then
echo "Host ${mysql_host} is not accessible" echo "Host ${mysql_host} is not accessible"

Loading…
Cancel
Save