~vcs-imports/mysql-mmm/2.0

« back to all changes in this revision

Viewing changes to lib/Monitor/Agents.pm

  • Committer: mail at pascalhofmann
  • Date: 2009-05-27 23:59:35 UTC
  • Revision ID: vcs-imports@canonical.com-20090527235935-anrp0b87841wrwgi
mmm2:
-added "kill host"-functionality

Show diffs side-by-side

added added

removed removed

Lines of Context:
152
152
        my $self        = shift;
153
153
        
154
154
        my $filename = $main::config->{monitor}->{status_path};
 
155
 
 
156
        # TODO maybe it's safer to use File::Temp::tempfile()
155
157
        my $tempname = $filename . '.tmp';
156
158
 
157
159
        open(STATUS, '>', $tempname) || LOGDIE "Can't open temporary status file '$tempname' for writing!";