Projet

Général

Profil

Révision 17f78427

ID17f784270ae966ee9a13e9f5104a5b8f925b639e
Parent ef851f0c
Enfant d4320aea, 5b2396a9

Ajouté par Lars Kruse il y a plus de 7 ans

Whitespace cleanup

  • remove trailing whitespace
  • remove empty lines at the end of files

Voir les différences:

plugins/nginx/nginx_byprojects/byprojects_access
4 4
#
5 5
# byprojects_access
6 6
#
7
# Perl script to monitor access *byprojects* (e.g. vhost) from multiple files 
7
# Perl script to monitor access *byprojects* (e.g. vhost) from multiple files
8 8
# and/or regex.
9 9
#
10
# Danny Fullerton <northox@mantor.org> 
10
# Danny Fullerton <northox@mantor.org>
11 11
# Mantor Organization <www.mantor.org>
12 12
# This work is licensed under a MIT license.
13 13
#
14 14
# You need logtail (https://www.fourmilab.ch/webtools/logtail/)
15 15
#
16
# Log can be gathered from multiple sources by simply specifying multiple log 
16
# Log can be gathered from multiple sources by simply specifying multiple log
17 17
# filename or using wildcards (glob). File content can be selected using regex.
18 18
#
19 19
# - 'prod' => [ {'path' => '/home/prod/log/access.log'} ],
......
73 73
    my @paths = glob $log->{'path'};
74 74
    foreach my $path (@paths) {
75 75
      my $state = $statepath.'/'.$project.$x.'_access.state';
76
      open(LT, "$logtail -f ".$log->{'path'}." -o $state |") or 
76
      open(LT, "$logtail -f ".$log->{'path'}." -o $state |") or
77 77
        die "Can't open $logtail: $!";
78 78
      while (<LT>) {
79 79
        my $buf = $_;

Formats disponibles : Unified diff