Handle hostnames with upper-case letters
[webmin.git] / status / mysql-monitor.pl
1 # mysql-monitor.pl
2 # Monitor the MySQL server on this host
3
4 # Check if mysql is running
5 sub get_mysql_status
6 {
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 };
13 }
14
15 sub parse_mysql_dialog
16 {
17 &depends_check($_[0], "mysql");
18 }
19
20 1;
21