The mender-monitor
daemon reads the configuration settings from the file
/usr/share/mender-monitor/config/config.sh
. The default settings are suitable
for most use-cases, but you can adjust the following configuration variables
if you need to customize the functionalities.
The maximum number of seconds for which we keep the alerts in memory for flapping detection.
The maximum number of alerts to store if the device is offline.
The back-end URL mender-monitor
will send the alerts to.
A string defining the log level; the possible values are: FATAL
, TRACE
, ERROR
, DEBUG
, WARN
or INFO
.
The path to the daemon's log file.
The default alert level.
The default number of seconds in between every attempt to resend an alert in the case of failure.
The default dbus pattern expiration period, expressed as a number of seconds, if not set in the check configuration file with DBUS_PATTERN_EXPIRATION
.
The default alert level for the D-Bus monitoring subsystem. Its default value is CRITICAL
.
The default alert level for the log monitoring subsystem.
The default number of lines sent after a line that contained a string that matched a given pattern.
The default number of lines sent before a line that contained a string that matched a given pattern.
The default log pattern expiration period, expressed as a number of seconds, if not set in the check configuration file with LOG_PATTERN_EXPIRATION
.
The default alert level for the service monitoring subsystem.
The number of service state changes per FLAPPING_INTERVAL
(see above), after which we consider a service to be flapping.
The time interval, expressed as a number of seconds, for which we calculate the flapping rate.
The path to the monitor.d
directory.
These are variables you can set per check that uses the DBus subsystem, if these ones are not set, then ones starting with DEFAULT_
from the previous section will take precedence.
The dbus pattern expiration period expressed as a number of seconds. Optional, if not set, it will use the global configuration DEFAULT_DBUS_ALERT_EXPIRATION_SECONDS
.
The name of the watcher.
The grep pattern to match on. An empty value will match on all notifications.
The watch pattern passed to dbus-monitor (can be empty). e.g., type='signal',interface='org.freedesktop.DBus.Properties',member='PropertiesChanged',path=/org/freedesktop/UPower/devices/battery_BAT0
These are variables you can set per check that uses the Log subsystem, if these ones are not set, then ones starting with DEFAULT_
from the previous section will take precedence.
Pattern searched inside the LOG_FILE
.
Path to the log file to watch for a regular expression match.
The alert level for the log monitoring subsystem. If not set, DEFAULT_LOG_ALERT_LEVEL
value will be used.
The log pattern expiration period, expressed as a number of seconds. If not set the DEFAULT_LOG_PATTERN_EXPIRATION_SECONDS
will be used.
Identifier for the check definition.
These are variables you can set per check that uses the Service subsystem, if these ones are not set, then ones starting with DEFAULT_
from the previous section will take precedence.
It must match the name of the service you are monitoring.
It supports systemd
or sysV
as value.
© 2024 Northern.tech AS