Iwatch: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Die Seite wurde neu angelegt: „=installation= apt-get install iwatch“ |
|||
| (3 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
=installation= | =installation= | ||
apt-get install iwatch | apt-get install iwatch | ||
=configuration= | |||
==start at boot== | |||
*/etc/default/iwatch | |||
START_DAEMON=true | |||
CONFIG_FILE=/etc/iwatch/iwatch.xml | |||
==main config== | |||
*/etc/iwatch/iwatch.xml | |||
<pre> | |||
<?xml version="1.0" ?> | |||
<!DOCTYPE config SYSTEM "/etc/iwatch/iwatch.dtd" > | |||
<config> | |||
<guard email="technik@xinux.de" name="IWatch"/> | |||
<watchlist> | |||
<title>Operating System</title> | |||
<contactpoint email="technik@xinux.de" name="Administrator"/> | |||
<path type="single" syslog="on" alert="off" exec="/usr/local/sbin/dir-watch %e %f">/daten</path> | |||
</watchlist> | |||
</config> | |||
</pre> | |||
=script= | |||
<pre> | |||
#!/bin/bash | |||
ARG1=$1 | |||
ARG2=$2 | |||
echo $ARG1 $ARG2 >> /tmp/iwatch | |||
</pre> | |||
Aktuelle Version vom 27. Juni 2014, 12:44 Uhr
installation
apt-get install iwatch
configuration
start at boot
- /etc/default/iwatch
START_DAEMON=true CONFIG_FILE=/etc/iwatch/iwatch.xml
main config
- /etc/iwatch/iwatch.xml
<?xml version="1.0" ?>
<!DOCTYPE config SYSTEM "/etc/iwatch/iwatch.dtd" >
<config>
<guard email="technik@xinux.de" name="IWatch"/>
<watchlist>
<title>Operating System</title>
<contactpoint email="technik@xinux.de" name="Administrator"/>
<path type="single" syslog="on" alert="off" exec="/usr/local/sbin/dir-watch %e %f">/daten</path>
</watchlist>
</config>
script
#!/bin/bash ARG1=$1 ARG2=$2 echo $ARG1 $ARG2 >> /tmp/iwatch