HEX
Server: Apache
System: Linux vmi1259262.contaboserver.net 5.15.0-170-generic #180-Ubuntu SMP Fri Jan 9 16:10:31 UTC 2026 x86_64
User: aqarnomics (1008)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //usr/share/webmin/virtual-server/recollect.cgi
#!/usr/bin/perl
# Update collected info

require './virtual-server-lib.pl';

# Refresh Webmin info, but only if scheduled collection is enabled in that
# module .. otherwise when Virtualmin's collect_system_info is called below
# it will trigger Webmin collection again!
if (&foreign_check("system-status")) {
	&foreign_require("system-status");
	if ($system_status::config{'collect_interval'} ne 'none') {
		&system_status::scheduled_collect_system_info('manual');
		}
	}

# Refresh Virtualmin-specific info
$info = &collect_system_info('manual');
if ($info) {
	&save_collected_info($info);
	}

&redirect($ENV{'HTTP_REFERER'});