mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
23 lines
363 B
Perl
Executable File
23 lines
363 B
Perl
Executable File
# webmin-monitor.pl
|
|
# Monitor the webmin server on this host
|
|
|
|
# Check the PID file to see if webmin is running
|
|
sub get_webmin_status
|
|
{
|
|
local %miniserv;
|
|
&get_miniserv_config(\%miniserv);
|
|
if (open(PID, "<".$miniserv{'pidfile'}) && chop($pid = <PID>) && kill(0, $pid)) {
|
|
return { 'up' => 1 };
|
|
}
|
|
else {
|
|
return { 'up' => 0 };
|
|
}
|
|
}
|
|
|
|
sub parse_webmin_dialog
|
|
{
|
|
}
|
|
|
|
1;
|
|
|