## Check if the MySQL server is alive (default port=3306) # 'check_mysql' command definition define command{ command_name check_mysql command_line $USER1$/check_mysql -H $HOSTADDRESS$ -P 3306 -u $ARG1$ -p $ARG2 -d $ARG3$ } ## Check a query result against threshold levels. A query is required. ## Only first column in first row will be read. The result from the query ## should be numeric. For extra security, create a user with minimal access. # 'check_mysql_query' command definition define command{ command_name check_mysql_query command_line $USER1$/check_mysql_query -H $HOSTADDRESS$ -P 3306 -u $ARG1$ -p $ARG2 -d $ARG3$ -q $ARG4$ }