mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
add mysql slave alerts
This commit is contained in:
parent
323b4a7937
commit
11971e9f39
1 changed files with 4 additions and 0 deletions
|
@ -46,6 +46,8 @@ use strict;
|
|||
my $MYSQLADMIN = $ENV{mysqladmin} || "mysql";
|
||||
my $MYSQLOPTS = $ENV{mysqlopts} || "";
|
||||
my $COMMAND = "$MYSQLADMIN $MYSQLOPTS -e 'show slave status\\G' | grep 'Seconds_Behind_Master'";
|
||||
my $WARNING = $ENV{mysql_slave_warning} || "60";
|
||||
my $CRITICAL = $ENV{mysql_slave_warning} || "600";
|
||||
|
||||
my $arg = shift();
|
||||
|
||||
|
@ -81,6 +83,8 @@ sub print_config {
|
|||
print "seconds.label Seconds behind master\n";
|
||||
print "seconds.min 0\n";
|
||||
print "seconds.draw LINE2\n";
|
||||
print "seconds.warning $WARNING\n";
|
||||
print "seconds.critical $CRITICAL\n";
|
||||
print "graph_info Plugin available at <a href='http://oss.hjksolutions.com/munin/'>http://oss.hjksolutions.com/munin/</a>\n";
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue