|
From: xavier r. <lis...@na...> - 2003-07-18 16:10:37
|
here is a kick start and working config example for thoses
who want to test peep.
get the peep source via cvs,
$ apt-get install libxml-parser-perl libfile-tail-perl libfile-mmagic-perl libnet-ping-external-perl libproc-process-perl libtime-hires-perl libfilesys-diskfree-perl libexpat1-dev (i'm running testing/unstable)
$ cd peep-0.5.x :
$ ./configure --enable-debug=9 && make
$ cd peep-0.5.x/client/Net/Peep
$ perl Makefile.PL && make && make test
untar the peep sounds
in wetlands/events
execute :
for i in *;do folder=`echo $i |perl -pe 's/([\w\-]+[a-z])[\-\.0-9]+/$1/'`;mkdir $folder 2>/dev/null ;mv $i $folder ; done
(might be fixed soon)
in /usr/local/etc/peep/ :
---------------------- peep.conf ---------------------
# replace the sound path with yours !
#
# Peep (the network auralizer) - Main configuration file
#
general
version 0.5.1
# Path where the sounds are stored
sound-path /usr/local/src/peep/sounds
end general
class main
port 2000
server localhost:2001
end class main
#
# Client configuration for Peep: The Network Auralizer client:
# logparser
client logparser
class main
port 1999
default
groups default
logfile /var/log/messages,/tmp/test
end default
config
events
# Name Group Location Priority Notification Pattern Hosts
sudo default 128 0 info "sudo" localhost
end events
end config
notification
notification-hosts none
notification-recipients you...@he...
notification-level warn
end notification
end client logparser
# Load the wetlands theme
#theme themes/collin.xml
# Additionally load these two events
event
name sudo
path wetlands/events/redwing-blackbird
end event
------------------------------------------------------------------------
running the server :
cd peep-0.5.x ; ./server/peepd --config=/usr/local/etc/peep/peep.conf --pidfile=/tmp/peep.pid --snd-device=/dev/dsp --nodaemon
running the client :
cd peep-0.5.x/client/Net/Peep ;perl -Iblib/lib ./bin/logparser --config=/usr/local/etc/peep/peep.conf --nodaemon --server=localhost --port=2000 --debug=9 --class=main --noautodiscovery
making something happen :
$ sudo echo $RANDOM
you should then hear the redwing-blackbird sound.
ps : note about the client doc :
http://www.auralizer.com:8080/Documentation/client (correct me if i'm wrong)
the first exemple should be a log example (making it simpler than ticker),
and there should be stronger separation between user doc and developper
doc...
or maybe there should be a kick start doc (a bit like my email ?)
ps 2 : note about the server :
it should print a note about acquiring /dev/dsp...
it currently hangs if dsp is already taken,
and wait for it indefinitly (which is fine,
but it should specificaly say :
trying to acquire /dev/dsp........
or something like this.
thanks
bye
--
xavier renaut, 514 906 1212 x226
|