« Modèle:Config/Munin/Bdd » : différence entre les versions

De wiki.infini
import>Fleon
Aucun résumé des modifications
m (5 révisions importées)
 
(2 versions intermédiaires par un autre utilisateur non affichées)
Ligne 11 : Ligne 11 :
{{RootCmd | hostname={{{host|}}}
{{RootCmd | hostname={{{host|}}}
  | cd /etc/munin/plugins/
  | cd /etc/munin/plugins/
  | ln -sf /usr/share/munin/plugins/mysql_ ./mysql_bin_relay_log \
  | ln -sf /usr/share/munin/plugins/mysql_ ./mysql_bin_relay_log
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_commands \<br/>
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_commands<br/>
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_connections \<br/>
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_connections<br/>
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_files_tables \<br/>
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_files_tables<br/>
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_innodb_bpool \<br/>
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_innodb_bpool<br/>
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_innodb_bpool_act \<br/>
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_innodb_bpool_act<br/>
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_innodb_insert_buf \<br/>
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_innodb_insert_buf<br/>
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_innodb_io \<br/>
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_innodb_io<br/>
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_innodb_io_pend
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_innodb_io_pend
}}
}}
Ligne 24 : Ligne 24 :
{{RootCmd | hostname={{{host|}}}
{{RootCmd | hostname={{{host|}}}
  | ln -sf /usr/share/munin/plugins/mysql_ ./mysql_innodb_log
  | ln -sf /usr/share/munin/plugins/mysql_ ./mysql_innodb_log
| ln -sf /usr/share/munin/plugins/mysql_ ./mysql_innodb_rows
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_innodb_rows<br/>
| ln -sf /usr/share/munin/plugins/mysql_ ./mysql_innodb_semaphores
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_innodb_semaphores<br/>
| ln -sf /usr/share/munin/plugins/mysql_ ./mysql_innodb_tnx
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_innodb_tnx<br/>
| ln -sf /usr/share/munin/plugins/mysql_ ./mysql_myisam_indexes
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_myisam_indexes<br/>
| ln -sf /usr/share/munin/plugins/mysql_ ./mysql_network_traffic
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_network_traffic<br/>
| ln -sf /usr/share/munin/plugins/mysql_ ./mysql_qcache
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_qcache<br/>
| ln -sf /usr/share/munin/plugins/mysql_ ./mysql_qcache_mem
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_qcache_mem<br/>
| ln -sf /usr/share/munin/plugins/mysql_ ./mysql_replication
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_replication<br/>
| ln -sf /usr/share/munin/plugins/mysql_ ./mysql_select_types
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_select_types
}}
}}


{{RootCmd | hostname={{{host|}}}
{{RootCmd | hostname={{{host|}}}
  | ln -sf /usr/share/munin/plugins/mysql_ ./mysql_slow
  | ln -sf /usr/share/munin/plugins/mysql_ ./mysql_slow
| ln -sf /usr/share/munin/plugins/mysql_ ./mysql_sorts
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_sorts<br/>
| ln -sf /usr/share/munin/plugins/mysql_ ./mysql_table_locks
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_table_locks<br/>
| ln -sf /usr/share/munin/plugins/mysql_ ./mysql_tmp_tables
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_tmp_tables<br/>
| ln -sf /usr/share/munin/plugins/mysql_queries ./
ln -sf /usr/share/munin/plugins/mysql_queries ./<br/>
| ln -sf /usr/share/munin/plugins/mysql_slowqueries ./
ln -sf /usr/share/munin/plugins/mysql_slowqueries ./<br/>
| ln -sf /usr/share/munin/plugins/mysql_threads ./
ln -sf /usr/share/munin/plugins/mysql_threads ./
}}
}}



Version actuelle datée du 12 février 2020 à 20:53


Installation des paquets utiles :

root # apt-get install libcache-cache-perl

Monitoring des services spécifiques :

root # cd /etc/munin/plugins/
root # ln -sf /usr/share/munin/plugins/mysql_ ./mysql_bin_relay_log

ln -sf /usr/share/munin/plugins/mysql_ ./mysql_commands
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_connections
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_files_tables
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_innodb_bpool
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_innodb_bpool_act
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_innodb_insert_buf
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_innodb_io
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_innodb_io_pend

root # ln -sf /usr/share/munin/plugins/mysql_ ./mysql_innodb_log

ln -sf /usr/share/munin/plugins/mysql_ ./mysql_innodb_rows
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_innodb_semaphores
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_innodb_tnx
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_myisam_indexes
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_network_traffic
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_qcache
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_qcache_mem
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_replication
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_select_types

root # ln -sf /usr/share/munin/plugins/mysql_ ./mysql_slow

ln -sf /usr/share/munin/plugins/mysql_ ./mysql_sorts
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_table_locks
ln -sf /usr/share/munin/plugins/mysql_ ./mysql_tmp_tables
ln -sf /usr/share/munin/plugins/mysql_queries ./
ln -sf /usr/share/munin/plugins/mysql_slowqueries ./
ln -sf /usr/share/munin/plugins/mysql_threads ./

Suppression des plugins :

root # rm /etc/munin/plugins/nfs*