I find it quite convenient to always be able to see if my ZABBIX server is currently running.
This is a small patch for current trunk (trunk/frontends/php/include/page_header.php@4893), based on report1.php:
This is a small patch for current trunk (trunk/frontends/php/include/page_header.php@4893), based on report1.php:
PHP Code:
--- trunk-orig/frontends/php/include/page_header.php 2007-10-31 15:25:41.000000000 +0100
+++ trunk/frontends/php/include/page_header.php 2007-11-08 12:19:02.000000000 +0100
@@ -389,12 +389,18 @@
{
COpt::compare_files_with_menu($ZBX_MENU);
+// Show ZABBIX Server status in header
+ $status = get_status();
+ $zbx_srv_status = array(S_ZABBIX_SERVER_IS_RUNNING, ": ", new CSpan($status["zabbix_server"], ($status["zabbix_server"] == S_YES ? "off" : "on")));
+ $zbx_srv_status = new CLink($zbx_srv_status, "report1.php", "small_font");
+ $zbx_srv_status->SetTarget('_self');
+
$help = new CLink(S_HELP, "http://www.zabbix.com/manual/v1.4", "small_font");
$help->SetTarget('_blank');
$support = new CLink(S_GET_SUPPORT, "http://www.zabbix.com/support.php", "small_font");
$support->SetTarget('_blank');
- $page_header_r_col = array($help,array("|", $support));
+ $page_header_r_col = array($zbx_srv_status, "|", $help, array("|", $support));
if($USER_DETAILS["alias"] != ZBX_GUEST_USER){
$page_header_r_col[] = array("|",
new CLink(S_PROFILE, "profile.php", "small_font"),"|",


Comment