Diferencia entre revisiones de «Munin»
De gacq wiki
(→bind) |
|||
(No se muestran 5 ediciones intermedias del mismo usuario) | |||
Línea 7: | Línea 7: | ||
Monitorea temperatura y voltajes sin demasiadas dependencias | Monitorea temperatura y voltajes sin demasiadas dependencias | ||
chmod +s /usr/bin/mbmon | chmod +s /usr/bin/mbmon | ||
+ | |||
+ | =smartmontools= | ||
+ | apt-get install smartmontools | ||
= apache = | = apache = | ||
Línea 23: | Línea 26: | ||
<pre><nowiki> | <pre><nowiki> | ||
a2enmod info | a2enmod info | ||
+ | </nowiki></pre> | ||
+ | |||
+ | = bind9 = | ||
+ | /etc/bind/named.conf.local | ||
+ | <pre><nowiki> | ||
+ | logging { | ||
+ | channel "querylog" { file "/var/log/bind9/query.log"; print-time yes; }; | ||
+ | category queries { querylog; }; | ||
+ | }; | ||
+ | </nowiki></pre> | ||
+ | |||
+ | <pre><nowiki> | ||
+ | mkdir -p /var/log/bind9/ | ||
+ | mkdir -p /var/lib/named/var/log/bind9/ | ||
+ | touch /var/lib/named/var/log/bind9/query.log | ||
+ | chown bind:adm /var/lib/named/var/log/bind9/query.log | ||
+ | ln -s /var/lib/named/var/log/bind9/query.log /var/log/bind9/query.log | ||
+ | |||
+ | touch /var/lib/munin/plugin-state/bind9.state | ||
+ | chown munin:munin /var/lib/munin/plugin-state/bind9.state | ||
+ | </nowiki></pre> | ||
+ | |||
+ | edit /etc/munin/plugins and replace | ||
+ | <pre><nowiki> | ||
+ | /usr/bin/perl | ||
+ | /var/lib/munin/plugin-state | ||
+ | </nowiki></pre> | ||
+ | |||
+ | /etc/logrotate.d/bind9-query | ||
+ | <pre><nowiki> | ||
+ | /var/lib/named/var/log/bind9/query.log { | ||
+ | daily | ||
+ | missingok | ||
+ | rotate 10 | ||
+ | postrotate | ||
+ | /etc/init.d/bind9 reload > /dev/null | ||
+ | endscript | ||
+ | create 664 bind adm | ||
+ | compress | ||
+ | delaycompress | ||
+ | notifempty | ||
+ | } | ||
+ | </nowiki></pre> | ||
+ | |||
+ | <pre><nowiki> | ||
+ | /etc/init.d/bind9 restart | ||
+ | /etc/init.d/munin-node restart | ||
+ | </nowiki></pre> | ||
+ | |||
+ | = bind9_rndc = | ||
+ | /etc/bind/named.conf.options | ||
+ | <pre><nowiki> | ||
+ | statistics-file "/var/run/bind/named.stats"; | ||
+ | </nowiki></pre> | ||
+ | |||
+ | <pre><nowiki> | ||
+ | touch /var/lib/named/var/run/bind/named.stats | ||
+ | chown bind:bind /var/lib/named/var/run/bind/named.stats | ||
+ | ln -s /var/lib/named/var/run/bind/named.stats /var/run/named.stats | ||
</nowiki></pre> | </nowiki></pre> |
Revisión actual del 15:28 20 mar 2009
ip_conntrack
chmod o+r /proc/net/ip_conntrack
mbmon
Monitorea temperatura y voltajes sin demasiadas dependencias
chmod +s /usr/bin/mbmon
smartmontools
apt-get install smartmontools
apache
To enable the handler uncomment the following section in the file /etc/apache2/apache2.conf:
ExtendedStatus On <Location /server-status> SetHandler server-status Order deny,allow Deny from all Allow from 127.0.0.1 </Location>
You will only need to ensure that you have the mod_info module loaded which you can do by running
a2enmod info
bind9
/etc/bind/named.conf.local
logging { channel "querylog" { file "/var/log/bind9/query.log"; print-time yes; }; category queries { querylog; }; };
mkdir -p /var/log/bind9/ mkdir -p /var/lib/named/var/log/bind9/ touch /var/lib/named/var/log/bind9/query.log chown bind:adm /var/lib/named/var/log/bind9/query.log ln -s /var/lib/named/var/log/bind9/query.log /var/log/bind9/query.log touch /var/lib/munin/plugin-state/bind9.state chown munin:munin /var/lib/munin/plugin-state/bind9.state
edit /etc/munin/plugins and replace
/usr/bin/perl /var/lib/munin/plugin-state
/etc/logrotate.d/bind9-query
/var/lib/named/var/log/bind9/query.log { daily missingok rotate 10 postrotate /etc/init.d/bind9 reload > /dev/null endscript create 664 bind adm compress delaycompress notifempty }
/etc/init.d/bind9 restart /etc/init.d/munin-node restart
bind9_rndc
/etc/bind/named.conf.options
statistics-file "/var/run/bind/named.stats";
touch /var/lib/named/var/run/bind/named.stats chown bind:bind /var/lib/named/var/run/bind/named.stats ln -s /var/lib/named/var/run/bind/named.stats /var/run/named.stats