You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since upgrading to 23.7-RC1 I have a reported crash once per minute which appears to be triggered by the default gateway_alert check in Monit:
[21-Jul-2023 08:40:28 Europe/London] Error: Call to undefined function legacy_interfaces_details() in /usr/local/etc/inc/plugins.inc.d/dpinger.inc:142
Stack trace:
#0 /usr/local/etc/inc/plugins.inc.d/dpinger.inc(353): dpinger_instances()
#1 /usr/local/etc/inc/plugins.inc(330): dpinger_status()
#2 /usr/local/etc/inc/legacy_bindings.inc(172): plugins_run('return_gateways...')
#3 /usr/local/opnsense/scripts/OPNsense/Monit/gateway_alert(52): return_gateways_status()
#4 {main}
To my PHP-naive mind it looks like dpinger.inc is missing a require_once 'interfaces.lib.inc; as this file is where the legacy_interfaces_details() function is actually defined. I did this on my appliance in an attempt to get rid of the errors and it did, but I'll leave it to the experts to decide whether that's the right solution or not.
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
Describe the bug
Since upgrading to 23.7-RC1 I have a reported crash once per minute which appears to be triggered by the default
gateway_alert
check in Monit:To my PHP-naive mind it looks like
dpinger.inc
is missing arequire_once 'interfaces.lib.inc;
as this file is where thelegacy_interfaces_details()
function is actually defined. I did this on my appliance in an attempt to get rid of the errors and it did, but I'll leave it to the experts to decide whether that's the right solution or not.Tip: to validate your setup was working with the previous version, use opnsense-revert (https://docs.opnsense.org/manual/opnsense_tools.html#opnsense-revert)
To Reproduce
Steps to reproduce the behavior:
os-monit
pluginExpected behavior
Errors do not happen
Describe alternatives you considered
A clear and concise description of any alternative solutions or workaround you considered.
Screenshots
If applicable, add screenshots to help explain your problem.
Relevant log files
If applicable, information from log files supporting your claim.
Additional context
Add any other context about the problem here.
Environment
Software version used and hardware type if relevant, e.g.:
OPNsense 23.7r1 (amd64, OpenSSL).
Atom C2558
Network Intel® I210
The text was updated successfully, but these errors were encountered: