2 # Monitor the mon daemon on this host
4 # Check the PID file to see if mon is running
7 local %mconfig = &foreign_config($_[1]);
8 -d $mconfig{'cfbasedir'} || return { 'up' => -1 };
10 if (open(PID, $mconfig{'pid_file'}) && chop($pid = <PID>) && kill(0, $pid)) {
20 &depends_check($_[0], "mon");