Changeset 1503
- Timestamp:
- 29/02/08 21:19:12 (4 years ago)
- Files:
-
- people/jo/multilevel-groups-3/server/Munin.pm.in (modified) (1 diff)
- people/jo/multilevel-groups-3/server/munin-graph.in (modified) (2 diffs)
- people/jo/multilevel-groups-3/server/munin-update.in (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
people/jo/multilevel-groups-3/server/Munin.pm.in
r1502 r1503 308 308 } elsif ($line =~ /^\s*\[([^\]]*)]\s*$/) { 309 309 $prefix = $1; 310 if ($prefix =~ /^([^: ;]+);([^:;]+)$/) {310 if ($prefix =~ /^([^:]+);([^:;]+)$/) { 311 311 $prefix .= ":"; 312 312 } elsif ($prefix =~ /^([^:;]+);$/) { people/jo/multilevel-groups-3/server/munin-graph.in
r1502 r1503 817 817 push (@rrd, "GPRINT:apostotal:MAX:$rrdformat" . $rrdscale . "\\j"); 818 818 } 819 push(@complete,'-W', $watermark) if $RRDs::VERSION >= 1.2;820 819 821 820 for my $time (keys %times) { … … 831 830 '--font' ,'AXIS:7:@@LIBDIR@@/VeraMono.ttf'); 832 831 } 832 push(@complete,'-W', $watermark) if $RRDs::VERSION >= 1.2; 833 833 834 834 # Do the header (title, vtitle, size, etc...) people/jo/multilevel-groups-3/server/munin-update.in
r1502 r1503 443 443 444 444 # First we get lock... 445 unless (&munin_getlock(munin_get($newconf, "rundir"). $newconf->{"address"}.".lock")) {445 unless (&munin_getlock(munin_get($newconf, "rundir")."/munin-".join('-',@{munin_get_node_loc($newconf)})."-".munin_get_node_name($newconf).".lock")) { 446 446 logger ("[ERROR] Could not get lock for \"$name\". Skipping node."); 447 447 if ($do_fork) { # Send the old config to the server before we die … … 528 528 } 529 529 alarm (0); 530 munin_removelock( "$config->{rundir}/munin-$domain-$name.lock");530 munin_removelock(munin_get($newconf, "rundir")."/munin-".join('-',@{munin_get_node_loc($newconf)})."-".munin_get_node_name($newconf).".lock"); 531 531 exit; 532 532 } … … 547 547 548 548 } 549 munin_removelock( "$config->{rundir}/munin-$domain-$name.lock");549 munin_removelock(munin_get($newconf, "rundir")."/munin-".join('-',@{munin_get_node_loc($newconf)})."-".munin_get_node_name($newconf).".lock"); 550 550 } 551 551 … … 880 880 { 881 881 my ($newconf,$oldconf,$socket) = @_; 882 my ($domain,$name,$node,$oldnode,$socket) = @_;883 882 my $clientdomain = read_socket_single ($socket); 884 883 my $fetchdomain;
