
This Argus AIM (aaim) plugin requres the Net::AIM module.  If Net::AIM
is not installed on your system, you can easily get it by searching on
http://search.cpan.org.

cp aaim.pl /usr/local/script/
cp aaimc /usr/local/script/
chmod 755 /usr/local/script/aaim.pl
chmod 755 /usr/local/script/aaimc
chown root /usr/local/script/aaim.pl
chown root /usr/local/script/aaimc

rm -rf /tmp/aaimqueue
mkdir -p /tmp/aaimqueue/


WARNING: aaimc makes use of the 'ps' command.  Since different flavors
of 'ps' take different arguments, edit /usr/local/script/aaimc and
modify line 31 to be appropriate (ps -ef, ps auxc, etc.).

You now have to choose how to start aaim.pl.  You can either configure
your startup scripts to start it for you, or, I'd recommend running it
under DJB's daemontools (available at:
http://cr.yp.to/daemontools.html )

You probably want to run aaim.pl as the same user that argusd runs as.
Keep this in mind when you are editing your rc.aaim or the run file.

#### FOR STARTUP SCRIPTS ONLY ####
set up a cron to cp /dev/null /var/log/aaim.log
edit the contrib/rc.aaim, and set the arguments as needed
 cp contrib/rc.aaim /etc/rc.d/aaim
(or cp contrib/rc.aaim /etc/rc2.d/S99aaim)

WARNING:  rc.aaim makes use of the 'ps' command.  Since different
flavors of 'ps' take different arguments, edit rc.aaim to make sure it
works for you (ps -ef, ps auxc, etc.).


#### FOR DAEMONTOOLS ONLY ####
edit the contrib/daemontools/run file, and set the arguments as needed
 mkdir -p /service/aaim/log/ /var/log/aaim/
 chown nobody /var/log/aaim
 cp contrib/daemontools/run /service/aaim/run
 cp contrib/daemontools/log/run /service/aaim/log/run
 chmod 755 /service/aaim/run
 chmod 755 /service/aaim/log/run



in your argus config, enter:
Method "aim" {
       command: /usr/local/script/aaimc %R %I
       send:   %E %M
}
notify: aim:<buddy1>[,<buddy2>[...]]

####  That's It.

 (for daemontools): tail -f /var/log/aaim/current
or
 (for startup script): tail -f /var/log/aaim.log

