User Tools

Site Tools


munin_statistics

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
munin_statistics [2022/07/21 21:41] adminmunin_statistics [2022/07/21 23:06] (current) admin
Line 37: Line 37:
 Because Require local was changed to all, you can view stats instead of a 403. Because Require local was changed to all, you can view stats instead of a 403.
  
-To change servername on graphs from: localhost.localdomain+==== Change servername on graphs====
 <code> <code>
 vi /etc/munin/munin-node.conf vi /etc/munin/munin-node.conf
 #uncomment and update to: #uncomment and update to:
 host_name server.domain.com host_name server.domain.com
 +</code>
 +
 +<code>
 +vi /etc/munin/munin.conf
 +#Change
 +#[localhost.localdomain]
 +#to
 +[server.domain.com]
 +    address 127.0.0.1
 +    use_node_name yes
 +
 </code> </code>
 ...A few minutes later, you should see updates. ...A few minutes later, you should see updates.
  
 +
 +==== Removing graphs / plugins ====
 +All possible plugins are stored in: /usr/share/munin/plugins/ and symlinked into: /etc/munin/plugins
 +
 +To delete a plugin, simply delete it from /etc/munin/plugins
 +
 +==== Adding graphs / plugins ====
 +=== Apache plugins ===
 +<code>
 +ln -s /usr/share/munin/plugins/apache_accesses /etc/munin/plugins/apache_accesses
 +ln -s /usr/share/munin/plugins/apache_processes /etc/munin/plugins/apache_processes
 +ln -s /usr/share/munin/plugins/apache_volume /etc/munin/plugins/apache_volume
 +ln -s /usr/share/munin/plugins/port_ /etc/munin/plugins/port_80
 +
 +#You may need to do:
 +a2enmod status
 +#reported: Module status already enabled
 +#check /etc/apache2/mods-enabled/status.conf
 +
 +</code>
 +Note: there are lots more graphs for apache, but require apache mod_watch. See [[munin_statistics#apache_mod_watch_munin_graphs_showing_vhost_accesses|here]]
 +
 +=== SQL plugins ===
 +Well MySQL is now MariaDb.
 +<code>
 +ln -s /usr/share/munin/plugins/mysql_queries /etc/munin/plugins/mysql_queries
 +ln -s /usr/share/munin/plugins/mysql_slowqueries /etc/munin/plugins/mysql_slowqueries
 +ln -s /usr/share/munin/plugins/mysql_bytes /etc/munin/plugins/mysql_bytes
 +</code>
 +
 +=== Other useful plugins ===
 +<code>
 +ln -s /usr/share/munin/plugins/postfix_mailstats /etc/munin/plugins/postfix_mailstats
 +
 +ln -s /usr/share/munin/plugins/multips_memory /etc/munin/plugins/multips_memory
 +^ For the above, to monitor just certain processes
 +vi /etc/munin/plugin-conf.d/munin-node
 +#Add
 +[multips_memory]
 +env.names apache2 mariadbd
 +
 +</code>
  
 ===== Temperature Monitoring with Munin ===== ===== Temperature Monitoring with Munin =====
munin_statistics.1658436105.txt.gz · Last modified: 2022/07/21 21:41 by admin