Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.2:Ports
monit
monit-better_default_monitrc.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File monit-better_default_monitrc.patch of Package monit
Index: monit-5.10/monitrc =================================================================== --- monit-5.10.orig/monitrc 2014-10-29 16:45:37.000000000 +0100 +++ monit-5.10/monitrc 2016-03-18 12:54:09.652657088 +0100 @@ -24,29 +24,29 @@ ## 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 # -# set pidfile /var/run/monit.pid +set pidfile /run/monit/monit.pid # ## 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 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 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 @@ ## 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. #
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor