Changeset 1571 for trunk/locker/sbin/check-ldap-certs.pl
- Timestamp:
- Jun 6, 2010, 4:38:11 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/locker/sbin/check-ldap-certs.pl
r1569 r1571 4 4 use File::Basename; 5 5 use Date::Parse; 6 use Sys::Hostname; 6 7 7 8 my @servers = qw(cats-whiskers.mit.edu pancake-bunny.mit.edu real-mccoy.mit.edu busy-beaver.mit.edu bees-knees.mit.edu); 9 10 my $hostname = hostname(); 8 11 9 12 my $now = time(); … … 25 28 26 29 if ($verbose || ($time - $now) <= WARNING) { 27 printf " Certificate expiring in %.2f days: %s\n", (($time - $now) / (60.0*60*24)), $server;30 printf "$hostname: Certificate expiring in %.2f days: %s\n", (($time - $now) / (60.0*60*24)), $server; 28 31 } 29 32 }
Note: See TracChangeset
for help on using the changeset viewer.