ServerMonitor

This plugin sends an email via SMTP to you when a message in the serverlog matches one of the configurable patterns. Those patterns can be as simple as

Exception

or more complicated regular expressions like

logged in with entity id \d+ at \(\[.+\] [\d,.\-\s]+\)

Most of the time you are just fine with simple expressions. Advanced regular expressions are only necessary for detecting highly variable messages.

Config

The whole config is modifiable through commands. smtp.gmail.com on port 465 with ssl enabled works great.

enable: true
mail:
  host: smtp.domain.tld
  port: 465
  ssl: true
  user: user
  pass: password
  from: Bukkit Server <noreply@domain.tld>
  subject: Bukkit Server
  to:
  - admin@domain.tld
  - tech@domain.tld
rules:
  op:
    level: INFO
    pattern: '.{1,16}: Opped .{1,16}'
  overload:
    level: WARNING
    pattern: Can't keep up!

Commands

Every command uses full tab completion for known parameters even when read from config.

CommandDescriptionArguments
/monitor <on|off>Enable/disable sending mails-
/monitor config add <email>Add recipientadmin@domain.tld
/monitor config checkSend a test email-
/monitor config listList all current recipients-
/monitor config reloadReload config if file changed manually-
/monitor config remove <email>Remove recipientadmin@domain.tld
/monitor config set <setting> <value>Change config valuefrom AmShaegar <admin@domain.tld>
/monitor rules listList all active detection rules-
/monitor rules add <name> <level> <pattern>Add a rule. Level: ALL, INFO, WARNING, SEVERE etc.exception ALL exception
/monitor rules remove <name>Remove specified rule.exception

Permissions

monitor.*
Grants all monitor permissions.
monitor.config
Permits the usage of /monitor config ...
monitor.enable
Permits the usage of /monitor <on|off>
monitor.rules
Permits the usage of /monitor rules ...

Metrics

In order to determine some statistics about popularity of versions and the plugin itself I am using the Metrics plugin. If you do not want your server to be tracked, please turn Metrics off on your server.

From Hidendra: "As a server owner, you are free to question the service, welcome it, or deny it. All plugins that support Metrics use the same opt-out and as such you may opt out of further data at any time. You may ask myself any question and I will do my best to answer it - I am as open as possible with Plugin Metrics / MCStats and hope this will help you understand what exactly it is.

Opting out of this service can be done by editing plugins/Plugin Metrics/config.yml and changing opt-out to true. If this folder does not exist, you do not have any metrics-enabled plugins installed :)"


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files

Bukkit