You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.5 KiB
54 lines
1.5 KiB
#!/bin/bash
|
|
# forksand-pgcluu_collectd
|
|
|
|
mkdir -p /home/pgcluu/run
|
|
|
|
pgcluu_collectd \
|
|
--pid-file=/home/pgcluu/run/pg1.pid \
|
|
--daemonize \
|
|
--interval=60 \
|
|
--host=10.52.1.91 \
|
|
--dbuser=postgres \
|
|
--dbname=postgres \
|
|
--rotate-daily \
|
|
--enable-ssh \
|
|
--ssh-user pgcluu \
|
|
/var/lib/pgcluu/data/pg1 1>>/home/pgcluu/log/pg1-collectd.log 2>>/home/pgcluu/log/pg1-collectd.err
|
|
|
|
pgcluu_collectd \
|
|
--pid-file=/home/pgcluu/run/pg2.pid \
|
|
--daemonize \
|
|
--interval=60 \
|
|
--host=10.52.1.92 \
|
|
--dbuser=postgres \
|
|
--dbname=postgres \
|
|
--rotate-daily \
|
|
--enable-ssh \
|
|
--ssh-user pgcluu \
|
|
/var/lib/pgcluu/data/pg2 1>>/home/pgcluu/log/pg2-collectd.log 2>>/home/pgcluu/log/pg2-collectd.err
|
|
|
|
pgcluu_collectd \
|
|
--pid-file=/home/pgcluu/run/pg3.pid \
|
|
--daemonize \
|
|
--interval=60 \
|
|
--host=10.52.1.93 \
|
|
--dbuser=postgres \
|
|
--dbname=postgres \
|
|
--rotate-daily \
|
|
--enable-ssh \
|
|
--ssh-user pgcluu \
|
|
/var/lib/pgcluu/data/pg3 1>>/home/pgcluu/log/pg3-collectd.log 2>>/home/pgcluu/log/pg3-collectd.err
|
|
|
|
pgcluu_collectd \
|
|
--pid-file=/home/pgcluu/run/pg4.pid \
|
|
--daemonize \
|
|
--interval=60 \
|
|
--host=10.52.1.94 \
|
|
--dbuser=postgres \
|
|
--dbname=postgres \
|
|
--rotate-daily \
|
|
--enable-ssh \
|
|
--ssh-user pgcluu \
|
|
/var/lib/pgcluu/data/pg4 1>>/home/pgcluu/log/pg4-collectd.log 2>>/home/pgcluu/log/pg4-collectd.err
|
|
|