|
|
|
@ -1,8 +1,10 @@
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
# forksand-pgcluu_collectd
|
|
|
|
|
|
|
|
|
|
mkdir -p /home/pgcluu/run
|
|
|
|
|
|
|
|
|
|
pgcluu_collectd \
|
|
|
|
|
--pid-file=/var/run/pgcluu/pg1.pid \
|
|
|
|
|
--pid-file=/home/pgcluu/run/pg1.pid \
|
|
|
|
|
--daemonize \
|
|
|
|
|
--interval=60 \
|
|
|
|
|
--host=10.52.1.91 \
|
|
|
|
@ -11,10 +13,10 @@ pgcluu_collectd \
|
|
|
|
|
--rotate-daily \
|
|
|
|
|
--enable-ssh \
|
|
|
|
|
--ssh-user pgcluu \
|
|
|
|
|
/var/lib/pgcluu/data/pg1
|
|
|
|
|
/var/lib/pgcluu/data/pg1 1>>/home/pgcluu/log/pg1-collectd.log 2>>/home/pgcluu/log/pg1-collectd.err
|
|
|
|
|
|
|
|
|
|
pgcluu_collectd \
|
|
|
|
|
--pid-file=/var/run/pgcluu/pg2.pid \
|
|
|
|
|
--pid-file=/home/pgcluu/run/pg2.pid \
|
|
|
|
|
--daemonize \
|
|
|
|
|
--interval=60 \
|
|
|
|
|
--host=10.52.1.92 \
|
|
|
|
@ -23,10 +25,10 @@ pgcluu_collectd \
|
|
|
|
|
--rotate-daily \
|
|
|
|
|
--enable-ssh \
|
|
|
|
|
--ssh-user pgcluu \
|
|
|
|
|
/var/lib/pgcluu/data/pg2
|
|
|
|
|
/var/lib/pgcluu/data/pg2 1>>/home/pgcluu/log/pg2-collectd.log 2>>/home/pgcluu/log/pg2-collectd.err
|
|
|
|
|
|
|
|
|
|
pgcluu_collectd \
|
|
|
|
|
--pid-file=/var/run/pgcluu/pg3.pid \
|
|
|
|
|
--pid-file=/home/pgcluu/run/pg3.pid \
|
|
|
|
|
--daemonize \
|
|
|
|
|
--interval=60 \
|
|
|
|
|
--host=10.52.1.93 \
|
|
|
|
@ -35,10 +37,10 @@ pgcluu_collectd \
|
|
|
|
|
--rotate-daily \
|
|
|
|
|
--enable-ssh \
|
|
|
|
|
--ssh-user pgcluu \
|
|
|
|
|
/var/lib/pgcluu/data/pg3
|
|
|
|
|
/var/lib/pgcluu/data/pg3 1>>/home/pgcluu/log/pg3-collectd.log 2>>/home/pgcluu/log/pg3-collectd.err
|
|
|
|
|
|
|
|
|
|
pgcluu_collectd \
|
|
|
|
|
--pid-file=/var/run/pgcluu/pg4.pid \
|
|
|
|
|
--pid-file=/home/pgcluu/run/pg4.pid \
|
|
|
|
|
--daemonize \
|
|
|
|
|
--interval=60 \
|
|
|
|
|
--host=10.52.1.94 \
|
|
|
|
@ -47,5 +49,5 @@ pgcluu_collectd \
|
|
|
|
|
--rotate-daily \
|
|
|
|
|
--enable-ssh \
|
|
|
|
|
--ssh-user pgcluu \
|
|
|
|
|
/var/lib/pgcluu/data/pg4
|
|
|
|
|
/var/lib/pgcluu/data/pg4 1>>/home/pgcluu/log/pg4-collectd.log 2>>/home/pgcluu/log/pg4-collectd.err
|
|
|
|
|
|
|
|
|
|