diff --git a/blue-theme/right.cgi b/blue-theme/right.cgi
index f536b4417..12221eb6e 100755
--- a/blue-theme/right.cgi
+++ b/blue-theme/right.cgi
@@ -33,9 +33,16 @@ if ($level == 0) {
# Show general system information
print "
\n";
+ # Ask status module for collected info
+ &foreign_require("system-status");
+ $info = &system_status::get_collected_info();
+
# Hostname
+ $ip = $info && $info->{'ips'} ? $info->{'ips'}->[0]->[0] :
+ &to_ipaddress(get_system_hostname());
+ $ip = " ($ip)" if ($ip);
print " | $text{'right_host'} | \n";
- print "",&get_system_hostname()," |
\n";
+ print "",&get_system_hostname(),$ip," | \n";
# Operating system
print " | $text{'right_os'} | \n";
@@ -58,10 +65,6 @@ if ($level == 0) {
}
print "$tm |
\n";
- # Ask status module for more
- &foreign_require("system-status");
- $info = &system_status::get_collected_info();
-
# Kernel and CPU
if ($info->{'kernel'}) {
print " | $text{'right_kernel'} | \n";