File monit-better_default_monitrc.patch of Package monit

diff -rupN monit-5.8.1.old/monitrc monit-5.8.1/monitrc
--- monit-5.8.1.old/monitrc	2014-05-12 08:51:19.000000000 -0700
+++ monit-5.8.1/monitrc	2014-07-29 17:17:04.747629705 -0700
@@ -24,9 +24,9 @@ set daemon  60              # check serv
 ## Set syslog logging with the 'daemon' facility. If the FACILITY option is
 ## omitted, Monit will use 'user' facility by default. If you want to log to 
 ## a standalone log file instead, specify the full path to the log file
-#
-# set logfile syslog facility log_daemon                       
-#
+
+set logfile syslog facility log_daemon
+
 #
 ## Set the location of the Monit lock file which stores the process id of the
 ## running Monit instance. By default this file is stored in $HOME/.monit.pid
@@ -36,17 +36,17 @@ set daemon  60              # check serv
 ## Set the location of the Monit id file which stores the unique id for the
 ## Monit instance. The id is generated and stored on first Monit start. By 
 ## default the file is placed in $HOME/.monit.id.
-#
-# set idfile /var/.monit.id
-#
+
+set idfile /run/monit/.monit.id
+
 ## Set the location of the Monit state file which saves monitoring states
 ## on each cycle. By default the file is placed in $HOME/.monit.state. If
 ## the state file is stored on a persistent filesystem, Monit will recover
 ## the monitoring state across reboots. If it is on temporary filesystem, the
 ## state will be lost on reboot which may be convenient in some situations.
-#
-# set statefile /var/.monit.state
-#
+
+set statefile /run/monit/monit.state
+
 ## Set the list of mail servers for alert delivery. Multiple servers may be 
 ## specified using a comma separator. If the first mail server fails, Monit 
 # will use the second mail server in the list and so on. By default Monit uses 
@@ -55,7 +55,9 @@ set daemon  60              # check serv
 # set mailserver mail.bar.baz,               # primary mailserver
 #                backup.bar.baz port 10025,  # backup mailserver on port 10025
 #                localhost                   # fallback relay
-#
+
+set mailserver localhost
+
 #
 ## By default Monit will drop alert events if no mail servers are available. 
 ## If you want to keep the alerts for later delivery retry, you can use the 
@@ -67,7 +69,11 @@ set daemon  60              # check serv
 # set eventqueue
 #     basedir /var/monit  # set the base directory where events will be stored
 #     slots 100           # optionally limit the queue size
-#
+
+set eventqueue
+    basedir /run/monit/events
+    slots 100
+
 #
 ## Send status and events to M/Monit (for more informations about M/Monit 
 ## see http://mmonit.com/). By default Monit registers credentials with 
@@ -101,16 +107,16 @@ set daemon  60              # check serv
 ## You can override this message format or parts of it, such as subject
 ## or sender using the MAIL-FORMAT statement. Macros such as $DATE, etc.
 ## are expanded at runtime. For example, to override the sender, use:
-#
-# set mail-format { from: monit@foo.bar }
-#
+
+set mail-format { from: monit@localhost }
+
 #
 ## You can set alert recipients whom will receive alerts if/when a 
 ## service defined in this file has errors. Alerts may be restricted on 
 ## events by using a filter as in the second example below.
-#
-# set alert sysadm@foo.bar                       # receive all alerts
-#
+
+set alert root@localhost                       # receive all alerts
+
 ## Do not alert when Monit starts, stops or performs a user initiated action.
 ## This filter is recommended to avoid getting alerts for trivial cases.
 #
openSUSE Build Service is sponsored by