Changeset ad00dabd881e008eca268126c2b47adb63274e58

Show
Ignore:
Timestamp:
03/21/10 20:23:17 (5 years ago)
Author:
Mark Harrison <mark@omniti.com>
git-committer:
Mark Harrison <mark@omniti.com> 1269202997 +0000
git-parent:

[437d7c16a7d447c192d0f5019c91098c416903d6]

git-author:
Mark Harrison <mark@omniti.com> 1269202997 +0000
Message:

Resmon.pm fixes

modstatus was showing bad when it shouldn't
date had a newline

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lib/Resmon/Module/Resmon.pm

    r437d7c1 rad00dab  
    4444        "hostname" => [$hostname, "s"], 
    4545        "configstatus" => [$configstatus ? "BAD" : "OK", "s"], 
    46         "modstatus" => [$modstatus ? "BAD" : "OK", "s"], 
     46        "modstatus" => [scalar @$modstatus ? "BAD" : "OK", "s"], 
    4747        "failed_modules" => [join(", ", @$modstatus), "s"] 
    4848    }; 
  • lib/Resmon/Module/Sample.pm

    r7cd489f rad00dab  
    9696    # ways to get the current date. 
    9797    my $date = `date +%d`; 
     98    chomp $date; 
    9899 
    99100    return {