Changeset eb13d729653537edd09653c474ba43993b785073

Show
Ignore:
Timestamp:
04/04/07 16:20:22 (7 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1175703622 +0000
git-parent:

[9c26e336e64dadcca9eb4edb586d8ab43c6754e2]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1175703622 +0000
Message:

$monobj could really be hosed, so we need to be careful with invoking methods on it (so we do not completely die)

git-svn-id: https://labs.omniti.com/resmon/trunk@38 8c0face9-b7db-6ec6-c4b3-d5f7145c7d55

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • resmon

    r37857c4 reb13d72  
    7171while(1) { 
    7272  while(my($module_name, $mod_configs) = each %{$config->{Module}}) { 
    73     my $coderef = Resmon::Module::fetch_monitor($module_name); 
     73    my $coderef = undef; 
     74    eval { $coderef = Resmon::Module::fetch_monitor($module_name); }; 
    7475    foreach my $monobj (@$mod_configs) { 
    7576      my $check_rv = 'BAD', 
     
    8283      } 
    8384      my $results = { 
    84         configuration => $monobj->config_as_hash()
     85        configuration => eval { $monobj->config_as_hash(); }
    8586        last_runtime_seconds => tv_interval($starttime), 
    8687      };