iwatch
Author
Anjani Phuyal
Date
May 26, 2014
Category
Linux, Ubuntu
Read Time
3 min read
root
sudo gedit /etc/apt/sources.listand 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 universeAfter any changes you should run
sudo apt-get updateYou can now install as below.
Install iwatch
sudo apt-get install iwatchWhich will install iwatch and 6 dependencies.
to run iwatch as daemon edit /etc/default/iwatch
vi /etc/default/iwatchchange from false to true
START_DAEMON=trueRunning iwatch as daemon
iwatch -d -f /etc/iwatch/iwatch.xmlsample 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.
Uninstall instructions: http://installion.co.uk/ubuntu/saucy/universe/i/iwatch/uninstall.html
Ref: http://installion.co.uk/ubuntu/saucy/universe/i/iwatch/install.html
ref: http://www.slideshare.net/ShailajaMca/iwatch-tech-1-15919512