Project

General

Profile

« Previous | Next » 

Revision 087a89f8

Added by Chris Buechler almost 15 years ago

fix some of the logging for load balancer, still partially broken

View differences:

etc/inc/system.inc
483 483
			if($syslogcfg['remoteserver3'])
484 484
				$syslogconf .= "*.*					 @{$syslogcfg['remoteserver3']}\n";
485 485
		}
486
		$syslogconf .= "!relayd\n";
487
		$syslogconf .= "*.* 						{$log_directive}{$g['varlog_path']}/relayd.log\n";
486 488
		$syslogconf .= "!-{$facilitylist}\n";
487 489
		if (!isset($syslogcfg['disablelocallogging'])) 
488 490
			$syslogconf .= <<<EOD
......
495 497
local7.none										 {$log_directive}{$g['varlog_path']}/system.log
496 498
security.*										 {$log_directive}{$g['varlog_path']}/system.log
497 499
auth.info;authpriv.info;daemon.info				 {$log_directive}{$g['varlog_path']}/system.log
498
local1.*										 {$log_directive}{$g['varlog_path']}/relayd.log
499 500
auth.info;authpriv.info 						 |exec /usr/local/sbin/sshlockout_pf
500 501
*.emerg											 *
501 502

  
......
1450 1451
	return file_get_contents("{$g['varlog_path']}/dmesg.boot");
1451 1452
}
1452 1453

  
1453
?>
1454
?>
etc/inc/vslb.inc
201 201

  
202 202
  /* reindex pools by name as we loop through the pools array */
203 203
  $pools = array();
204
  $conf .= "log updates \n";
204 205
  /* Virtual server pools */
205 206
  if(is_array($pool_a)) {
206 207
    for ($i = 0; isset($pool_a[$i]); $i++) {
......
272 273
  }
273 274
}
274 275

  
275
?>
276
?>
usr/local/www/status_lb_pool.php
46 46
}
47 47
$a_pool = &$config['load_balancer']['lbpool'];
48 48

  
49
$slbd_logfile = "{$g['varlog_path']}/slbd.log";
49
$lb_logfile = "{$g['varlog_path']}/relayd.log";
50 50

  
51 51
$nentries = $config['syslog']['nentries'];
52 52
if (!$nentries)
......
117 117
						$lastchange = "";
118 118
                                                $svr = split("\|", $server);
119 119
						$monitorip = $svr[1];
120
						$logstates = return_clog($slbd_logfile, $nentries, true, array("$monitorip", "marking"), "", true);
120
						$logstates = return_clog($lb_logfile, $nentries, true, array("$monitorip", "marking"), "", true);
121 121

  
122 122
						$logstates = $logstates[0];
123 123

  

Also available in: Unified diff