2 # Monitor the MySQL server on this host
4 # Check if mysql is running
7 return { 'up' => -1 } if (!&foreign_check($_[1]));
8 &foreign_require($_[1], "mysql-lib.pl");
9 local %mconfig = &foreign_config($_[1]);
10 return { 'up' => -1 } if (!-x $mconfig{'mysqladmin'});
11 local $r = &foreign_call($_[1], "is_mysql_running");
12 return { 'up' => $r ? 1 : 0 };
15 sub parse_mysql_dialog
17 &depends_check($_[0], "mysql");