mirror of
https://github.com/Cacti/cacti.git
synced 2026-11-08 21:16:17 +09:00
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@3439 860744bd-22fc-0310-8c96-e9fe5004b5ca
15 lines
231 B
Perl
15 lines
231 B
Perl
#!/usr/bin/perl
|
|
|
|
if ($ARGV[0] eq "") {
|
|
$log_path = "/var/log/httpd/access_log";
|
|
}else{
|
|
$log_path = $ARGV[0];
|
|
}
|
|
|
|
open(PROCESS,"wc -l $log_path |");
|
|
$webhits = <PROCESS>;
|
|
close(PROCESS);
|
|
$webhits =~ s/[\s]*([0-9]+).*//;
|
|
|
|
print $1;
|