promotional bannermobile promotional banner

ServerMonitor

Get email notifications for defined log messages.

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 :)"

The ServerMonitor Team

profile avatar
  • 5
    Projects
  • 15.4K
    Downloads
Donate

More from _ForgeUser10659865View all

  • Easy Plant project image

    Easy Plant

    • 4.3K
    • Bukkit Plugins

    Plant seeds, potatos, carrots and more on a whole field by just on click.

    • 4.3K
    • December 30, 2015
    • Bukkit Plugins
  • OpenCTF project image

    OpenCTF

    • 6.9K
    • Bukkit Plugins

    Open world "Capture The Flag". No prebuilt maps. Use all features of Minecraft. Choose an area, build your base and play.

    • 6.9K
    • August 3, 2014
    • Bukkit Plugins
    • +1
  • BukkitCLI project image

    BukkitCLI

    • 806
    • Bukkit Plugins

    BukkitCLI provides a simple way for plugins to execute commands on the command line and can be used as API.

    • 806
    • May 29, 2014
    • Bukkit Plugins
    • +1
  • Easy Path project image

    Easy Path

    • 1.7K
    • Bukkit Plugins

    Find your way out of dark caves.

    • 1.7K
    • July 4, 2013
    • Bukkit Plugins
  • Easy Plant project image

    Easy Plant

    • 4.3K
    • Bukkit Plugins

    Plant seeds, potatos, carrots and more on a whole field by just on click.

    • 4.3K
    • December 30, 2015
    • Bukkit Plugins
  • OpenCTF project image

    OpenCTF

    • 6.9K
    • Bukkit Plugins

    Open world "Capture The Flag". No prebuilt maps. Use all features of Minecraft. Choose an area, build your base and play.

    • 6.9K
    • August 3, 2014
    • Bukkit Plugins
    • +1
  • BukkitCLI project image

    BukkitCLI

    • 806
    • Bukkit Plugins

    BukkitCLI provides a simple way for plugins to execute commands on the command line and can be used as API.

    • 806
    • May 29, 2014
    • Bukkit Plugins
    • +1
  • Easy Path project image

    Easy Path

    • 1.7K
    • Bukkit Plugins

    Find your way out of dark caves.

    • 1.7K
    • July 4, 2013
    • Bukkit Plugins