Munin: Plugin to monitor the Seconds_Behind_Master on mysql slave

ln -s /path/to/script /etc/munin/plugins/
/etc/init.d/munin-node restart

#!/bin/sh
# 
# Plugin to monitor the Seconds_Behind_Master of replication on a mysql slave
#
# Parameters:
# 
#       configure
#       autoconf
#
# Configuration variables
#
#       mysqlopts     - Options to pass to mysql
#
#
#%# family=auto
#%# capabilities=autoconf
 
MYSQLOPTS="$mysqlopts"
MYSQL=${mysql:-mysql}
 
if [ "$1" = "autoconf" ]; then
        $MYSQL --version 2>/dev/null >/dev/null
        if [ $? -eq 0 ]
        then

User tags

fido7 usb LSI sysctl boot qcow2 sysctl.conf cgroups htop regex iowait PXE debootstrap tin deb arping puppet java ps iptables equalizer dpkg rsync cpu noop ip Areca video arch grub proxy LVM mysql chromium jackd wordpress HTTPS limit_conn dovecot profiling ardour tun apache fail2ban SSD bridge nginx source initrd raid5 mariadb flash glxinfo sysfs SpamAssassin perl parallel quagga core dump conntrack bonding docker lxc lts routing iops rtsp chroot gdb glusterfs dhclient drupal cpanm storage sysrq pam cfq security erase ansible swap backtrace asoundrc iSCSI OpenSSL ubuntu bscan ddos CentOS MegaRAID sublime dhcp nfs4 replication openvpn corosync iostat su git radeon find in-addr.arpa ha StorMan bind kernel exim4 hotplug vrrp shellshock bug Adaptec arp tar tool tiger wget dstat xfs oprofile rtl8723be language scsi numa virtualbox gtk soa APU firefox vim X forwarding dns AMD /etc/network/interfaces MODx fio xhost 3Ware hdparm leap second performance sftp raid cache opreport vrrpd lenny SYN zRam CPAN OpenStack vtysh sysresccd route centos 7 alien lubuntu idmapd rkhunter ssh vlan docker-compose shorewall pvmove Salt alsa squeeze PTR xargs HDFS encrypt .htaccess search sg cluster KVM ipmitool virt-install SuperMicro netfilter tftp mkfs xen graylog2 etch backup lstat youtube freedos slab ipmi Swift ulimit DRBD elliptics taskset top keyboard php groups pulseaudio munin gre nvidia cpu usage virsh bash apt tzdata exim mdadm NFS opcontrol qemu rpm newgrp debian mount RT pacemaker bacula gpg perlbrew build