voxpupuli / puppet-monit

Puppet module to manage monit installation and configuration
https://forge.puppetlabs.com/soli/monit
Apache License 2.0
0 stars 21 forks source link

Fixing logging limitations with syslog. #15

Closed amigne closed 3 years ago

amigne commented 4 years ago

According to monit(1) man page

set logfile     Name of a file to dump error- and status-
                messages to. If syslog is specified as the
                file, Monit will utilize the syslog daemon
                to log messages. This can optionally be
                followed by 'facility <facility>' where
                facility is 'log_local0' - 'log_local7' or
                'log_daemon'. If no facility is specified,
                LOG_USER is used.

This PR improves the current behavior that only permits to define a log file, or syslog without any facility. It also permits to set the $syslog value to undef, and to completely disable logging.