[! use strict; use PVE::pvecfg; use PVE::I18N; use PVE::ConfigServer; use PVE::HTMLTable; use PVE::HTMLControls; !] [- use strict; my $cinfo = $fdat{__cinfo}; my $out = ''; my $ni; if (defined ($fdat{cid}) && ($ni = $cinfo->{"CID_$fdat{cid}"})) { my $cid = $fdat{cid}; my $txt = sprintf (__("System Status for node '%s'"), $ni->{name}); $out .= PVE::HTMLUtils::create_statusframe ("hostview$cid", $txt); $out .= PVE::HTMLControls::create_wsviewer ("hostview$cid", "hostview${cid}right", '/ws/status', { cid => $cid, verbose => 1 }, 5); } else { $out = PVE::HTMLUtils::create_cluster_status ($cinfo); } print OUT $out; -]