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

Lines indented are commands you can copy-and-paste, or modify before executing.

	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
	chmod ugo+x /etc/rc.d/aaim
or
	cp contrib/rc.aaim /etc/rc2.d/S99aaim
	chmod ugo+x /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.
You may change /usr/local/argus to whatever directory you have argus in

	mkdir -p /usr/local/argus/supervise/aaim/log /var/log/aaim/
	chown nobody /var/log/aaim
	cp contrib/daemontools/run /usr/local/argus/supervise/aaim/run
	cp contrib/daemontools/log/run /usr/local/argus/supervise/aaim/log/run
	chmod 755 /usr/local/argus/supervise/aaim/run
	chmod 755 /usr/local/argus/aaim/log/run
	ln -s /usr/local/argus/supervise/aaim /service



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

