:: **Zploit** v1.0 | Current Path: **/usr/lib64/nagios/plugins/**
:: Editing File: check_mysql_log
#!/bin/bash if sudo grep -q "'\[ERROR\]'" /var/lib/mysql/`hostname`.err; then echo "CRITICAL: There are errors in the error log!" exit 2; else echo "OK" fi