Handle hostnames with upper-case letters
[webmin.git] / status / cfengine-monitor.pl
1 # cfengine-monitor.pl
2 # Monitor the cfengine daemon on this host
3
4 # Check the PID file to see if cfd is running
5 sub get_cfengine_status
6 {
7 local %cconfig = &foreign_config($_[1]);
8 &has_command($cconfig{'cfd'}) || return { 'up' => -1 };
9 local @pids = &find_byname("cfd");
10 if (@pids) {
11         return { 'up' => 1 };
12         }
13 else {
14         return { 'up' => 0 };
15         }
16 }
17
18 sub parse_cfengine_dialog
19 {
20 &depends_check($_[0], "cfengine");
21 }
22
23 1;
24