Diferencia entre revisiones de «Munin»

De gacq wiki
Saltar a: navegación, buscar
(bind)
(bind)
 
Línea 28: Línea 28:
 
</nowiki></pre>
 
</nowiki></pre>
  
= bind =
+
= bind9 =
 
/etc/bind/named.conf.local
 
/etc/bind/named.conf.local
 
<pre><nowiki>
 
<pre><nowiki>
Línea 73: Línea 73:
 
/etc/init.d/bind9 restart
 
/etc/init.d/bind9 restart
 
/etc/init.d/munin-node 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