Diferencia entre revisiones de «Munin»
De gacq wiki
(→bind) |
|||
Línea 42: | Línea 42: | ||
chown bind:adm /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 | 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> | </nowiki></pre> |
Revisión del 12:12 20 mar 2009
Contenido
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
bind
/etc/bind/named.conf.local
logging { channel "querylog" { file "/var/log/bind9/query.log"; print-time yes; }; category queries { querylog; }; };
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