root sudo gedit /etc/apt/sources.list and make sure that the universe component is included in the source lines. It should look like this deb http://http.us.debian.org/debian squeeze main universe After any changes you should run sudo apt-get update You can now install as below. Install iwatch sudo apt-get install iwatch Which will install iwatch and 6 dependencies. to run iwatch as daemon edit /etc/default/iwatch vi /etc/default/iwatch change from false to true START_DAEMON=true Running iwatch as daemon iwatch -d -f /etc/iwatch/iwatch.xml sample iwatch.xml file default path is /etc/iwatch/iwatch.xml
<?xml version=”1.0″ ?>
<!DOCTYPE config SYSTEM “/etc/iwatch/iwatch.dtd” >
<config>
<guard email=”[email protected]” name=”IWatch”/>
<watchlist>
<title>New Host Added to Nagios</title>
<contactpoint email=”root@localhost” name=”Administrator”/>
<path type=”recursive” alert=”on” exec=”service nagios reload” events=”create,delete,modify”>/usr/local/nagios/etc/objects/api/hosts</path>
</watchlist>
</config>
Problems? You can always uninstall iwatch again by following these instructions. Ref: http://installion.co.uk/ubuntu/saucy/universe/i/iwatch/install.html ref: http://www.slideshare.net/ShailajaMca/iwatch-tech-1-15919512 ref: http://5minutenpause.com/blog/2012/11/14/watch-a-folder-for-new-files-and-convert-them-with-bash-script/