2 # Monitor the apache server on this host
4 # Check the PID file to see if apache is running
7 return { 'up' => -1 } if (!&foreign_check($_[1]));
8 &foreign_require($_[1], "apache-lib.pl");
9 return { 'up' => -1 } if (!&foreign_check($_[1]));
10 local %aconfig = &foreign_config($_[1]);
11 return { 'up' => -1 } if (!-x $aconfig{'httpd_path'});
13 if (&foreign_call($_[1], "is_apache_running")) {
14 local $pidfile = &foreign_call($_[1], "get_pid_file");
15 local @st = stat($pidfile);
17 'desc' => &text('up_since', scalar(localtime($st[9]))) };
24 sub parse_apache_dialog
26 &depends_check($_[0], "apache");