Show
Ignore:
Timestamp:
04/03/09 15:20:48 (5 years ago)
Author:
Mark Harrison <mark@omniti.com>
git-committer:
Mark Harrison <mark@omniti.com> 1238772048 +0000
git-parent:

[19be28351a26318d60c0cee6851c86a4f33010c6]

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

Fix to the DHCP leases check

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

Files:

Legend:

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

    rae22e3b r87d4119  
    99  my $file = "/var/db/dhcpd.leases"; 
    1010  open (IN, '<', $file); 
    11   my $date = `date +'%Y/%m/%e %H:%M:%S;'`; 
     11  my $date = `date -u +'%Y/%m/%d %H:%M:%S;'`; 
    1212  my ($actives,$mynet,$starts,$ends)=(0,'',''); 
    1313  while (<IN>) { 
     
    3030      }elsif (/^}/) { 
    3131        if (($starts le $date ) && ($ends ge $date)){ 
    32           $actives =+1; 
     32          $actives +=1; 
    3333          ## print STDERR "ACTIVE!}", $_; 
    3434        }else{