next up previous contents
Next: Peep Themes Up: Configuring peep.conf Previous: Importing themes   Contents

An example configuration

Other sections have described the configuration file in bits and pieces. This section features a fully working configuration file.

#
# Peep (the network auralizer) - Main configuration file
#

general
  version 0.5.0
  # Path where the sounds are stored
  sound-path /home/olsonco/peep/sounds
end general

class main
  port 2000
  server darktower:2001
end class main

# Client configurations to import
import peep.logtab
import peep.sysmontab

# Note that the pinger may very well run on the same box as the
# server (at least the way I do it).
client pinger
  class home
  port 1999
  default
    groups default
  end default
  config

    # Specify a set of hosts who will be pinged.  The event will be
    # triggered if the host is unresponsive.

    # See above for an explanation of the Event, Group, Notification,
    # or Hosts fields.

    hosts
       # Hostname or IP    Event        Group    Location   Priority   Notification  Hosts
       128.138.173.15      ping-cournot default  255        0          crit          localhost
       www.yahoo.com       ping-yahoo   default  255        0          crit          localhost
    end hosts
  end config
  # See above for more information on notification settings
  notification
    notification-hosts localhost
    notification-recipients collin.starkweather@collinstarkweather.com
    notification-level warn
  end notification
end client pinger

# Load the wetlands theme
theme themes/wetlands.xml

# Additionally load these two events
event
  name annoying
  path wetlands/events/sigh
end event

event
  name http
  path wetlands/events/sigh
end event

event
  name bad-login
  path wetlands/events/redwing-blackbird
end event

event
  name another
  path wetlands/events/redwing-blackbird
end event

event
  name ping-cournot
  path wetlands/events/redwing-blackbird
end event

event
  name ping-yahoo
  path wetlands/events/sigh
end event

# Additionally load this state
state
  name general-feel
  threshold
    level 0.5
    path wetlands/states/water-02
    fade 0.25
  end threshold
  threshold
    level 1.00
    path wetlands/states/water-01
    fade 0.1
  end threshold
end state



Collin Starkweather 2002-11-03