dd
This commit is contained in:
parent
b11036a080
commit
805d2c8424
2 changed files with 4 additions and 30 deletions
|
@ -18,6 +18,10 @@ munin_servername: "{{ ansible_fwdn }}"
|
||||||
munin_dirs:
|
munin_dirs:
|
||||||
- /var/run/munin
|
- /var/run/munin
|
||||||
- /etc/munin/plugins
|
- /etc/munin/plugins
|
||||||
|
- /var/cache/munin/www
|
||||||
|
- /var/lib/munin/cgi-tmp
|
||||||
|
- /var/lib/munin
|
||||||
|
- /var/cache/munin
|
||||||
munin_server_plugins:
|
munin_server_plugins:
|
||||||
- munin_stats
|
- munin_stats
|
||||||
- munin_update
|
- munin_update
|
||||||
|
|
|
@ -98,33 +98,3 @@ fi
|
||||||
owner: munin
|
owner: munin
|
||||||
group: munin
|
group: munin
|
||||||
when: not placeholder.stat.exists
|
when: not placeholder.stat.exists
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# ensure munin folder exist and have right permission
|
|
||||||
mkdir -p /var/lib/munin/cgi-tmp /var/cache/munin/www
|
|
||||||
chown -R munin:munin /var/lib/munin /var/cache/munin
|
|
||||||
chmod -R ugo+rw /var/lib/munin/cgi-tmp
|
|
||||||
chown munin:munin /var/log/munin/munin-graph.log
|
|
||||||
chown munin:munin /var/log/munin/munin-limits.log
|
|
||||||
chown munin:munin /var/log/munin/munin-html.log
|
|
||||||
|
|
||||||
# start cron
|
|
||||||
/usr/sbin/cron &
|
|
||||||
|
|
||||||
# start local munin-node
|
|
||||||
/usr/sbin/munin-node > /dev/null 2>&1 &
|
|
||||||
|
|
||||||
# confirm nodes
|
|
||||||
echo "Using the following munin nodes:"
|
|
||||||
echo " $THISNODENAME"
|
|
||||||
echo " $NODES"
|
|
||||||
|
|
||||||
# start apache
|
|
||||||
/usr/sbin/apache2ctl start
|
|
||||||
|
|
||||||
# display logs
|
|
||||||
touch /var/log/munin/munin-update.log
|
|
||||||
chown munin:munin /var/log/munin/munin-update.log
|
|
||||||
tail -f /var/log/munin/munin-*.log
|
|
||||||
|
|
Loading…
Reference in a new issue