Actions
Bug #2328
closedNumerous non-CP logs ending up in CP logs
Start date:
03/31/2012
Due date:
% Done:
0%
Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.1
Affected Architecture:
Description
a number of logs not related to CP are ending up in the CP logs. The following a few examples.
Mar 31 04:32:33 php[32396]: /vpn_ipsec_phase2.php: Reloading IPsec tunnel ''. Previous IP '1.2.3.4', current IP '1.2.3.4'. Reloading policy Mar 31 04:33:00 php[32396]: /vpn_ipsec_phase2.php: Reloading IPsec tunnel ''. Previous IP '1.2.3.4', current IP '1.2.3.4'. Reloading policy Mar 31 05:12:09 php[32396]: /interfaces_assign.php: Calling interface down for interface opt1, destroy is Mar 31 05:12:09 php[32396]: /interfaces_assign.php: Deny router advertisements for interface opt1 Mar 31 05:12:15 php[32396]: /interfaces_assign.php: configuring interface lan for type DHCP-PD radvd subnet / Mar 31 05:12:15 php[32396]: /interfaces_assign.php: The command '/usr/local/sbin/radvd -C /var/etc/radvd.conf -m syslog' returned exit code '1', the output was '' Mar 31 05:12:15 php[32396]: /interfaces_assign.php: Calling interface down for interface opt2, destroy is Mar 31 05:12:15 php[32396]: /interfaces_assign.php: Deny router advertisements for interface opt2 Mar 31 05:12:21 php[32396]: /interfaces_assign.php: configuring interface lan for type DHCP-PD radvd subnet / Mar 31 05:12:21 php[32396]: /interfaces_assign.php: The command '/usr/local/sbin/radvd -C /var/etc/radvd.conf -m syslog' returned exit code '1', the output was '' Mar 31 05:12:21 php[32396]: /interfaces_assign.php: Calling interface down for interface opt3, destroy is Mar 31 05:12:21 php[32396]: /interfaces_assign.php: Deny router advertisements for interface opt3 Mar 31 05:12:27 php[32396]: /interfaces_assign.php: configuring interface lan for type DHCP-PD radvd subnet / Mar 31 05:12:27 php[32396]: /interfaces_assign.php: The command '/usr/local/sbin/radvd -C /var/etc/radvd.conf -m syslog' returned exit code '1', the output was '' Mar 31 05:12:27 php[32396]: /interfaces_assign.php: Calling interface down for interface opt4, destroy is Mar 31 05:12:27 php[32396]: /interfaces_assign.php: Deny router advertisements for interface opt4 Mar 31 05:12:33 php[32396]: /interfaces_assign.php: configuring interface lan for type DHCP-PD radvd subnet / Mar 31 05:12:33 php[32396]: /interfaces_assign.php: The command '/usr/local/sbin/radvd -C /var/etc/radvd.conf -m syslog' returned exit code '1', the output was '' Mar 31 05:12:33 php[32396]: /interfaces_assign.php: Calling interface down for interface opt5, destroy is Mar 31 05:12:33 php[32396]: /interfaces_assign.php: Deny router advertisements for interface opt5 Mar 31 05:12:39 php[32396]: /interfaces_assign.php: configuring interface lan for type DHCP-PD radvd subnet / Mar 31 05:12:39 php[32396]: /interfaces_assign.php: The command '/usr/local/sbin/radvd -C /var/etc/radvd.conf -m syslog' returned exit code '1', the output was '' Mar 31 05:12:40 php[32396]: /interfaces_assign.php: Creating rrd update script Mar 31 05:13:12 php[32396]: /interfaces.php: Calling interface down for interface opt1, destroy is Mar 31 05:13:12 php[32396]: /interfaces.php: Deny router advertisements for interface opt1 Mar 31 05:13:17 php[32396]: /interfaces.php: configuring interface lan for type DHCP-PD radvd subnet / Mar 31 05:13:17 php[32396]: /interfaces.php: The command '/usr/local/sbin/radvd -C /var/etc/radvd.conf -m syslog' returned exit code '1', the output was '' Mar 31 05:13:21 php[32396]: /interfaces.php: Creating rrd update script Mar 31 05:14:19 php[32396]: /interfaces.php: Calling interface down for interface opt2, destroy is Mar 31 05:14:19 php[32396]: /interfaces.php: Deny router advertisements for interface opt2 Mar 31 05:14:24 php[32396]: /interfaces.php: configuring interface lan for type DHCP-PD radvd subnet / Mar 31 05:14:24 php[32396]: /interfaces.php: The command '/usr/local/sbin/radvd -C /var/etc/radvd.conf -m syslog' returned exit code '1', the output was '' Mar 31 05:14:24 php[32396]: /interfaces.php: Calling interface down for interface opt3, destroy is Mar 31 05:14:24 php[32396]: /interfaces.php: Deny router advertisements for interface opt3 Mar 31 05:14:30 php[32396]: /interfaces.php: configuring interface lan for type DHCP-PD radvd subnet / Mar 31 05:14:30 php[32396]: /interfaces.php: The command '/usr/local/sbin/radvd -C /var/etc/radvd.conf -m syslog' returned exit code '1', the output was '' Mar 31 05:14:30 php[32396]: /interfaces.php: Calling interface down for interface opt4, destroy is Mar 31 05:14:30 php[32396]: /interfaces.php: Deny router advertisements for interface opt4 Mar 31 05:14:37 php[32396]: /interfaces.php: configuring interface lan for type DHCP-PD radvd subnet / Mar 31 05:14:37 php[32396]: /interfaces.php: The command '/usr/local/sbin/radvd -C /var/etc/radvd.conf -m syslog' returned exit code '1', the output was ''
Updated by Jim Pingle over 12 years ago
That looks like anything in PHP that uses log_error() is doing that.
However log_error is doing this:
function log_error($error) { global $g; $page = $_SERVER['SCRIPT_NAME']; syslog(LOG_ERR, "$page: $error"); if ($g['debug']) syslog(LOG_WARNING, var_dump(debug_backtrace())); return; }
And captiveportal.inc uses:
function captiveportal_syslog($message) { $message = trim($message); openlog("logportalauth", LOG_PID, LOG_LOCAL4); // Log it syslog(LOG_INFO, $message); closelog(); }
I wonder if we need to call openlog() inside of log_error() to make sure that does not persist.
Updated by Jim Pingle over 12 years ago
http://www.php.net/manual/en/function.openlog.php#98307 suggests an alternate way of specifying the facility that may be better.
Updated by Chris Buechler over 11 years ago
- Status changed from New to Resolved
this looks to have been fixed at some point, not seeing that on any of several installs.
Actions