I use the version
OPNsense 23.7.6-amd64
FreeBSD 13.2-RELEASE-p3
OpenSSL 1.1.1w 11 Sep 2023
1.I turned off Enable local statistics collection in the unbound dns report and saved it. Just jump to the white page and display:
Fatal error: Uncaught ValueError: Unknown format specifier "�" in /usr/local/www/guiconfig.inc:295 Stack trace: #0 /usr/local/www/guiconfig.inc(295): sprintf('\xE6\x9B\xB4\xE6\x94\xB9\xE5\xB7\xB2\xE6\x88\x90\xE5\x8A\x9F...', '
so what happend . I try cat file
287 global $config;
290 if (!empty($config['hasync']['synchronizetoip'])) {
291 if (!$plain) {
292 $lnk_start = '<a href="status_habackup.php">';
293 $lnk_end = '</a>';
294 }
295 return sprintf(
296 gettext("The changes have been applied successfully, ".
297 "remember to update your backup server in %sSystem: High availability: status%s"),
298 $lnk_start, $lnk_end
299 );
300 } else {
301 return gettext('The changes have been applied successfully.');
302 }
303 }
2. CPU usage is too high
I don't understand what happened,why cpu usage is too high
root 11 799.0 0.0 0 128 - RNL 14:38 152:02.95 [idle]
root 0 0.0 0.0 0 1040 - DLs 14:38 0:06.98 [kernel]
root 1 0.0 0.0 11376 936 - ILs 14:38 0:00.01 /sbin/init
root 2 0.0 0.0 0 128 - DL 14:38 0:00.00 [KTLS]
root 3 0.0 0.0 0 144 - DL 14:38 0:00.00 [crypto]
root 4 0.0 0.0 0 48 - DL 14:38 0:06.75 [cam]
root 5 0.0 0.0 0 16 - DL 14:38 0:02.84 [pf purge]
root 6 0.0 0.0 0 16 - DL 14:38 0:00.22 [rand_harvestq]
root 7 0.0 0.0 0 48 - DL 14:38 0:02.40 [pagedaemon]
——————————————————————————————————————
I turned off intrusion detection and reporting in the traffic settings local capture,The CPU usage has been reduced, and this problem has not occurred before with the same settings.
——————————————————————————————————————
2023-10-8 GMT+8 8:22
I tried Reset Netflow Data and Reset RRD Date, everything seems to be normal, I don't know if there is any connection between them.
I'm a bit unclear what your issue is with Unbound Reporting. What do you mean by "white page"?
Some people have had Unbound Reporting get corrupted. Clicking on Reset DNS Data will often fix it.
What are you using to get what you posted for the CPU issue? You didn't post the headers and they don't match top or the OPNSense UI.
Sorry, my English is not very good, so I use machine translation to ask questions。
2.1 I try to close Reporting: NetFlow Capture local Options, CPU usage is reduced from 6ghz to 300mhz.
2.2 Check CPU usage of applications. I use the ps -aux | head
.
No problem. What is your native language? There may be a few people on here that speak it. There's also the International section if it's one of those.
I don't recall NetFlow being particularly CPU intensive but it's been a while since I did anything with it.
ps aux | head is not a good method to search for high CPU utilization. If you look at the snippet you posted, your machine is showing as idle. A better way is to look at System -> Diagnostics -> Activity or ssh in and run top.