<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.staging.zoneminder.com/index.php?action=history&amp;feed=atom&amp;title=Logwatch</id>
	<title>Logwatch - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.staging.zoneminder.com/index.php?action=history&amp;feed=atom&amp;title=Logwatch"/>
	<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Logwatch&amp;action=history"/>
	<updated>2026-04-20T03:33:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Logwatch&amp;diff=2698&amp;oldid=prev</id>
		<title>Monex at 16:27, 18 October 2008</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Logwatch&amp;diff=2698&amp;oldid=prev"/>
		<updated>2008-10-18T16:27:39Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Image:ZoneMindeeGlossy.png|left]]&lt;br /&gt;
Logwatch is a system log analyzer and reporter. This article describes the extensions logwatch extension for [[ZoneMinder]]. This should help you to get noticed if something goes wrong on your [[ZoneMinder]] box.&lt;br /&gt;
&lt;br /&gt;
== Overview of the provided Informations ==&lt;br /&gt;
Beside the normal logwatch informations this extension provides the following informations:&lt;br /&gt;
&lt;br /&gt;
* Number of alert states for the different cameras&lt;br /&gt;
* Number of [[ZoneMinder]] daemon crashes (includes the information which daemon crashed)&lt;br /&gt;
* Number of [[ZoneMinder]] MySQL errors (includes the [ZoneMinder] error message)&lt;br /&gt;
With detail =&amp;gt; 3&lt;br /&gt;
* Number of abnormally exits from the various [[ZoneMinder]] daemons&lt;br /&gt;
* Number of [[ZoneMinder]] daemon starts.&lt;br /&gt;
&lt;br /&gt;
(As a convention 0 values aren&amp;#039;t displayed)&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
You need to install logwatch. Logwatch is part of the most distributions, simple install it via the package management of your distribution. Of course you can download logwatch it from the logwatch website [http://www.logwatch.org/] too.&lt;br /&gt;
&lt;br /&gt;
== Install the extension for ZoneMinder ==&lt;br /&gt;
first you have to download the required files from [http://liquid-co.de/pub/zm/logwatch/zm_logwatch.tar.gz here]. Extract the archive, copy the file &amp;#039;&amp;#039;zoneminder.conf&amp;#039;&amp;#039; to &amp;#039;&amp;#039;/usr/share/logwatch/default.conf/services/&amp;#039;&amp;#039; and copy the file &amp;#039;&amp;#039;zondeminder&amp;#039;&amp;#039; to &amp;#039;&amp;#039;/usr/share/logwatch/scripts/services/&amp;#039;&amp;#039; (these locations depends on your logwatch install location and may vary). That&amp;#039;s all.&lt;br /&gt;
&lt;br /&gt;
== Using [[ZoneMinder]] logwatch extension ==&lt;br /&gt;
Just run &amp;#039;&amp;#039;logwatch --service zondeminder&amp;#039;&amp;#039;. If you want more detailed informations (see overview) run it with &amp;#039;&amp;#039;--details 3&amp;#039;&amp;#039;. For a more detailed informations on how to use logwatch have a look at the manpage [http://www.logwatch.org/tabs/docs/logwatch.8.html].&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
For example you can run:&lt;br /&gt;
 logwatch  --service zoneminder --range &amp;#039;yesterday&amp;#039; --detail high --print --archives --mailto &amp;lt;your mail address&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Maybe you want to create a daily cronjob. Create a file called logwatch in &amp;#039;&amp;#039;/etc/&amp;#039;cron.d/&amp;#039; for example:&lt;br /&gt;
 0 18 * * *    root    logwatch  --service zoneminder --range &amp;#039;yesterday&amp;#039; --detail high --print --archives --mailto &amp;lt;your mail address&amp;gt;&lt;/div&gt;</summary>
		<author><name>Monex</name></author>
	</entry>
</feed>