Changeset 3521

Show
Ignore:
Timestamp:
25/04/10 11:48:15 (2 years ago)
Author:
steve.schnepp
Message:

- use /tmp/munin-async/spool for spool dif
- [client] disable buffering to avoid munin-update lockout
- [client] sends header with the node name

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • people/snide/async-polling/munin-async-client

    r3520 r3521  
    2323use warnings; 
    2424 
    25 my $SPOOLDIR = "/tmp"; 
     25# Disable buffering 
     26$| = 1; 
     27 
     28my $SPOOLDIR = "/tmp/munin-async-spool"; 
    2629 
    2730# Use STDIN/STDOUT, in order to be :  
     
    3134 
    3235die "spooldir [$SPOOLDIR] not found" unless -d $SPOOLDIR; 
     36 
     37my $hostname = `hostname`; 
     38chomp($hostname); 
     39print "# munin node at $hostname\n"; 
    3340 
    3441while (my $line = <>) { 
     
    4350                # XXX - there is a race condition here 
    4451                unlink("$SPOOLDIR/munin-daemon.$1.data");  
     52        } else { 
     53                print "# Unknown command.\n"; 
    4554        } 
    4655} 
  • people/snide/async-polling/munin-async-server

    r3520 r3521  
    2828# TODO - might be directly inserted in munin-node 
    2929my $host = "localhost:4949"; 
    30 my $SPOOLDIR = "/tmp"; 
     30my $SPOOLDIR = "/tmp/munin-async-spool"; 
    3131 
    3232# Q&D spooldir creation