<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>apache_vhosts on Munin Plugin Gallery</title><link>https://gallery.munin-monitoring.org/keywords/apache_vhosts/</link><description>Recent content in apache_vhosts on Munin Plugin Gallery</description><generator>Hugo -- gohugo.io</generator><language>en-US</language><lastBuildDate>Sat, 24 Oct 2020 17:28:11 +0200</lastBuildDate><atom:link href="https://gallery.munin-monitoring.org/keywords/apache_vhosts/index.xml" rel="self" type="application/rss+xml"/><item><title>apache_vhosts</title><link>https://gallery.munin-monitoring.org/plugins/munin-contrib/apache_vhosts/</link><pubDate>Sat, 24 Oct 2020 17:28:11 +0200</pubDate><guid>https://gallery.munin-monitoring.org/plugins/munin-contrib/apache_vhosts/</guid><description>Installation This plugin requires data from apache. You can get at the data in two ways:
Install the pipelogger (logs without using disk space, ram only, highly performant) Install /usr/share/munin/apache_pipelogger as executable for apache/wwwrun
Install logger to httpd.conf
Log vhost port method response_bytes response_time_ms httpd_status Install the log parser as daemon (watches multiple access logs in a single folder for changes) the log parser should run as root (can simply be run in background) slightly less performant, but easier to apply to existing installations If you want response time stats, you have to log them in apache: &amp;lt;IfModule mod_log_config.</description></item><item><title>apache_logparser</title><link>https://gallery.munin-monitoring.org/plugins/munin-contrib/apache_logparser/</link><pubDate>Thu, 02 Aug 2018 02:03:42 +0200</pubDate><guid>https://gallery.munin-monitoring.org/plugins/munin-contrib/apache_logparser/</guid><description>Readme This is a logfile watcher for apache, it monitors a log dir for access logs and saves some stats to shared memory. Munin can then fetch and reset the stats periodically.
Just start it once, it runs as a daemon and polls logs every n sec keeping track of changes to the logs. Filelist is read on startup and on defined scan_intervals. File position is recorded and logs are checked for truncate/delete (for performance reasons).</description></item><item><title>apache_pipelogger</title><link>https://gallery.munin-monitoring.org/plugins/munin-contrib/apache_pipelogger/</link><pubDate>Thu, 02 Aug 2018 02:03:42 +0200</pubDate><guid>https://gallery.munin-monitoring.org/plugins/munin-contrib/apache_pipelogger/</guid><description># Log vhost port method response_bytes response_time status &amp;lt;IfModule mod_log_config.c&amp;gt; CustomLog &amp;ldquo;|/usr/share/munin/apache_pipelogger&amp;rdquo; &amp;ldquo;%v %p %m %B %D %s&amp;rdquo; &amp;lt;/IfModule&amp;gt;
Source Code Copy #!/usr/bin/perl =head1 # Log vhost port method response_bytes response_time status &amp;lt;IfModule mod_log_config.c&amp;gt; CustomLog &amp;#34;|/usr/share/munin/apache_pipelogger&amp;#34; &amp;#34;%v %p %m %B %D %s&amp;#34; &amp;lt;/IfModule&amp;gt; =cut # write every n seconds to shared memory local $nsec=7; local $debug=undef; use Storable qw(freeze thaw); use List::Util qw(min max); use IPC::ShareLite &amp;#39;:lock&amp;#39;; require Data::Dumper if $debug; use Munin::Plugin; local $share = IPC::ShareLite-&amp;gt;new( -key =&amp;gt; &amp;#39;mapl&amp;#39;, -create =&amp;gt; 1, -destroy =&amp;gt; 1, -exclusive =&amp;gt; 0, -mode =&amp;gt; &amp;#39;0666&amp;#39; ) or die $!</description></item></channel></rss>