/[rrd-simple-monitoring]/cgi-bin/rrd-server.cgi
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /cgi-bin/rrd-server.cgi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 6 by dpavlin, Thu Jul 16 18:48:19 2009 UTC revision 7 by dpavlin, Fri Jul 17 18:18:07 2009 UTC
# Line 22  Line 22 
22  # vim:ts=4:sw=4:tw=78  # vim:ts=4:sw=4:tw=78
23    
24  # User defined constants  # User defined constants
25  use constant BASEDIR => '/home/nicolaw/webroot/www/rrd.me.uk';  use constant BASEDIR => '/var/www/rrd';
26    
27  ############################################################  ############################################################
28    
# Line 85  if (defined($ENV{RRD_SECRET}) && defined Line 85  if (defined($ENV{RRD_SECRET}) && defined
85  my @pairs;  my @pairs;
86  while (<>) {  while (<>) {
87          #warn "$host $_";          #warn "$host $_";
88            $host = $1 if m/^#\s*host\s*(\S+)/;
89          next unless /^\d+\.[\w\.\-\_\d]+\s+[\d\.]+\s*$/;          next unless /^\d+\.[\w\.\-\_\d]+\s+[\d\.]+\s*$/;
90          push @pairs, $_;          push @pairs, $_;
91  }  }

Legend:
Removed from v.6  
changed lines
  Added in v.7

  ViewVC Help
Powered by ViewVC 1.1.26