Add pgCluu scripts

master
Jeff Moe 6 years ago
parent cecaf5d843
commit 3936df495a

@ -0,0 +1,31 @@
#!/bin/bash
# forksand-pgcluu
# XXX kludge
rm -rf /var/www/html/pg1
mkdir -p /var/www/html/pg1
pgcluu \
--output=/var/www/html/pg1 \
/var/lib/pgcluu/data/pg1
# XXX kludge
rm -rf /var/www/html/pg2
mkdir -p /var/www/html/pg2
pgcluu \
--output=/var/www/html/pg2 \
/var/lib/pgcluu/data/pg2
# XXX kludge
rm -rf /var/www/html/pg3
mkdir -p /var/www/html/pg3
pgcluu \
--output=/var/www/html/pg3 \
/var/lib/pgcluu/data/pg3
# XXX kludge
rm -rf /var/www/html/pg4
mkdir -p /var/www/html/pg4
pgcluu \
--output=/var/www/html/pg4 \
/var/lib/pgcluu/data/pg4

@ -0,0 +1,51 @@
#!/bin/bash
# forksand-pgcluu_collectd
pgcluu_collectd \
--pid-file=/var/run/pgcluu/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
pgcluu_collectd \
--pid-file=/var/run/pgcluu/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
pgcluu_collectd \
--pid-file=/var/run/pgcluu/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
pgcluu_collectd \
--pid-file=/var/run/pgcluu/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
Loading…
Cancel
Save