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.
| Command | Description | Arguments | |
|---|---|---|---|
/monitor <on|off> | Enable/disable sending mails | - | |
| /monitor config add <email> | Add recipient | admin@domain.tld | |
| /monitor config check | Send a test email | - | |
| /monitor config list | List all current recipients | - | |
| /monitor config reload | Reload config if file changed manually | - | |
| /monitor config remove <email> | Remove recipient | admin@domain.tld | |
| /monitor config set <setting> <value> | Change config value | from AmShaegar <admin@domain.tld> | |
| /monitor rules list | List 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 :)"
-
View User Profile
-
Send Message
Posted Oct 16, 2013and the rulers are commands and if executed the plugin say it for your email?
-
View User Profile
-
Send Message
Posted Oct 16, 2013ok but i want you to recompile with 1.5.2 R1.0 and to add a auto mensager if say "the server is online" in 10 to 10 minutes or a configurable time interval in minutes if it isnt online it dont send any mensage
thank you for the atention
-
View User Profile
-
Send Message
Posted Oct 16, 2013@chat1234
Hey, I can recompile it for you, no problem. Sadly, I do not haveenough time to change any code. I addition, you cannot let a plugin send a message, if the server is not online.
You can use v1.0r for Bukkit v1.4.7.
-
View User Profile
-
Send Message
Posted Oct 15, 2013SORRY COMPILE FOR 1.5.2 NOT 1.5.1
THANK YOU VERY MUCH
-
View User Profile
-
Send Message
Posted Oct 15, 2013i like very much but please compile for 1.5.1R1.0 and add a auto mensage if is going to say if the server is online or not with a configurable interval of time
SORRY ABOUT MY BAD ENGLISH Iam BRAZILIAN