diff options
Diffstat (limited to 'example.conf')
-rw-r--r-- | example.conf | 53 |
1 files changed, 23 insertions, 30 deletions
diff --git a/example.conf b/example.conf index 4123d8e..347c33d 100644 --- a/example.conf +++ b/example.conf @@ -5,13 +5,18 @@ server { # # This is where our database lives. SQLite is the default. # - database "sqlite3::memory:" + + # database "sqlite3::memory:" + database "postgres://localhost/mauvealert" # # This is our hostname. It gets used when URLs are generated, and in the heartbeat alert. # hostname "mauve.example.com" +# use_packet_buffer "no" +# use_notification_buffer "no" + # # This is the UDP listener. # @@ -27,7 +32,7 @@ server { # # This is how long the UDP server will sleep between looking for packets. # - poll_every 1 + poll_every 0 } @@ -40,7 +45,7 @@ server { # This is the length of time the processor will sleep between checking for # new packets from the UDP listener. # - poll_every 1 + poll_every 0 # # In order to make sure the same transmission isn't received more then @@ -78,23 +83,23 @@ server { # This is where the mauve server sends its own heartbeat. Useful for # watching the watcher. # - heartbeat { +# heartbeat { # # If no destination is specified, then the contents of # /etc/mauvealert/mauvesend.destination are used. # - destination "localhost" +# destination "localhost" # # This is how long to wait before the alert is raised # - raise_after 600 +# raise_after 600 # # These two fields have sensible defaults set, but more informative # messages can be set here. # - summary "Mauve alert server is down" - detail "The Mauve alert server has failed to send a heartbeat" - } +# summary "Mauve alert server is down" +# detail "The Mauve alert server has failed to send a heartbeat" +# } } @@ -137,7 +142,7 @@ logger { outputter("file") { filename "/tmp/mauveserver.log" trunc true - level Log4r::DEBUG + level Log4r::INFO } # outputter("email") { @@ -154,24 +159,16 @@ logger { # XMPP instant messaging. This are the credentials to log into the XMPP # account that mauve will use. # -#notification_method ("xmpp") { -# jid "mauve@chat.example.com/mauve" -# password "mauvespassword" -#} - -# -# Email messaging. -# -notification_method ("email") { - server "localhost" - from "mauve@desk1.tur.bytemark.co.uk" - subject_prefix "mauve-test" +# XMPP instant messaging. +notification_method ("xmpp") { + jid "bytemark@chat.bytemark.co.uk/pjc-test" + password "OsPzCmqSb" } person("office_chat") { -# xmpp "muc:mauve-test@conference.chat.bytemark.co.uk/MauveAlert" -# all { xmpp } -# suppress_notifications_after(310 => 1.minute) + xmpp "muc:mauve-test@conference.chat.bytemark.co.uk/MauveAlert" + all { xmpp } + suppress_notifications_after(310 => 1.minute) } person ("pcherry") { @@ -179,17 +176,13 @@ person ("pcherry") { all { true } } -people_list ("arse") { - list [ "office_chat" ] -} - # # Default notification - tell root about all alerts every hour # alert_group("default") { level URGENT - notify("arse") { + notify("office_chat") { every 2.minutes } } |