summaryrefslogtreecommitdiffstats
path: root/frontends/php/include
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-05-20 12:34:33 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-05-20 12:34:33 +0000
commitd3efc4c51bb20d6122b9b45964017a9d1eae7c3a (patch)
treec4288136453a2efab1a29e2298ed7c5c9a885701 /frontends/php/include
parent03daa4e63ed831c05e5e55d1f12411a5b3fbd6d8 (diff)
- added support of localisation (Alexei)
- added file frontends/php/include/locale_en.inc.php (Alexei) - fixed check of NNTP service (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@1347 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include')
-rw-r--r--frontends/php/include/config.inc.php745
-rw-r--r--frontends/php/include/defines.inc.php1
-rw-r--r--frontends/php/include/forms.inc.php640
-rw-r--r--frontends/php/include/local_en.inc.php398
4 files changed, 1086 insertions, 698 deletions
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php
index ce3ce60f..35750a99 100644
--- a/frontends/php/include/config.inc.php
+++ b/frontends/php/include/config.inc.php
@@ -21,6 +21,7 @@
<?php
include_once "include/defines.inc.php";
include_once "include/db.inc.php";
+ include_once "include/local_en.inc.php";
$USER_DETAILS ="";
$ERROR_MSG ="";
@@ -1185,11 +1186,11 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
if( ($page["file"]=="latest.php") ||
($page["file"]=="history.php"))
{
- echo "<b>[LATEST&nbsp;VALUES]</b></a>";
+ echo "<b>[".nbsp(S_MENU_LATEST_VALUES)."]</b></a>";
}
else
{
- echo "LATEST&nbsp;VALUES</a>";
+ echo nbsp(S_MENU_LATEST_VALUES)."</a>";
}
?>
</td>
@@ -1201,11 +1202,11 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
}
if($page["file"]=="tr_status.php")
{
- echo "<b>[TRIGGERS]</b></a>";
+ echo "<b>[".S_MENU_TRIGGERS."]</b></a>";
}
else
{
- echo "TRIGGERS</a>";
+ echo S_MENU_TRIGGERS."</a>";
}
?>
</td>
@@ -1217,11 +1218,11 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
}
if($page["file"]=="queue.php")
{
- echo "<b>[QUEUE]</b></a>";
+ echo "<b>[".S_MENU_QUEUE."]</b></a>";
}
else
{
- echo "QUEUE</a>";
+ echo S_MENU_QUEUE."</a>";
}
?>
</td>
@@ -1236,11 +1237,11 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
if(($page["file"]=="latestalarms.php") ||
($page["file"]=="alarms.php"))
{
- echo "<b>[ALARMS]</b></a>";
+ echo "<b>[".S_MENU_ALARMS."]</b></a>";
}
else
{
- echo "ALARMS</a>";
+ echo S_MENU_ALARMS."</a>";
}
?>
</td>
@@ -1254,11 +1255,11 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
<?php
if($page["file"]=="alerts.php")
{
- echo "<b>[ALERTS]</b></a>";
+ echo "<b>[".S_MENU_ALERTS."]</b></a>";
}
else
{
- echo "ALERTS</a>";
+ echo S_MENU_ALERTS."</a>";
}
?>
</td>
@@ -1272,11 +1273,11 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
<?php
if($page["file"]=="maps.php")
{
- echo "<b>[NETWORK&nbsp;MAPS]</b></a>";
+ echo "<b>[".nbsp(S_MENU_NETWORK_MAPS)."]</b></a>";
}
else
{
- echo "NETWORK&nbsp;MAPS</a>";
+ echo nbsp(S_MENU_NETWORK_MAPS)."</a>";
}
?>
</td>
@@ -1290,11 +1291,11 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
<?php
if($page["file"]=="charts.php")
{
- echo "<b>[GRAPHS]</b></a>";
+ echo "<b>[".S_MENU_GRAPHS."]</b></a>";
}
else
{
- echo "GRAPHS</a>";
+ echo S_MENU_GRAPHS."</a>";
}
?>
</td>
@@ -1308,11 +1309,11 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
<?php
if($page["file"]=="screens.php")
{
- echo "<b>[SCREENS]</b></a>";
+ echo "<b>[".S_MENU_SCREENS."]</b></a>";
}
else
{
- echo "SCREENS</a>";
+ echo S_MENU_SCREENS."</a>";
}
?>
</td>
@@ -1325,11 +1326,11 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
}
if($page["file"]=="srv_status.php")
{
- echo "<b>[IT&nbsp;SERVICES]</b></a>";
+ echo "<b>[".nbsp(S_MENU_IT_SERVICES)."]</b></a>";
}
else
{
- echo "IT&nbsp;SERVICES</a>";
+ echo nbsp(S_MENU_IT_SERVICES)."</a>";
}
?>
</td>
@@ -1341,11 +1342,11 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
<?php
if($page["file"]=="index.php")
{
- echo "<b>[HOME]</b></a>";
+ echo "<b>[".S_MENU_HOME."]</b></a>";
}
else
{
- echo "HOME</a>";
+ echo S_MENU_HOME."</a>";
}
?>
</td>
@@ -1359,11 +1360,11 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
<?php
if($page["file"]=="about.php")
{
- echo "<b>[ABOUT]</b></a>";
+ echo "<b>[".S_MENU_ABOUT."]</b></a>";
}
else
{
- echo "ABOUT</a>";
+ echo S_MENU_ABOUT."</a>";
}
?>
</td>
@@ -1377,11 +1378,11 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
<?php
if($page["file"]=="report1.php")
{
- echo "<b>[STATUS&nbsp;OF&nbsp;ZABBIX]</b></a>";
+ echo "<b>[".nbsp(S_MENU_STATUS_OF_ZABBIX)."]</b></a>";
}
else
{
- echo "STATUS&nbsp;OF&nbsp;ZABBIX</a>";
+ echo nbsp(S_MENU_STATUS_OF_ZABBIX)."</a>";
}
?>
</td>
@@ -1395,11 +1396,11 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
<?php
if($page["file"]=="report2.php")
{
- echo "<b>[AVAILABILITY&nbsp;REPORT]</b></a>";
+ echo "<b>[".nbsp(S_MENU_AVAILABILITY_REPORT)."]</b></a>";
}
else
{
- echo "AVAILABILITY&nbsp;REPORT</a>";
+ echo nbsp(S_MENU_AVAILABILITY_REPORT)."</a>";
}
?>
</td>
@@ -1432,11 +1433,11 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
}
if($page["file"]=="config.php")
{
- echo "<b>[CONFIG]</b></a>";
+ echo "<b>[".S_MENU_CONFIG."]</b></a>";
}
else
{
- echo "CONFIG</a>";
+ echo S_MENU_CONFIG."</a>";
}
?>
</td>
@@ -1449,11 +1450,11 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
if( ($page["file"]=="users.php")||
($page["file"]=="media.php"))
{
- echo "<b>[USERS]</b></a>";
+ echo "<b>[".S_MENU_USERS."]</b></a>";
}
else
{
- echo "USERS</a>";
+ echo S_MENU_USERS."</a>";
}
?>
</td>
@@ -1465,11 +1466,11 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
}
if($page["file"]=="hosts.php")
{
- echo "<b>[HOSTS]</b></a>";
+ echo "<b>[".S_MENU_HOSTS."]</b></a>";
}
else
{
- echo "HOSTS</a>";
+ echo S_MENU_HOSTS."</a>";
}
?>
</td>
@@ -1481,11 +1482,11 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
}
if($page["file"]=="items.php")
{
- echo "<b>[ITEMS]</b></a>";
+ echo "<b>[".S_MENU_ITEMS."]</b></a>";
}
else
{
- echo "ITEMS</a>";
+ echo S_MENU_ITEMS."</a>";
}
?>
</td>
@@ -1498,11 +1499,11 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
if( ($page["file"]=="triggers.php")||
($page["file"]=="actions.php"))
{
- echo "<b>[TRIGGERS]</b></a>";
+ echo "<b>[".S_MENU_TRIGGERS."]</b></a>";
}
else
{
- echo "TRIGGERS</a>";
+ echo S_MENU_TRIGGERS."</a>";
}
?>
</td>
@@ -1515,11 +1516,11 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
if( ($page["file"]=="sysmaps.php")||
($page["file"]=="sysmap.php"))
{
- echo "<b>[NETWORK&nbsp;MAPS]</b></a>";
+ echo "<b>[".nbsp(S_MENU_NETWORK_MAPS)."]</b></a>";
}
else
{
- echo "NETWORK&nbsp;MAPS</a>";
+ echo nbsp(S_MENU_NETWORK_MAPS)."</a>";
}
?>
</td>
@@ -1532,11 +1533,11 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
if( ($page["file"]=="graphs.php")||
($page["file"]=="graph.php"))
{
- echo "<b>[GRAPHS]</b></a>";
+ echo "<b>[".S_MENU_GRAPHS."]</b></a>";
}
else
{
- echo "GRAPHS</a>";
+ echo S_MENU_GRAPHS."</a>";
}
?>
</td>
@@ -1549,11 +1550,11 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
if( ($page["file"]=="screenedit.php")||
($page["file"]=="screenconf.php"))
{
- echo "<b>[SCREENS]</b></a>";
+ echo "<b>[".S_MENU_SCREENS."]</b></a>";
}
else
{
- echo "SCREENS</a>";
+ echo S_MENU_SCREENS."</a>";
}
?>
</td>
@@ -1566,11 +1567,11 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
}
if($page["file"]=="services.php")
{
- echo "<b>[IT&nbsp;SERVICES]</b></a>";
+ echo "<b>[".nbsp(S_MENU_IT_SERVICES)."]</b></a>";
}
else
{
- echo "IT&nbsp;SERVICES</a>";
+ echo nbsp(S_MENU_IT_SERVICES)."</a>";
}
?>
</td>
@@ -3827,658 +3828,6 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
show_footer();
}
- # Insert form for Item information
- function insert_item_form()
- {
- global $HTTP_GET_VARS;
-
- $description=@iif(isset($HTTP_GET_VARS["description"]),$HTTP_GET_VARS["description"],"");
- $key=@iif(isset($HTTP_GET_VARS["key"]),$HTTP_GET_VARS["key"],"");
- $host=@iif(isset($HTTP_GET_VARS["host"]),$HTTP_GET_VARS["host"],"");
- $port=@iif(isset($HTTP_GET_VARS["port"]),$HTTP_GET_VARS["port"],10000);
- $delay=@iif(isset($HTTP_GET_VARS["delay"]),$HTTP_GET_VARS["delay"],30);
- $history=@iif(isset($HTTP_GET_VARS["history"]),$HTTP_GET_VARS["history"],365);
- $status=@iif(isset($HTTP_GET_VARS["status"]),$HTTP_GET_VARS["status"],0);
- $type=@iif(isset($HTTP_GET_VARS["type"]),$HTTP_GET_VARS["type"],0);
- $snmp_community=@iif(isset($HTTP_GET_VARS["snmp_community"]),$HTTP_GET_VARS["snmp_community"],"public");
- $snmp_oid=@iif(isset($HTTP_GET_VARS["snmp_oid"]),$HTTP_GET_VARS["snmp_oid"],"interfaces.ifTable.ifEntry.ifInOctets.1");
- $value_type=@iif(isset($HTTP_GET_VARS["value_type"]),$HTTP_GET_VARS["value_type"],0);
- $trapper_hosts=@iif(isset($HTTP_GET_VARS["trapper_hosts"]),$HTTP_GET_VARS["trapper_hosts"],"");
- $snmp_port=@iif(isset($HTTP_GET_VARS["snmp_port"]),$HTTP_GET_VARS["snmp_port"],161);
- $units=@iif(isset($HTTP_GET_VARS["units"]),$HTTP_GET_VARS["units"],'');
- $multiplier=@iif(isset($HTTP_GET_VARS["multiplier"]),$HTTP_GET_VARS["multiplier"],0);
- $hostid=@iif(isset($HTTP_GET_VARS["hostid"]),$HTTP_GET_VARS["hostid"],0);
- $delta=@iif(isset($HTTP_GET_VARS["delta"]),$HTTP_GET_VARS["delta"],0);
-
- if(isset($HTTP_GET_VARS["register"])&&($HTTP_GET_VARS["register"] == "change"))
- {
- $result=DBselect("select i.description, i.key_, h.host, h.port, i.delay, i.history, i.status, i.type, i.snmp_community,i.snmp_oid,i.value_type,i.trapper_hosts,i.snmp_port,i.units,i.multiplier,h.hostid,i.delta from items i,hosts h where i.itemid=".$HTTP_GET_VARS["itemid"]." and h.hostid=i.hostid");
-
- $description=DBget_field($result,0,0);
- $key=DBget_field($result,0,1);
- $host=DBget_field($result,0,2);
- $port=DBget_field($result,0,3);
- $delay=DBget_field($result,0,4);
- $history=DBget_field($result,0,5);
- $status=DBget_field($result,0,6);
- $type=iif(isset($HTTP_GET_VARS["type"]),isset($HTTP_GET_VARS["type"]),DBget_field($result,0,7));
- $snmp_community=DBget_field($result,0,8);
- $snmp_oid=DBget_field($result,0,9);
- $value_type=DBget_field($result,0,10);
- $trapper_hosts=DBget_field($result,0,11);
- $snmp_port=DBget_field($result,0,12);
- $units=DBget_field($result,0,13);
- $multiplier=DBget_field($result,0,14);
- $hostid=DBget_field($result,0,15);
- $delta=DBget_field($result,0,16);
- }
-
- echo "<br>";
-
- show_table2_header_begin();
- echo "Item";
-
- show_table2_v_delimiter();
- echo "<form method=\"get\" action=\"items.php\">";
- if(isset($HTTP_GET_VARS["itemid"]))
- {
- echo "<input class=\"biginput\" name=\"itemid\" type=hidden value=".$HTTP_GET_VARS["itemid"].">";
- }
- echo "Description";
- show_table2_h_delimiter();
- echo "<input class=\"biginput\" name=\"description\" value=\"$description\"size=40>";
-
- show_table2_v_delimiter();
- echo "Host";
- show_table2_h_delimiter();
- echo "<select class=\"biginput\" name=\"hostid\" value=\"3\">";
- $result=DBselect("select hostid,host from hosts order by host");
- for($i=0;$i<DBnum_rows($result);$i++)
- {
- $hostid_=DBget_field($result,$i,0);
- $host_=DBget_field($result,$i,1);
- if($hostid==$hostid_)
- {
- echo "<option value=\"$hostid_\" selected>$host_";
- }
- else
- {
- echo "<option value=\"$hostid_\">$host_";
- }
- }
- echo "</select>";
-
- show_table2_v_delimiter();
- echo "Type";
- show_table2_h_delimiter();
- echo "<SELECT class=\"biginput\" NAME=\"type\" value=\"$type\" size=\"1\" onChange=\"submit()\">";
- echo "<OPTION VALUE=\"0\"";
- if($type==0) echo "SELECTED";
- echo ">Zabbix agent";
- echo "<OPTION VALUE=\"3\"";
- if($type==3) echo "SELECTED";
- echo ">Simple check";
- echo "<OPTION VALUE=\"1\"";
- if($type==1) echo "SELECTED";
- echo ">SNMPv1 agent";
- echo "<OPTION VALUE=\"4\"";
- if($type==4) echo "SELECTED";
- echo ">SNMPv2 agent";
- echo "<OPTION VALUE=\"2\"";
- if($type==2) echo "SELECTED";
- echo ">Zabbix trapper";
- echo "<OPTION VALUE=\"5\"";
- if($type==5) echo "SELECTED";
- echo ">Zabbix internal";
- echo "</SELECT>";
-
- if(($type==1)||($type==4))
- {
- show_table2_v_delimiter();
- echo nbsp("SNMP community");
- show_table2_h_delimiter();
- echo "<input class=\"biginput\" name=\"snmp_community\" value=\"$snmp_community\" size=16>";
-
- show_table2_v_delimiter();
- echo nbsp("SNMP OID");
- show_table2_h_delimiter();
- echo "<input class=\"biginput\" name=\"snmp_oid\" value=\"$snmp_oid\" size=40>";
-
- show_table2_v_delimiter();
- echo nbsp("SNMP port");
- show_table2_h_delimiter();
- echo "<input class=\"biginput\" name=\"snmp_port\" value=\"$snmp_port\" size=5>";
- }
- else
- {
- echo "<input class=\"biginput\" name=\"snmp_community\" type=hidden value=\"$snmp_community\">";
- echo "<input class=\"biginput\" name=\"snmp_oid\" type=hidden value=\"$snmp_oid\">";
- echo "<input class=\"biginput\" name=\"snmp_port\" type=hidden value=\"$snmp_port\">";
- }
-
- show_table2_v_delimiter();
- echo "Key";
- show_table2_h_delimiter();
- echo "<input class=\"biginput\" name=\"key\" value=\"$key\" size=40>";
-
- show_table2_v_delimiter();
- echo "Units";
- show_table2_h_delimiter();
- echo "<input class=\"biginput\" name=\"units\" value=\"$units\" size=10>";
-
- show_table2_v_delimiter();
- echo "Multiplier";
- show_table2_h_delimiter();
- echo "<SELECT class=\"biginput\" NAME=\"multiplier\" value=\"$multiplier\" size=\"1\">";
- echo "<OPTION VALUE=\"0\"";
- if($multiplier==0) echo "SELECTED";
- echo ">-";
- echo "<OPTION VALUE=\"1\"";
- if($multiplier==1) echo "SELECTED";
- echo ">K (1024)";
- echo "<OPTION VALUE=\"2\"";
- if($multiplier==2) echo "SELECTED";
- echo ">M (1024^2)";
- echo "<OPTION VALUE=\"3\"";
- if($multiplier==3) echo "SELECTED";
- echo ">G (1024^3)";
- echo "</SELECT>";
-
- if($type!=2)
- {
- show_table2_v_delimiter();
- echo nbsp("Update interval (in sec)");
- show_table2_h_delimiter();
- echo "<input class=\"biginput\" name=\"delay\" value=\"$delay\" size=5>";
- }
- else
- {
- echo "<input class=\"biginput\" name=\"delay\" type=hidden value=\"$delay\">";
- }
-
- show_table2_v_delimiter();
- echo nbsp("Keep history (in days)");
- show_table2_h_delimiter();
- echo "<input class=\"biginput\" name=\"history\" value=\"$history\" size=8>";
-
- show_table2_v_delimiter();
- echo "Status";
- show_table2_h_delimiter();
- echo "<SELECT class=\"biginput\" NAME=\"status\" value=\"$status\" size=\"1\">";
- echo "<OPTION VALUE=\"0\"";
- if($status==0) echo "SELECTED";
- echo ">Monitored";
- echo "<OPTION VALUE=\"1\"";
- if($status==1) echo "SELECTED";
- echo ">Disabled";
-# echo "<OPTION VALUE=\"2\"";
-# if($status==2) echo "SELECTED";
-# echo ">Trapper";
- echo "<OPTION VALUE=\"3\"";
- if($status==3) echo "SELECTED";
- echo ">Not supported";
- echo "</SELECT>";
-
- show_table2_v_delimiter();
- echo nbsp("Type of information");
- show_table2_h_delimiter();
- echo "<SELECT class=\"biginput\" NAME=\"value_type\" value=\"$value_type\" size=\"1\">";
- echo "<OPTION VALUE=\"0\"";
- if($value_type==0) echo "SELECTED";
- echo ">Numeric";
- echo "<OPTION VALUE=\"1\"";
- if($value_type==1) echo "SELECTED";
- echo ">Character";
- echo "</SELECT>";
-
- show_table2_v_delimiter();
- echo nbsp("Store value");
- show_table2_h_delimiter();
- echo "<SELECT class=\"biginput\" NAME=\"delta\" value=\"$delta\" size=\"1\">";
- echo "<OPTION VALUE=\"0\"";
- if($delta==0) echo "SELECTED";
- echo ">As is";
- echo "<OPTION VALUE=\"1\"";
- if($delta==1) echo "SELECTED";
- echo ">Delta";
- echo "</SELECT>";
-
- if($type==2)
- {
- show_table2_v_delimiter();
- echo nbsp("Allowed hosts");
- show_table2_h_delimiter();
- echo "<input class=\"biginput\" name=\"trapper_hosts\" value=\"$trapper_hosts\" size=40>";
- }
- else
- {
- echo "<input class=\"biginput\" name=\"trapper_hosts\" type=hidden value=\"$trapper_hosts\">";
- }
-
- show_table2_v_delimiter2();
- echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"add\">";
- echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"add to all hosts\" onClick=\"return Confirm('Add item to all hosts?');\">";
- if(isset($HTTP_GET_VARS["itemid"]))
- {
- echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"update\">";
- echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"delete\" onClick=\"return Confirm('Delete selected item?');\">";
- }
-
- show_table2_header_end();
-?>
-<?php
-?>
-</TR>
-</TABLE>
-
-</CENTER>
-</FORM>
-
-</BODY>
-</HTML>
-<?php
- }
-
- # Insert form for Host Groups
- function insert_hostgroups_form($groupid)
- {
- global $HTTP_GET_VARS;
-
- if(isset($groupid))
- {
- $groupid=get_group_by_groupid($groupid);
-
- $name=$groupid["name"];
- }
- else
- {
- $name="";
- }
-
- show_table2_header_begin();
- echo "Host group";
-
- show_table2_v_delimiter();
- echo "<form method=\"get\" action=\"hosts.php\">";
- if(isset($HTTP_GET_VARS["groupid"]))
- {
- echo "<input name=\"groupid\" type=\"hidden\" value=\"".$HTTP_GET_VARS["groupid"]."\" size=8>";
- }
- echo "Group name";
- show_table2_h_delimiter();
- echo "<input class=\"biginput\" name=\"name\" value=\"$name\" size=30>";
-
- show_table2_v_delimiter();
- echo "Hosts";
- show_table2_h_delimiter();
- echo "<select multiple class=\"biginput\" name=\"hosts[]\" size=\"5\">";
- $result=DBselect("select distinct hostid,host from hosts order by host");
- while($row=DBfetch($result))
- {
- if(isset($HTTP_GET_VARS["groupid"]))
- {
- $sql="select count(*) as count from hosts_groups where hostid=".$row["hostid"]." and groupid=".$HTTP_GET_VARS["groupid"];
- $result2=DBselect($sql);
- $row2=DBfetch($result2);
- if($row2["count"]==0)
- {
- echo "<option value=\"".$row["hostid"]."\">".$row["host"];
- }
- else
- {
- echo "<option value=\"".$row["hostid"]."\" selected>".$row["host"];
- }
- }
- else
- {
- echo "<option value=\"".$row["hostid"]."\">".$row["host"];
- }
- }
- echo "</select>";
-
- show_table2_v_delimiter2();
- echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"add group\">";
- if(isset($HTTP_GET_VARS["groupid"]))
- {
- echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"update group\">";
- echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"delete group\" onClick=\"return Confirm('Delete selected group?');\">";
- }
- echo "</form>";
- show_table2_header_end();
- }
-
- # Insert form for User Groups
- function insert_usergroups_form($usrgrpid)
- {
- global $HTTP_GET_VARS;
-
- if(isset($usrgrpid))
- {
- $usrgrp=get_usergroup_by_usrgrpid($usrgrpid);
-
- $name=$usrgrp["name"];
- }
- else
- {
- $name="";
- }
-
- show_table2_header_begin();
- echo "User group";
-
- show_table2_v_delimiter();
- echo "<form method=\"get\" action=\"users.php\">";
- if(isset($usrgrpid))
- {
- echo "<input name=\"usrgrpid\" type=\"hidden\" value=\"$usrgrpid\" size=8>";
- }
- echo "Group name";
- show_table2_h_delimiter();
- echo "<input class=\"biginput\" name=\"name\" value=\"$name\" size=30>";
-
- show_table2_v_delimiter();
- echo "Users";
- show_table2_h_delimiter();
- echo "<select multiple class=\"biginput\" name=\"users[]\" size=\"5\">";
- $result=DBselect("select distinct userid,alias from users order by alias");
- while($row=DBfetch($result))
- {
- if(isset($HTTP_GET_VARS["usrgrpid"]))
- {
- $sql="select count(*) as count from users_groups where userid=".$row["userid"]." and usrgrpid=".$HTTP_GET_VARS["usrgrpid"];
- $result2=DBselect($sql);
- $row2=DBfetch($result2);
- if($row2["count"]==0)
- {
- echo "<option value=\"".$row["userid"]."\">".$row["alias"];
- }
- else
- {
- echo "<option value=\"".$row["userid"]."\" selected>".$row["alias"];
- }
- }
- else
- {
- echo "<option value=\"".$row["userid"]."\">".$row["alias"];
- }
- }
- echo "</select>";
-
- show_table2_v_delimiter2();
- echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"add group\">";
- if(isset($HTTP_GET_VARS["usrgrpid"]))
- {
- echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"update group\">";
- echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"delete group\" onClick=\"return Confirm('Delete selected group?');\">";
- }
- echo "</form>";
- show_table2_header_end();
- }
-
- # Insert form for User permissions
- function insert_permissions_form($userid)
- {
- echo "<br>";
-
- show_table2_header_begin();
- echo "New permission";
-
- show_table2_v_delimiter();
- echo "<form method=\"get\" action=\"users.php\">";
- if(isset($userid))
- {
- echo "<input name=\"userid\" type=\"hidden\" value=\"$userid\" size=8>";
- }
- echo "Resource";
- show_table2_h_delimiter();
- echo "<select class=\"biginput\" name=\"right\">";
- echo "<option value=\"Configuration of Zabbix\">Configuration of Zabbix";
- echo "<option value=\"Default permission\">Default permission";
- echo "<option value=\"Graph\">Graph";
- echo "<option value=\"Host\">Host";
- echo "<option value=\"Screen\">Screen";
- echo "<option value=\"Service\">IT Service";
- echo "<option value=\"Item\">Item";
- echo "<option value=\"Network map\">Network map";
- echo "<option value=\"Trigger comment\">Trigger's comment";
- echo "<option value=\"User\">User";
- echo "</select>";
-
- show_table2_v_delimiter();
- echo "Permission";
- show_table2_h_delimiter();
- echo "<select class=\"biginput\" name=\"permission\">";
- echo "<option value=\"R\">Read-only";
- echo "<option value=\"U\">Read-write";
- echo "<option value=\"H\">Hide";
- echo "<option value=\"A\">Add";
- echo "</select>";
-
- show_table2_v_delimiter();
- echo "Resource ID (0 for all)";
- show_table2_h_delimiter();
- echo "<input class=\"biginput\" name=\"id\" value=\"0\" size=4>";
-
- show_table2_v_delimiter2();
- echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"add permission\">";
- show_table2_header_end();
- }
-
- function insert_login_form()
- {
- global $HTTP_GET_VARS;
-
- show_table2_header_begin();
- echo "Login";
-
- show_table2_v_delimiter();
- echo "<form method=\"post\" action=\"index.php\">";
-
- echo "Login name";
- show_table2_h_delimiter();
-// echo "<input name=\"name\" value=\"".$HTTP_GET_VARS["name"]."\" size=20>";
- echo "<input class=\"biginput\" name=\"name\" value=\"\" size=20>";
-
- show_table2_v_delimiter();
- echo "Password";
- show_table2_h_delimiter();
-// echo "<input type=\"password\" name=\"password\" value=\"$password\" size=20>";
- echo "<input class=\"biginput\" type=\"password\" name=\"password\" value=\"\" size=20>";
-
- show_table2_v_delimiter2();
- echo "<input class=\"button\" class=\"button\" type=\"submit\" name=\"register\" value=\"Enter\">";
- show_table2_header_end();
- }
-
- # Insert form for Problem
- function insert_problem_form($problemid)
- {
- echo "<br>";
-
- show_table2_header_begin();
- echo "Problem definition";
- show_table2_v_delimiter();
- echo "<form method=\"post\" action=\"helpdesk.php\">";
- echo "<input name=\"problemid\" type=hidden value=$problemid size=8>";
- echo "Description";
- show_table2_h_delimiter();
- echo "<input name=\"description\" value=\"$description\" size=70>";
-
- show_table2_v_delimiter();
- echo "Severity";
- show_table2_h_delimiter();
- echo "<SELECT NAME=\"priority\" size=\"1\">";
- echo "<OPTION VALUE=\"0\" "; if($priority==0) echo "SELECTED"; echo ">Not classified";
- echo "<OPTION VALUE=\"1\" "; if($priority==1) echo "SELECTED"; echo ">Information";
- echo "<OPTION VALUE=\"2\" "; if($priority==2) echo "SELECTED"; echo ">Warning";
- echo "<OPTION VALUE=\"3\" "; if($priority==3) echo "SELECTED"; echo ">Average";
- echo "<OPTION VALUE=\"4\" "; if($priority==4) echo "SELECTED"; echo ">High";
- echo "<OPTION VALUE=\"5\" "; if($priority==5) echo "SELECTED"; echo ">Disaster";
- echo "</SELECT>";
-
- show_table2_v_delimiter();
- echo "Status";
- show_table2_h_delimiter();
- echo "<SELECT NAME=\"status\" value=\"$status\" size=\"1\">";
- echo "<OPTION VALUE=\"0\"";
- if($status==0) echo "SELECTED";
- echo ">Opened";
- echo "<OPTION VALUE=\"1\"";
- if($status==1) echo "SELECTED";
- echo ">Closed";
- echo "</SELECT>";
-
- show_table2_v_delimiter2();
- echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"add\">";
- if(isset($problemid))
- {
- echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"update\">";
- echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"delete\">";
- }
-
- show_table2_header_end();
- }
-
- # Insert form for Trigger
- function insert_trigger_form($hostid,$triggerid)
- {
- if(isset($triggerid))
- {
- $trigger=get_trigger_by_triggerid($triggerid);
-
- $expression=explode_exp($trigger["expression"],0);
- $description=htmlspecialchars(stripslashes($trigger["description"]));
- $priority=$trigger["priority"];
- $status=$trigger["status"];
- $comments=$trigger["comments"];
- $url=$trigger["url"];
- }
- else
- {
- $expression="";
- $description="";
- $priority=0;
- $status=0;
- $comments="";
- $url="";
- }
-
- echo "<br>";
-
- show_table2_header_begin();
- echo "Trigger configuration";
-
- show_table2_v_delimiter();
- if(isset($hostid))
- {
- echo "<form method=\"get\" action=\"triggers.php?hostid=$hostid\">";
- }
- else
- {
- echo "<form method=\"get\" action=\"triggers.php\">";
- }
- echo "<input class=\"biginput\" name=\"triggerid\" type=hidden value=$triggerid size=8>";
- echo "Description";
- show_table2_h_delimiter();
- echo "<input class=\"biginput\" name=\"description\" value=\"$description\" size=70>";
-
- show_table2_v_delimiter();
- echo "Expression";
- show_table2_h_delimiter();
- echo "<input class=\"biginput\" name=\"expression\" value=\"$expression\" size=70>";
-
- show_table2_v_delimiter();
- echo "Severity";
- show_table2_h_delimiter();
- echo "<SELECT class=\"biginput\" NAME=\"priority\" size=\"1\">";
- echo "<OPTION VALUE=\"0\" "; if($priority==0) echo "SELECTED"; echo ">Not classified";
- echo "<OPTION VALUE=\"1\" "; if($priority==1) echo "SELECTED"; echo ">Information";
- echo "<OPTION VALUE=\"2\" "; if($priority==2) echo "SELECTED"; echo ">Warning";
- echo "<OPTION VALUE=\"3\" "; if($priority==3) echo "SELECTED"; echo ">Average";
- echo "<OPTION VALUE=\"4\" "; if($priority==4) echo "SELECTED"; echo ">High";
- echo "<OPTION VALUE=\"5\" "; if($priority==5) echo "SELECTED"; echo ">Disaster";
- echo "</SELECT>";
-
- show_table2_v_delimiter();
- echo "Comments";
- show_table2_h_delimiter();
- echo "<TEXTAREA class=\"biginput\" NAME=\"comments\" COLS=70 ROWS=\"7\" WRAP=\"SOFT\">$comments</TEXTAREA>";
-
- show_table2_v_delimiter();
- echo "URL";
- show_table2_h_delimiter();
- echo "<input class=\"biginput\" name=\"url\" value=\"$url\" size=70>";
-
- show_table2_v_delimiter();
- echo "Disabled";
- show_table2_h_delimiter();
- echo "<INPUT TYPE=\"CHECKBOX\" ";
- if($status==1) { echo " CHECKED "; }
- echo "NAME=\"disabled\" VALUE=\"true\">";
-
-
- show_table2_v_delimiter2();
- echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"add\">";
- if(isset($triggerid))
- {
- echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"update\">";
- echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"delete\" onClick=\"return Confirm('Delete trigger?');\">";
- }
-
- if(isset($triggerid))
- {
- show_table2_v_delimiter();
- echo "The trigger depends on";
- show_table2_h_delimiter();
- $sql="select t.triggerid,t.description from triggers t,trigger_depends d where t.triggerid=d.triggerid_up and d.triggerid_down=$triggerid";
- $result1=DBselect($sql);
- echo "<SELECT class=\"biginput\" NAME=\"dependency\" size=\"1\">";
- for($i=0;$i<DBnum_rows($result1);$i++)
- {
- $depid=DBget_field($result1,$i,0);
-// $depdescr=DBget_field($result1,$i,1);
-// if( strstr($depdescr,"%s"))
-// {
- $depdescr=expand_trigger_description($depid);
-// }
- echo "<OPTION VALUE=\"$depid\">$depdescr";
- }
- echo "</SELECT>";
-
- show_table2_v_delimiter();
- echo "New dependency";
- show_table2_h_delimiter();
- $sql="select t.triggerid,t.description from triggers t where t.triggerid!=$triggerid order by t.description";
- $result=DBselect($sql);
- echo "<SELECT class=\"biginput\" NAME=\"depid\" size=\"1\">";
- for($i=0;$i<DBnum_rows($result);$i++)
- {
- $depid=DBget_field($result,$i,0);
-// $depdescr=DBget_field($result,$i,1);
-
-// if( strstr($depdescr,"%s"))
-// {
- $depdescr=expand_trigger_description($depid);
-// }
- echo "<OPTION VALUE=\"$depid\">$depdescr";
- }
- echo "</SELECT>";
-
- show_table2_v_delimiter2();
- if(isset($triggerid))
- {
- echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"add dependency\">";
- if(DBnum_rows($result1)>0)
- {
- echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"delete dependency\">";
- }
- }
- }
-
- echo "</form>";
- show_table2_header_end();
- }
-
function show_footer()
{
global $USER_DETAILS;
@@ -4489,10 +3838,10 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
echo "<td bgcolor=\"#000000\">";
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"3\" width=100% bgcolor=\"#666666\">";
echo "<tr><td align=center>";
- echo "<a href=\"http://www.zabbix.com\">ZABBIX 1.0</a> Copyright 2000-2004 by <a href=\"mailto:alex@gobbo.caves.lv\">Alexei Vladishev</a>";
+ echo "<a href=\"http://www.zabbix.com\">".S_ZABBIX_VER."</a>&nbsp;".S_COPYRIGHT_BY."<a href=\"mailto:alex@gobbo.caves.lv\">".S_ALEXEI_VLADISHEV."</a>";
echo "</td>";
echo "<td align=right width=15%>";
- echo "| Connected as ".$USER_DETAILS["alias"];
+ echo "| ".S_CONNECTED_AS."&nbsp;".$USER_DETAILS["alias"];
echo "</td>";
echo "</tr>";
echo "</table>";
diff --git a/frontends/php/include/defines.inc.php b/frontends/php/include/defines.inc.php
index 95a26ac6..b427c915 100644
--- a/frontends/php/include/defines.inc.php
+++ b/frontends/php/include/defines.inc.php
@@ -48,3 +48,4 @@
define("RECIPIENT_TYPE_USER",0);
define("RECIPIENT_TYPE_GROUP",1);
+?>
diff --git a/frontends/php/include/forms.inc.php b/frontends/php/include/forms.inc.php
index f47daa4f..917eadfa 100644
--- a/frontends/php/include/forms.inc.php
+++ b/frontends/php/include/forms.inc.php
@@ -93,4 +93,644 @@
show_table2_header_end();
}
+
+ # Insert form for Item information
+ function insert_item_form()
+ {
+ global $HTTP_GET_VARS;
+
+ $description=@iif(isset($HTTP_GET_VARS["description"]),$HTTP_GET_VARS["description"],"");
+ $key=@iif(isset($HTTP_GET_VARS["key"]),$HTTP_GET_VARS["key"],"");
+ $host=@iif(isset($HTTP_GET_VARS["host"]),$HTTP_GET_VARS["host"],"");
+ $port=@iif(isset($HTTP_GET_VARS["port"]),$HTTP_GET_VARS["port"],10000);
+ $delay=@iif(isset($HTTP_GET_VARS["delay"]),$HTTP_GET_VARS["delay"],30);
+ $history=@iif(isset($HTTP_GET_VARS["history"]),$HTTP_GET_VARS["history"],365);
+ $status=@iif(isset($HTTP_GET_VARS["status"]),$HTTP_GET_VARS["status"],0);
+ $type=@iif(isset($HTTP_GET_VARS["type"]),$HTTP_GET_VARS["type"],0);
+ $snmp_community=@iif(isset($HTTP_GET_VARS["snmp_community"]),$HTTP_GET_VARS["snmp_community"],"public");
+ $snmp_oid=@iif(isset($HTTP_GET_VARS["snmp_oid"]),$HTTP_GET_VARS["snmp_oid"],"interfaces.ifTable.ifEntry.ifInOctets.1");
+ $value_type=@iif(isset($HTTP_GET_VARS["value_type"]),$HTTP_GET_VARS["value_type"],0);
+ $trapper_hosts=@iif(isset($HTTP_GET_VARS["trapper_hosts"]),$HTTP_GET_VARS["trapper_hosts"],"");
+ $snmp_port=@iif(isset($HTTP_GET_VARS["snmp_port"]),$HTTP_GET_VARS["snmp_port"],161);
+ $units=@iif(isset($HTTP_GET_VARS["units"]),$HTTP_GET_VARS["units"],'');
+ $multiplier=@iif(isset($HTTP_GET_VARS["multiplier"]),$HTTP_GET_VARS["multiplier"],0);
+ $hostid=@iif(isset($HTTP_GET_VARS["hostid"]),$HTTP_GET_VARS["hostid"],0);
+ $delta=@iif(isset($HTTP_GET_VARS["delta"]),$HTTP_GET_VARS["delta"],0);
+
+ if(isset($HTTP_GET_VARS["register"])&&($HTTP_GET_VARS["register"] == "change"))
+ {
+ $result=DBselect("select i.description, i.key_, h.host, h.port, i.delay, i.history, i.status, i.type, i.snmp_community,i.snmp_oid,i.value_type,i.trapper_hosts,i.snmp_port,i.units,i.multiplier,h.hostid,i.delta from items i,hosts h where i.itemid=".$HTTP_GET_VARS["itemid"]." and h.hostid=i.hostid");
+
+ $description=DBget_field($result,0,0);
+ $key=DBget_field($result,0,1);
+ $host=DBget_field($result,0,2);
+ $port=DBget_field($result,0,3);
+ $delay=DBget_field($result,0,4);
+ $history=DBget_field($result,0,5);
+ $status=DBget_field($result,0,6);
+ $type=iif(isset($HTTP_GET_VARS["type"]),isset($HTTP_GET_VARS["type"]),DBget_field($result,0,7));
+ $snmp_community=DBget_field($result,0,8);
+ $snmp_oid=DBget_field($result,0,9);
+ $value_type=DBget_field($result,0,10);
+ $trapper_hosts=DBget_field($result,0,11);
+ $snmp_port=DBget_field($result,0,12);
+ $units=DBget_field($result,0,13);
+ $multiplier=DBget_field($result,0,14);
+ $hostid=DBget_field($result,0,15);
+ $delta=DBget_field($result,0,16);
+ }
+
+ echo "<br>";
+
+ show_table2_header_begin();
+ echo "Item";
+
+ show_table2_v_delimiter();
+ echo "<form method=\"get\" action=\"items.php\">";
+ if(isset($HTTP_GET_VARS["itemid"]))
+ {
+ echo "<input class=\"biginput\" name=\"itemid\" type=hidden value=".$HTTP_GET_VARS["itemid"].">";
+ }
+ echo "Description";
+ show_table2_h_delimiter();
+ echo "<input class=\"biginput\" name=\"description\" value=\"$description\"size=40>";
+
+ show_table2_v_delimiter();
+ echo "Host";
+ show_table2_h_delimiter();
+ echo "<select class=\"biginput\" name=\"hostid\" value=\"3\">";
+ $result=DBselect("select hostid,host from hosts order by host");
+ for($i=0;$i<DBnum_rows($result);$i++)
+ {
+ $hostid_=DBget_field($result,$i,0);
+ $host_=DBget_field($result,$i,1);
+ if($hostid==$hostid_)
+ {
+ echo "<option value=\"$hostid_\" selected>$host_";
+ }
+ else
+ {
+ echo "<option value=\"$hostid_\">$host_";
+ }
+ }
+ echo "</select>";
+
+ show_table2_v_delimiter();
+ echo "Type";
+ show_table2_h_delimiter();
+ echo "<SELECT class=\"biginput\" NAME=\"type\" value=\"$type\" size=\"1\" onChange=\"submit()\">";
+ echo "<OPTION VALUE=\"0\"";
+ if($type==0) echo "SELECTED";
+ echo ">Zabbix agent";
+ echo "<OPTION VALUE=\"3\"";
+ if($type==3) echo "SELECTED";
+ echo ">Simple check";
+ echo "<OPTION VALUE=\"1\"";
+ if($type==1) echo "SELECTED";
+ echo ">SNMPv1 agent";
+ echo "<OPTION VALUE=\"4\"";
+ if($type==4) echo "SELECTED";
+ echo ">SNMPv2 agent";
+ echo "<OPTION VALUE=\"2\"";
+ if($type==2) echo "SELECTED";
+ echo ">Zabbix trapper";
+ echo "<OPTION VALUE=\"5\"";
+ if($type==5) echo "SELECTED";
+ echo ">Zabbix internal";
+ echo "</SELECT>";
+
+ if(($type==1)||($type==4))
+ {
+ show_table2_v_delimiter();
+ echo nbsp("SNMP community");
+ show_table2_h_delimiter();
+ echo "<input class=\"biginput\" name=\"snmp_community\" value=\"$snmp_community\" size=16>";
+
+ show_table2_v_delimiter();
+ echo nbsp("SNMP OID");
+ show_table2_h_delimiter();
+ echo "<input class=\"biginput\" name=\"snmp_oid\" value=\"$snmp_oid\" size=40>";
+
+ show_table2_v_delimiter();
+ echo nbsp("SNMP port");
+ show_table2_h_delimiter();
+ echo "<input class=\"biginput\" name=\"snmp_port\" value=\"$snmp_port\" size=5>";
+ }
+ else
+ {
+ echo "<input class=\"biginput\" name=\"snmp_community\" type=hidden value=\"$snmp_community\">";
+ echo "<input class=\"biginput\" name=\"snmp_oid\" type=hidden value=\"$snmp_oid\">";
+ echo "<input class=\"biginput\" name=\"snmp_port\" type=hidden value=\"$snmp_port\">";
+ }
+
+ show_table2_v_delimiter();
+ echo "Key";
+ show_table2_h_delimiter();
+ echo "<input class=\"biginput\" name=\"key\" value=\"$key\" size=40>";
+
+ show_table2_v_delimiter();
+ echo "Units";
+ show_table2_h_delimiter();
+ echo "<input class=\"biginput\" name=\"units\" value=\"$units\" size=10>";
+
+ show_table2_v_delimiter();
+ echo "Multiplier";
+ show_table2_h_delimiter();
+ echo "<SELECT class=\"biginput\" NAME=\"multiplier\" value=\"$multiplier\" size=\"1\">";
+ echo "<OPTION VALUE=\"0\"";
+ if($multiplier==0) echo "SELECTED";
+ echo ">-";
+ echo "<OPTION VALUE=\"1\"";
+ if($multiplier==1) echo "SELECTED";
+ echo ">K (1024)";
+ echo "<OPTION VALUE=\"2\"";
+ if($multiplier==2) echo "SELECTED";
+ echo ">M (1024^2)";
+ echo "<OPTION VALUE=\"3\"";
+ if($multiplier==3) echo "SELECTED";
+ echo ">G (1024^3)";
+ echo "</SELECT>";
+
+ if($type!=2)
+ {
+ show_table2_v_delimiter();
+ echo nbsp("Update interval (in sec)");
+ show_table2_h_delimiter();
+ echo "<input class=\"biginput\" name=\"delay\" value=\"$delay\" size=5>";
+ }
+ else
+ {
+ echo "<input class=\"biginput\" name=\"delay\" type=hidden value=\"$delay\">";
+ }
+
+ show_table2_v_delimiter();
+ echo nbsp("Keep history (in days)");
+ show_table2_h_delimiter();
+ echo "<input class=\"biginput\" name=\"history\" value=\"$history\" size=8>";
+
+ show_table2_v_delimiter();
+ echo "Status";
+ show_table2_h_delimiter();
+ echo "<SELECT class=\"biginput\" NAME=\"status\" value=\"$status\" size=\"1\">";
+ echo "<OPTION VALUE=\"0\"";
+ if($status==0) echo "SELECTED";
+ echo ">Monitored";
+ echo "<OPTION VALUE=\"1\"";
+ if($status==1) echo "SELECTED";
+ echo ">Disabled";
+# echo "<OPTION VALUE=\"2\"";
+# if($status==2) echo "SELECTED";
+# echo ">Trapper";
+ echo "<OPTION VALUE=\"3\"";
+ if($status==3) echo "SELECTED";
+ echo ">Not supported";
+ echo "</SELECT>";
+
+ show_table2_v_delimiter();
+ echo nbsp("Type of information");
+ show_table2_h_delimiter();
+ echo "<SELECT class=\"biginput\" NAME=\"value_type\" value=\"$value_type\" size=\"1\">";
+ echo "<OPTION VALUE=\"0\"";
+ if($value_type==0) echo "SELECTED";
+ echo ">Numeric";
+ echo "<OPTION VALUE=\"1\"";
+ if($value_type==1) echo "SELECTED";
+ echo ">Character";
+ echo "</SELECT>";
+
+ show_table2_v_delimiter();
+ echo nbsp("Store value");
+ show_table2_h_delimiter();
+ echo "<SELECT class=\"biginput\" NAME=\"delta\" value=\"$delta\" size=\"1\">";
+ echo "<OPTION VALUE=\"0\"";
+ if($delta==0) echo "SELECTED";
+ echo ">As is";
+ echo "<OPTION VALUE=\"1\"";
+ if($delta==1) echo "SELECTED";
+ echo ">Delta";
+ echo "</SELECT>";
+
+ if($type==2)
+ {
+ show_table2_v_delimiter();
+ echo nbsp("Allowed hosts");
+ show_table2_h_delimiter();
+ echo "<input class=\"biginput\" name=\"trapper_hosts\" value=\"$trapper_hosts\" size=40>";
+ }
+ else
+ {
+ echo "<input class=\"biginput\" name=\"trapper_hosts\" type=hidden value=\"$trapper_hosts\">";
+ }
+
+ show_table2_v_delimiter2();
+ echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"add\">";
+ echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"add to all hosts\" onClick=\"return Confirm('Add item to all hosts?');\">";
+ if(isset($HTTP_GET_VARS["itemid"]))
+ {
+ echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"update\">";
+ echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"delete\" onClick=\"return Confirm('Delete selected item?');\">";
+ }
+
+ show_table2_header_end();
+ }
+
+ # Insert form for Host Groups
+ function insert_hostgroups_form($groupid)
+ {
+ global $HTTP_GET_VARS;
+
+ if(isset($groupid))
+ {
+ $groupid=get_group_by_groupid($groupid);
+
+ $name=$groupid["name"];
+ }
+ else
+ {
+ $name="";
+ }
+
+ show_table2_header_begin();
+ echo "Host group";
+
+ show_table2_v_delimiter();
+ echo "<form method=\"get\" action=\"hosts.php\">";
+ if(isset($HTTP_GET_VARS["groupid"]))
+ {
+ echo "<input name=\"groupid\" type=\"hidden\" value=\"".$HTTP_GET_VARS["groupid"]."\" size=8>";
+ }
+ echo "Group name";
+ show_table2_h_delimiter();
+ echo "<input class=\"biginput\" name=\"name\" value=\"$name\" size=30>";
+
+ show_table2_v_delimiter();
+ echo "Hosts";
+ show_table2_h_delimiter();
+ echo "<select multiple class=\"biginput\" name=\"hosts[]\" size=\"5\">";
+ $result=DBselect("select distinct hostid,host from hosts order by host");
+ while($row=DBfetch($result))
+ {
+ if(isset($HTTP_GET_VARS["groupid"]))
+ {
+ $sql="select count(*) as count from hosts_groups where hostid=".$row["hostid"]." and groupid=".$HTTP_GET_VARS["groupid"];
+ $result2=DBselect($sql);
+ $row2=DBfetch($result2);
+ if($row2["count"]==0)
+ {
+ echo "<option value=\"".$row["hostid"]."\">".$row["host"];
+ }
+ else
+ {
+ echo "<option value=\"".$row["hostid"]."\" selected>".$row["host"];
+ }
+ }
+ else
+ {
+ echo "<option value=\"".$row["hostid"]."\">".$row["host"];
+ }
+ }
+ echo "</select>";
+
+ show_table2_v_delimiter2();
+ echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"add group\">";
+ if(isset($HTTP_GET_VARS["groupid"]))
+ {
+ echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"update group\">";
+ echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"delete group\" onClick=\"return Confirm('Delete selected group?');\">";
+ }
+ echo "</form>";
+ show_table2_header_end();
+ }
+
+ # Insert form for User Groups
+ function insert_usergroups_form($usrgrpid)
+ {
+ global $HTTP_GET_VARS;
+
+ if(isset($usrgrpid))
+ {
+ $usrgrp=get_usergroup_by_usrgrpid($usrgrpid);
+
+ $name=$usrgrp["name"];
+ }
+ else
+ {
+ $name="";
+ }
+
+ show_table2_header_begin();
+ echo "User group";
+
+ show_table2_v_delimiter();
+ echo "<form method=\"get\" action=\"users.php\">";
+ if(isset($usrgrpid))
+ {
+ echo "<input name=\"usrgrpid\" type=\"hidden\" value=\"$usrgrpid\" size=8>";
+ }
+ echo "Group name";
+ show_table2_h_delimiter();
+ echo "<input class=\"biginput\" name=\"name\" value=\"$name\" size=30>";
+
+ show_table2_v_delimiter();
+ echo "Users";
+ show_table2_h_delimiter();
+ echo "<select multiple class=\"biginput\" name=\"users[]\" size=\"5\">";
+ $result=DBselect("select distinct userid,alias from users order by alias");
+ while($row=DBfetch($result))
+ {
+ if(isset($HTTP_GET_VARS["usrgrpid"]))
+ {
+ $sql="select count(*) as count from users_groups where userid=".$row["userid"]." and usrgrpid=".$HTTP_GET_VARS["usrgrpid"];
+ $result2=DBselect($sql);
+ $row2=DBfetch($result2);
+ if($row2["count"]==0)
+ {
+ echo "<option value=\"".$row["userid"]."\">".$row["alias"];
+ }
+ else
+ {
+ echo "<option value=\"".$row["userid"]."\" selected>".$row["alias"];
+ }
+ }
+ else
+ {
+ echo "<option value=\"".$row["userid"]."\">".$row["alias"];
+ }
+ }
+ echo "</select>";
+
+ show_table2_v_delimiter2();
+ echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"add group\">";
+ if(isset($HTTP_GET_VARS["usrgrpid"]))
+ {
+ echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"update group\">";
+ echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"delete group\" onClick=\"return Confirm('Delete selected group?');\">";
+ }
+ echo "</form>";
+ show_table2_header_end();
+ }
+
+ # Insert form for User permissions
+ function insert_permissions_form($userid)
+ {
+ echo "<br>";
+
+ show_table2_header_begin();
+ echo "New permission";
+
+ show_table2_v_delimiter();
+ echo "<form method=\"get\" action=\"users.php\">";
+ if(isset($userid))
+ {
+ echo "<input name=\"userid\" type=\"hidden\" value=\"$userid\" size=8>";
+ }
+ echo "Resource";
+ show_table2_h_delimiter();
+ echo "<select class=\"biginput\" name=\"right\">";
+ echo "<option value=\"Configuration of Zabbix\">Configuration of Zabbix";
+ echo "<option value=\"Default permission\">Default permission";
+ echo "<option value=\"Graph\">Graph";
+ echo "<option value=\"Host\">Host";
+ echo "<option value=\"Screen\">Screen";
+ echo "<option value=\"Service\">IT Service";
+ echo "<option value=\"Item\">Item";
+ echo "<option value=\"Network map\">Network map";
+ echo "<option value=\"Trigger comment\">Trigger's comment";
+ echo "<option value=\"User\">User";
+ echo "</select>";
+
+ show_table2_v_delimiter();
+ echo "Permission";
+ show_table2_h_delimiter();
+ echo "<select class=\"biginput\" name=\"permission\">";
+ echo "<option value=\"R\">Read-only";
+ echo "<option value=\"U\">Read-write";
+ echo "<option value=\"H\">Hide";
+ echo "<option value=\"A\">Add";
+ echo "</select>";
+
+ show_table2_v_delimiter();
+ echo "Resource ID (0 for all)";
+ show_table2_h_delimiter();
+ echo "<input class=\"biginput\" name=\"id\" value=\"0\" size=4>";
+
+ show_table2_v_delimiter2();
+ echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"add permission\">";
+ show_table2_header_end();
+ }
+
+ function insert_login_form()
+ {
+ global $HTTP_GET_VARS;
+
+ show_table2_header_begin();
+ echo "Login";
+
+ show_table2_v_delimiter();
+ echo "<form method=\"post\" action=\"index.php\">";
+
+ echo "Login name";
+ show_table2_h_delimiter();
+// echo "<input name=\"name\" value=\"".$HTTP_GET_VARS["name"]."\" size=20>";
+ echo "<input class=\"biginput\" name=\"name\" value=\"\" size=20>";
+
+ show_table2_v_delimiter();
+ echo "Password";
+ show_table2_h_delimiter();
+// echo "<input type=\"password\" name=\"password\" value=\"$password\" size=20>";
+ echo "<input class=\"biginput\" type=\"password\" name=\"password\" value=\"\" size=20>";
+
+ show_table2_v_delimiter2();
+ echo "<input class=\"button\" class=\"button\" type=\"submit\" name=\"register\" value=\"Enter\">";
+ show_table2_header_end();
+ }
+
+ # Insert form for Problem
+ function insert_problem_form($problemid)
+ {
+ echo "<br>";
+
+ show_table2_header_begin();
+ echo "Problem definition";
+ show_table2_v_delimiter();
+ echo "<form method=\"post\" action=\"helpdesk.php\">";
+ echo "<input name=\"problemid\" type=hidden value=$problemid size=8>";
+ echo "Description";
+ show_table2_h_delimiter();
+ echo "<input name=\"description\" value=\"$description\" size=70>";
+
+ show_table2_v_delimiter();
+ echo "Severity";
+ show_table2_h_delimiter();
+ echo "<SELECT NAME=\"priority\" size=\"1\">";
+ echo "<OPTION VALUE=\"0\" "; if($priority==0) echo "SELECTED"; echo ">Not classified";
+ echo "<OPTION VALUE=\"1\" "; if($priority==1) echo "SELECTED"; echo ">Information";
+ echo "<OPTION VALUE=\"2\" "; if($priority==2) echo "SELECTED"; echo ">Warning";
+ echo "<OPTION VALUE=\"3\" "; if($priority==3) echo "SELECTED"; echo ">Average";
+ echo "<OPTION VALUE=\"4\" "; if($priority==4) echo "SELECTED"; echo ">High";
+ echo "<OPTION VALUE=\"5\" "; if($priority==5) echo "SELECTED"; echo ">Disaster";
+ echo "</SELECT>";
+
+ show_table2_v_delimiter();
+ echo "Status";
+ show_table2_h_delimiter();
+ echo "<SELECT NAME=\"status\" value=\"$status\" size=\"1\">";
+ echo "<OPTION VALUE=\"0\"";
+ if($status==0) echo "SELECTED";
+ echo ">Opened";
+ echo "<OPTION VALUE=\"1\"";
+ if($status==1) echo "SELECTED";
+ echo ">Closed";
+ echo "</SELECT>";
+
+ show_table2_v_delimiter2();
+ echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"add\">";
+ if(isset($problemid))
+ {
+ echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"update\">";
+ echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"delete\">";
+ }
+
+ show_table2_header_end();
+ }
+
+ # Insert form for Trigger
+ function insert_trigger_form($hostid,$triggerid)
+ {
+ if(isset($triggerid))
+ {
+ $trigger=get_trigger_by_triggerid($triggerid);
+
+ $expression=explode_exp($trigger["expression"],0);
+ $description=htmlspecialchars(stripslashes($trigger["description"]));
+ $priority=$trigger["priority"];
+ $status=$trigger["status"];
+ $comments=$trigger["comments"];
+ $url=$trigger["url"];
+ }
+ else
+ {
+ $expression="";
+ $description="";
+ $priority=0;
+ $status=0;
+ $comments="";
+ $url="";
+ }
+
+ echo "<br>";
+
+ show_table2_header_begin();
+ echo "Trigger configuration";
+
+ show_table2_v_delimiter();
+ if(isset($hostid))
+ {
+ echo "<form method=\"get\" action=\"triggers.php?hostid=$hostid\">";
+ }
+ else
+ {
+ echo "<form method=\"get\" action=\"triggers.php\">";
+ }
+ echo "<input class=\"biginput\" name=\"triggerid\" type=hidden value=$triggerid size=8>";
+ echo "Description";
+ show_table2_h_delimiter();
+ echo "<input class=\"biginput\" name=\"description\" value=\"$description\" size=70>";
+
+ show_table2_v_delimiter();
+ echo "Expression";
+ show_table2_h_delimiter();
+ echo "<input class=\"biginput\" name=\"expression\" value=\"$expression\" size=70>";
+
+ show_table2_v_delimiter();
+ echo "Severity";
+ show_table2_h_delimiter();
+ echo "<SELECT class=\"biginput\" NAME=\"priority\" size=\"1\">";
+ echo "<OPTION VALUE=\"0\" "; if($priority==0) echo "SELECTED"; echo ">Not classified";
+ echo "<OPTION VALUE=\"1\" "; if($priority==1) echo "SELECTED"; echo ">Information";
+ echo "<OPTION VALUE=\"2\" "; if($priority==2) echo "SELECTED"; echo ">Warning";
+ echo "<OPTION VALUE=\"3\" "; if($priority==3) echo "SELECTED"; echo ">Average";
+ echo "<OPTION VALUE=\"4\" "; if($priority==4) echo "SELECTED"; echo ">High";
+ echo "<OPTION VALUE=\"5\" "; if($priority==5) echo "SELECTED"; echo ">Disaster";
+ echo "</SELECT>";
+
+ show_table2_v_delimiter();
+ echo "Comments";
+ show_table2_h_delimiter();
+ echo "<TEXTAREA class=\"biginput\" NAME=\"comments\" COLS=70 ROWS=\"7\" WRAP=\"SOFT\">$comments</TEXTAREA>";
+
+ show_table2_v_delimiter();
+ echo "URL";
+ show_table2_h_delimiter();
+ echo "<input class=\"biginput\" name=\"url\" value=\"$url\" size=70>";
+
+ show_table2_v_delimiter();
+ echo "Disabled";
+ show_table2_h_delimiter();
+ echo "<INPUT TYPE=\"CHECKBOX\" ";
+ if($status==1) { echo " CHECKED "; }
+ echo "NAME=\"disabled\" VALUE=\"true\">";
+
+
+ show_table2_v_delimiter2();
+ echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"add\">";
+ if(isset($triggerid))
+ {
+ echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"update\">";
+ echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"delete\" onClick=\"return Confirm('Delete trigger?');\">";
+ }
+
+ if(isset($triggerid))
+ {
+ show_table2_v_delimiter();
+ echo "The trigger depends on";
+ show_table2_h_delimiter();
+ $sql="select t.triggerid,t.description from triggers t,trigger_depends d where t.triggerid=d.triggerid_up and d.triggerid_down=$triggerid";
+ $result1=DBselect($sql);
+ echo "<SELECT class=\"biginput\" NAME=\"dependency\" size=\"1\">";
+ for($i=0;$i<DBnum_rows($result1);$i++)
+ {
+ $depid=DBget_field($result1,$i,0);
+// $depdescr=DBget_field($result1,$i,1);
+// if( strstr($depdescr,"%s"))
+// {
+ $depdescr=expand_trigger_description($depid);
+// }
+ echo "<OPTION VALUE=\"$depid\">$depdescr";
+ }
+ echo "</SELECT>";
+
+ show_table2_v_delimiter();
+ echo "New dependency";
+ show_table2_h_delimiter();
+ $sql="select t.triggerid,t.description from triggers t where t.triggerid!=$triggerid order by t.description";
+ $result=DBselect($sql);
+ echo "<SELECT class=\"biginput\" NAME=\"depid\" size=\"1\">";
+ for($i=0;$i<DBnum_rows($result);$i++)
+ {
+ $depid=DBget_field($result,$i,0);
+// $depdescr=DBget_field($result,$i,1);
+
+// if( strstr($depdescr,"%s"))
+// {
+ $depdescr=expand_trigger_description($depid);
+// }
+ echo "<OPTION VALUE=\"$depid\">$depdescr";
+ }
+ echo "</SELECT>";
+
+ show_table2_v_delimiter2();
+ if(isset($triggerid))
+ {
+ echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"add dependency\">";
+ if(DBnum_rows($result1)>0)
+ {
+ echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"delete dependency\">";
+ }
+ }
+ }
+
+ echo "</form>";
+ show_table2_header_end();
+ }
?>
diff --git a/frontends/php/include/local_en.inc.php b/frontends/php/include/local_en.inc.php
new file mode 100644
index 00000000..625fed56
--- /dev/null
+++ b/frontends/php/include/local_en.inc.php
@@ -0,0 +1,398 @@
+<?php
+/*
+** Zabbix
+** Copyright (C) 2000,2001,2002,2003,2004 Alexei Vladishev
+**
+** This program is free software; you can redistribute it and/or modify
+** it under the terms of the GNU General Public License as published by
+** the Free Software Foundation; either version 2 of the License, or
+** (at your option) any later version.
+**
+** This program is distributed in the hope that it will be useful,
+** but WITHOUT ANY WARRANTY; without even the implied warranty of
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+** GNU General Public License for more details.
+**
+** You should have received a copy of the GNU General Public License
+** along with this program; if not, write to the Free Software
+** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+**/
+?>
+<?php
+
+// about.php
+ define("S_ABOUT_ZABBIX", "About Zabbix");
+ define("S_INFORMATION_ABOUT_ZABBIX", "Information about Zabbix (v1.1alpha1)");
+ define("S_HOMEPAGE_OF_ZABBIX", "Homepage of Zabbix");
+ define("S_HOMEPAGE_OF_ZABBIX_DETAILS", "This is home page of Zabbix.");
+ define("S_LATEST_ZABBIX_MANUAL", "Latest Zabbix Manual");
+ define("S_LATEST_ZABBIX_MANUAL_DETAILS", "Latest version of the Manual.");
+ define("S_DOWNLOADS", "Downloads");
+ define("S_DOWNLOADS_DETAILS", "Latest Zabbix release can be found here.");
+ define("S_FEATURE_REQUESTS", "Feature requests");
+ define("S_FEATURE_REQUESTS_DETAILS", "If you need additional functionality, go here.");
+ define("S_FORUMS", "Forums");
+ define("S_FORUMS_DETAILS", "Zabbix-related discussion.");
+ define("S_BUG_REPORTS", "Bug reports");
+ define("S_BUG_REPORTS_DETAILS", "Bug in Zabbix ? Please, report it.");
+ define("S_MAILING_LISTS", "Mailing lists");
+ define("S_MAILING_LISTS_DETAILS", "Zabbix-related mailing lists.");
+
+// actions.php
+ define("S_ACTIONS", "Actions");
+ define("S_ACTION_ADDED", "Action added");
+ define("S_CANNOT_ADD_ACTION", "Cannot add action");
+ define("S_ACTION_UPDATED", "Action updated");
+ define("S_CANNOT_UPDATE_ACTION", "Cannot update action");
+ define("S_ACTION_DELETED", "Action deleted");
+ define("S_CANNOT_DELETED_ACTION", "Cannot delete action");
+ define("S_SCOPE", "Scope");
+ define("S_SEND_MESSAGE_TO", "Send message to");
+ define("S_WHEN_TRIGGER", "When trigger");
+ define("S_DELAY", "Delay");
+ define("S_SUBJECT", "Subject");
+ define("S_ON", "ON");
+ define("S_OFF", "OFF");
+ define("S_NO_ACTIONS_DEFINED", "No actions defined");
+ define("S_NEW_ACTION", "New action");
+ define("S_SINGLE_USER", "Single user");
+ define("S_USER_GROUP", "User group");
+ define("S_GROUP", "Group");
+ define("S_USER", "User");
+ define("S_WHEN_TRIGGER_BECOMES", "When trigger becomes");
+ define("S_ON_OR_OFF", "ON or OFF");
+ define("S_DELAY_BETWEEN_MESSAGES_IN_SEC", "Delay between messages (in sec)");
+ define("S_MESSAGE", "Message");
+ define("S_THIS_TRIGGER_ONLY", "This trigger only");
+ define("S_ALL_TRIGGERS_OF_THIS_HOST", "All triggers of this host");
+ define("S_ALL_TRIGGERS", "All triggers");
+ define("S_USE_IF_TRIGGER_SEVERITY", "Use if trigger's severity equal or more than");
+ define("S_NOT_CLASSIFIED", "Not classified");
+ define("S_INFORMATION", "Information");
+ define("S_WARNING", "Warning");
+ define("S_AVERAGE", "Average");
+ define("S_HIGH", "High");
+ define("S_DISASTER", "Disaster");
+
+// alarms.php
+ define("S_ALARMS_SMALL", "Alarms");
+ define("S_ALARMS_BIG", "ALARMS");
+ define("S_SHOW_ONLY_LAST_100", "Show only last 100");
+ define("S_SHOW_ALL", "Show all");
+ define("S_TIME", "Time");
+ define("S_STATUS", "Status");
+ define("S_DURATION", "Duration");
+ define("S_SUM", "Sum");
+ define("S_TRUE_BIG", "TRUE");
+ define("S_FALSE_BIG", "FALSE");
+ define("S_DISABLED_BIG", "DISABLED");
+ define("S_UNKNOWN_BIG", "UNKNOWN");
+
+// alerts.php
+ define("S_ALERT_HISTORY_SMALL", "Alert history");
+ define("S_ALERT_HISTORY_BIG", "ALERT HISTORY");
+ define("S_ALERTS_BIG", "ALERTS");
+ define("S_TYPE", "Type");
+ define("S_RECIPIENTS", "Recipient(s)");
+ define("S_SENT", "sent");
+ define("S_NOT_SENT", "not sent");
+ define("S_NO_ALERTS", "No alerts");
+ define("S_SHOW_NEXT_100", "Show next 100");
+
+// charts.php
+ define("S_CUSTOM_GRAPHS", "Custom graphs");
+ define("S_GRAPHS_BIG", "GRAPHS");
+ define("S_NO_GRAPHS_TO_DISPLAY", "No graphs to display");
+ define("S_SELECT_GRAPH_TO_DISPLAY", "Select graph to display");
+ define("S_PERIOD", "Period");
+ define("S_1H", "1h");
+ define("S_2H", "2h");
+ define("S_4H", "4h");
+ define("S_8H", "8h");
+ define("S_12H", "12h");
+ define("S_24H", "24h");
+ define("S_WEEK_SMALL", "week");
+ define("S_MONTH_SMALL", "month");
+ define("S_YEAR_SMALL", "year");
+ define("S_KEEP_PERIOD", "Keep period");
+ define("S_ON_C", "On");
+ define("S_OFF_C", "Off");
+ define("S_MOVE", "Move");
+// Colors
+ define("S_BLACK", "Black");
+ define("S_BLUE", "Blue");
+ define("S_CYAN", "Cyan");
+ define("S_DARK_BLUE", "Dark blue");
+ define("S_DARK_GREEN", "Dark green");
+ define("S_DARK_RED", "Dark red");
+ define("S_DARK_YELLOW", "Dark yellow");
+ define("S_GREEN", "Dark green");
+ define("S_RED", "Dark red");
+ define("S_WHITE", "Dark white");
+ define("S_YELLOW", "Dark yellow");
+
+// config.php
+ define("S_CONFIGURATION_OF_ZABBIX", "Configuration of Zabbix");
+ define("S_CONFIGURATION_OF_ZABBIX_BIG", "CONFIGURATION OF ZABBIX");
+ define("S_CONFIGURATION_UPDATED", "Configuration updated");
+ define("S_CONFIGURATION_WAS_NOT_UPDATED", "Configuration was not updated");
+ define("S_ADDED_NEW_MEDIA_TYPE", "Added new media type");
+ define("S_NEW_MEDIA_TYPE_WAS_NOT_ADDED", "New media type was not added");
+ define("S_MEDIA_TYPE_UPDATED", "Media type updated");
+ define("S_MEDIA_TYPE_WAS_NOT_UPDATED", "Media type was not updated");
+ define("S_MEDIA_TYPE_DELETED", "Media type deleted");
+ define("S_MEDIA_TYPE_WAS_NOT_DELETED", "Media type was not deleted");
+ define("S_CONFIGURATION", "Configuration");
+ define("S_DO_NOT_KEEP_ALERTS_OLDER_THAN", "Do not keep alerts older than (in days)");
+ define("S_DO_NOT_KEEP_ALARMS_OLDER_THAN", "Do not keep alarms older than (in days)");
+ define("S_AVAILABLE_MEDIA_TYPES", "AVAILABLE MEDIA TYPES");
+ define("S_NO_MEDIA_TYPES_DEFINED", "No media types defined");
+ define("S_MEDIA", "Media");
+ define("S_DESCRIPTION", "Description");
+ define("S_SMTP_SERVER", "SMTP server");
+ define("S_SMTP_HELO", "SMTP helo");
+ define("S_SMTP_EMAIL", "SMTP email");
+ define("S_SCRIPT_NAME", "Script name");
+ define("S_DELETE_SELECTED_MEDIA", "Delete selected media?");
+
+// Latest values
+ define("S_LATEST_VALUES", "Latest values");
+ define("S_NO_PERMISSIONS", "No permissions !");
+ define("S_LATEST_DATA", "LATEST DATA");
+ define("S_ALL", "all");
+ define("S_DESCRIPTION_LARGE", "DESCRIPTION");
+ define("S_DESCRIPTION_SMALL", "Description");
+ define("S_GRAPH", "Graph");
+ define("S_HISTORY", "History");
+ define("S_TREND", "Trend");
+ define("S_COMPARE", "Compare");
+
+// Footer
+ define("S_ZABBIX_VER", "ZABBIX 1.1alpha1");
+ define("S_COPYRIGHT_BY", "Copyright 2001-2004 by ");
+ define("S_CONNECTED_AS", "Connected as");
+ define("S_ALEXEI_VLADISHEV", "Alexei Vladishev");
+
+// graph.php
+ define("S_CONFIGURATION_OF_GRAPH", "Configuration of graph");
+ define("S_CONFIGURATION_OF_GRAPH_BIG", "CONFIGURATION OF GRAPH");
+ define("S_ITEM_ADDED", "Item added");
+ define("S_CANNOT_ADD_ITEM", "Cannot add item");
+ define("S_ITEM_UPDATED", "Item updated");
+ define("S_CANNOT_UPDATE_ITEM", "Cannot update item");
+ define("S_ITEM_DELETED", "Item deleted");
+ define("S_CANNOT_DELETE_ITEM", "Cannot delete item");
+ define("S_SORT_ORDER_UPDATED", "Sort order updated");
+ define("S_CANNOT_UPDATE_SORT_ORDER", "Cannot update sort order");
+ define("S_DISPLAYED_PARAMETERS_BIG", "DISPLAYED PARAMETERS");
+ define("S_SORT_ORDER", "Sort order");
+ define("S_HOST", "Host");
+ define("S_PARAMETER", "Parameter");
+ define("S_COLOR", "Color");
+ define("S_UP", "Up");
+ define("S_DOWN", "Down");
+ define("S_NEW_ITEM_FOR_THE_GRAPH", "New item for the graph");
+ define("S_SORT_ORDER_1_100", "Sort order (0->100)");
+
+// graphs.php
+ define("S_CONFIGURATION_OF_GRAPHS", "Configuration of graphs");
+ define("S_CONFIGURATION_OF_GRAPHS_BIG", "CONFIGURATION OF GRAPHS");
+ define("S_GRAPH_ADDED", "Graph added");
+ define("S_CANNOT_ADD_GRAPH", "Cannot add graph");
+ define("S_GRAPH_UPDATED", "Graph updated");
+ define("S_CANNOT_UPDATE_GRAPH", "Cannot update graph");
+ define("S_GRAPH_DELETED", "Graph deleted");
+ define("S_CANNOT_DELETE_GRAPH", "Cannot delete graph");
+ define("S_ID", "Id");
+ define("S_NAME", "Name");
+ define("S_WIDTH", "Width");
+ define("S_HEIGHT", "Height");
+ define("S_ACTIONS", "Actions");
+ define("S_NO_GRAPHS_DEFINED", "No graphs defined");
+ define("S_DELETE_GRAPH_Q", "Delete graph?");
+
+// history.php
+ define("S_LAST_HOUR_GRAPH", "Last hour graph");
+ define("S_LAST_HOUR_GRAPH_DIFF", "Last hour graph (diff)");
+ define("S_VALUES_OF_LAST_HOUR", "Values of last hour");
+ define("S_VALUES_OF_SPECIFIED_PERIOD", "Values of specified period");
+ define("S_VALUES_IN_PLAIN_TEXT_FORMAT", "Values in plain text format");
+
+// hosts.php
+ define("S_HOSTS", "Hosts");
+ define("S_HOST_ADDED", "Host added");
+ define("S_CANNOT_ADD_HOST", "Cannot add host");
+ define("S_ITEMS_ADDED", "Items added");
+ define("S_CANNOT_ADD_ITEMS", "Cannot add items");
+ define("S_HOST_UPDATED", "Host updated");
+ define("S_CANNOT_UPDATE_HOST", "Cannot update host");
+ define("S_HOST_STATUS_UPDATED", "Host status updated");
+ define("S_CANNOT_UPDATE_HOST_STATUS", "Cannot update host status");
+ define("S_HOST_DELETED", "Host deleted");
+ define("S_CANNOT_DELETE_HOST", "Cannot delete host");
+ define("S_GROUP_ADDED", "Group added");
+ define("S_CANNOT_ADD_GROUP", "Cannot add group");
+ define("S_GROUP_DELETED", "Group deleted");
+ define("S_CANNOT_DELETE_GROUP", "Cannot delete group");
+ define("S_GROUP_UPDATED", "Group updated");
+ define("S_CANNOT_UPDATE_GROUP", "Cannot update group");
+ define("S_CONFIGURATION_OF_HOST_GROUPS", "CONFIGURATION OF HOST GROUPS");
+ define("S_MEMBERS", "Members");
+ define("S_NO_HOST_GROUPS_DEFINED", "No host groups defined");
+ define("S_NO_HOSTS_DEFINED", "No hosts defined");
+ define("S_CONFIGURATION_OF_HOSTS_BIG", "CONFIGURATION OF HOSTS");
+ define("S_HOST", "Host");
+ define("S_IP", "IP");
+ define("S_PORT", "Port");
+ define("S_MONITORED", "Monitored");
+ define("S_NOT_MONITORED", "Not monitored");
+ define("S_UNREACHABLE", "Unreachable");
+ define("S_TEMPLATE", "Template");
+ define("S_DELETED", "Deleted");
+ define("S_UNKNOWN", "Unknown");
+ define("S_GROUPS", "Groups");
+ define("S_NEW_GROUP", "New group");
+ define("S_USE_IP_ADDRESS", "Use IP address");
+ define("S_IP_ADDRESS", "IP address");
+ define("S_USE_THE_HOST_AS_A_TEMPLATE", "Use the host as a template");
+ define("S_DELETE_SELECTED_HOST_Q", "Delete selected host?");
+
+// config.php
+ define("S_CONFIGURATION_OF_ITEMS", "Configuration of items");
+ define("S_CONFIGURATION_OF_ITEMS_BIG", "CONFIGURATION OF ITEMS");
+ define("S_ITEM_UPDATED", "Item updated");
+ define("S_CANNOT_UPDATE_ITEM", "Cannot update item");
+ define("S_STATUS_UPDATED", "Status updated");
+ define("S_CANNOT_UPDATE_STATUS", "Cannot update status");
+ define("S_ITEM_ADDED", "Item added");
+ define("S_CANNOT_ADD_ITEM", "Cannot add item");
+ define("S_ITEM_DELETED", "Item deleted");
+ define("S_CANNOT_DELETE_ITEM", "Cannot delete item");
+ define("S_ITEMS_DELETED", "Items deleted");
+ define("S_CANNOT_DELETE_ITEMS", "Cannot delete items");
+ define("S_ITEMS_ACTIVATED", "Items activated");
+ define("S_CANNOT_ACTIVATE_ITEMS", "Cannot activate items");
+ define("S_ITEMS_DISABLED", "Items disabled");
+ define("S_KEY", "Key");
+ define("S_DESCRIPTION", "Description");
+ define("S_UPDATE_INTERVAL", "Update interval");
+ define("S_HISTORY", "History");
+ define("S_SHORT_NAME", "Short name");
+ define("S_ZABBIX_AGENT", "Zabbix agent");
+ define("S_SNMPV1_AGENT", "SNMPv1 agent");
+ define("S_ZABBIX_TRAPPER", "Zabbix trapper");
+ define("S_SIMPLE_CHECK", "Simple check");
+ define("S_SNMPV2_AGENT", "SNMPv2 agent");
+ define("S_ZABBIX_INTERNAL", "Zabbix internal");
+ define("S_ZABBIX_UNKNOWN", "Unknown");
+ define("S_ACTIVE", "Active");
+ define("S_NOT_ACTIVE", "Not active");
+ define("S_NOT_SUPPORTED", "Not supported");
+ define("S_ACTIVATE_SELECTED_ITEMS_Q", "Activate selected items?");
+ define("S_DISABLE_SELECTED_ITEMS_Q", "Disable selected items?");
+ define("S_DELETE_SELECTED_ITEMS_Q", "Delete selected items?");
+
+// latestalarms.php
+ define("S_LATEST_ALARMS", "Latest alarms");
+ define("S_HISTORY_OF_ALARMS_BIG", "HISTORY OF ALARMS");
+ define("S_ALARMS_BIG", "ALARMS");
+ define("S_TIME", "Time");
+ define("S_SEVERITY", "Severity");
+ define("S_UNKNOWN_BIG", "UNKNOWN");
+ define("S_NOT_CLASSIFIED", "Not classified");
+ define("S_INFORMATION", "Information");
+ define("S_WARNING", "Warning");
+ define("S_AVERAGE", "Average");
+ define("S_HIGH", "High");
+ define("S_DISASTER", "Disaster");
+
+// map.php
+ define("S_OK_BIG", "OK");
+ define("S_PROBLEMS_SMALL", "problems");
+ define("S_ZABBIX_URL", "http://www.zabbix.com");
+
+// maps.php
+ define("S_NETWORK_MAPS", "Network maps");
+ define("S_NETWORK_MAPS_BIG", "NETWORK MAPS");
+ define("S_NO_MAPS_TO_DISPLAY", "No maps to display");
+ define("S_SELECT_MAP_TO_DISPLAY", "Select map to display");
+
+// media.php
+ define("S_MEDIA", "Media");
+ define("S_MEDIA_BIG", "MEDIA");
+ define("S_MEDIA_ACTIVATED", "Media activated");
+ define("S_CANNOT_ACTIVATE_MEDIA", "Cannot activate media");
+ define("S_MEDIA_DISABLED", "Media disabled");
+ define("S_CANNOT_DISABLE_MEDIA", "Cannot disable media");
+ define("S_MEDIA_ADDED", "Media added");
+ define("S_CANNOT_ADD_MEDIA", "Cannot add media");
+ define("S_MEDIA_UPDATED", "Media updated");
+ define("S_CANNOT_UPDATE_MEDIA", "Cannot update media");
+ define("S_MEDIA_DELETED", "Media deleted");
+ define("S_CANNOT_DELETE_MEDIA", "Cannot delete media");
+ define("S_SEND_TO", "Send to");
+ define("S_ENABLED", "Enabled");
+ define("S_DISABLED", "Disabled");
+ define("S_NO_MEDIA_DEFINED", "No media defined");
+ define("S_NEW_MEDIA", "New media");
+ define("S_USE_IF_SEVERITY", "Use if severity");
+ define("S_DELETE_SELECTED_MEDIA_Q", "Delete selected media?");
+
+// Menu
+ define("S_MENU_LATEST_VALUES", "LATEST VALUES");
+ define("S_MENU_TRIGGERS", "TRIGGERS");
+ define("S_MENU_QUEUE", "QUEUE");
+ define("S_MENU_ALARMS", "ALARMS");
+ define("S_MENU_ALERTS", "ALERTS");
+ define("S_MENU_NETWORK_MAPS", "NETWORK MAPS");
+ define("S_MENU_GRAPHS", "GRAPHS");
+ define("S_MENU_SCREENS", "SCREENS");
+ define("S_MENU_IT_SERVICES", "IT SERVICES");
+ define("S_MENU_HOME", "HOME");
+ define("S_MENU_ABOUT", "ABOUT");
+ define("S_MENU_STATUS_OF_ZABBIX", "STATUS OF ZABBIX");
+ define("S_MENU_AVAILABILITY_REPORT", "AVAILABILITY REPORT");
+ define("S_MENU_CONFIG", "CONFIG");
+ define("S_MENU_USERS", "USERS");
+ define("S_MENU_HOSTS", "HOSTS");
+ define("S_MENU_ITEMS", "ITEMS");
+ define("S_MENU_TRIGGERS", "TRIGGERS");
+ define("S_MENU_NETWORK_MAPS", "NETWORK MAPS");
+ define("S_MENU_GRAPHS", "GRAPHS");
+
+// users.php
+ define("S_USERS", "Users");
+ define("S_USER_ADDED", "User added");
+ define("S_CANNOT_ADD_USER", "Cannot add user");
+ define("S_CANNOT_ADD_USER_BOTH_PASSWORDS_MUST", "Cannot add user. Both passwords must be equal.");
+ define("S_USER_DELETED", "User deleted");
+ define("S_CANNOT_DELETE_USER", "Cannot delete user");
+ define("S_PERMISSION_DELETED", "Permission deleted");
+ define("S_CANNOT_DELETE_PERMISSION", "Cannot delete permission");
+ define("S_PERMISSION_ADDED", "Permission added");
+ define("S_CANNOT_ADD_PERMISSION", "Cannot add permission");
+ define("S_USER_UPDATED", "User updated");
+ define("S_CANNOT_UPDATE_USER", "Cannot update user");
+ define("S_CANNOT_UPDATE_USER_BOTH_PASSWORDS", "Cannot update user. Both passwords must be equal.");
+ define("S_GROUP_ADDED", "Group added");
+ define("S_CANNOT_ADD_GROUP", "Cannot add group");
+ define("S_GROUP_UPDATED", "Group updated");
+ define("S_CANNOT_UPDATE_GROUP", "Cannot update group");
+ define("S_GROUP_DELETED", "Group deleted");
+ define("S_CANNOT_DELETE_GROUP", "Cannot delete group");
+ define("S_CONFIGURATION_OF_USER_GROUPS_BIG", "CONFIGURATION OF USER GROUPS");
+ define("S_CONFIGURATION_OF_USERS_BIG", "CONFIGURATION OF USERS");
+ define("S_MEMBERS", "Members");
+ define("S_NO_USER_GROUPS_DEFINED", "No user groups defined");
+ define("S_ALIAS", "Alias");
+ define("S_NAME", "Name");
+ define("S_SURNAME", "Surname");
+ define("S_IS_ONLINE_Q", "Is online?");
+ define("S_NO_USERS_DEFINED", "No users defined");
+ define("S_PERMISSION", "Permission");
+ define("S_RIGHT", "Right");
+ define("S_RESOURCE_NAME", "Resource name");
+ define("S_READ_ONLY", "Read only");
+ define("S_READ_WRITE", "Read-write");
+ define("S_HIDE", "Hide");
+?>