summaryrefslogtreecommitdiffstats
path: root/frontends/php/include
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2001-12-27 08:33:08 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2001-12-27 08:33:08 +0000
commit45baa47bcbca0caa0c8f2c930bb5b4307d4bfba9 (patch)
treeee423700d38529e9a55a2c919422287a92b3393c /frontends/php/include
parent3e2c4681abe924383ba2d822c842b9f4a4509a6a (diff)
downloadzabbix-45baa47bcbca0caa0c8f2c930bb5b4307d4bfba9.tar.gz
zabbix-45baa47bcbca0caa0c8f2c930bb5b4307d4bfba9.tar.xz
zabbix-45baa47bcbca0caa0c8f2c930bb5b4307d4bfba9.zip
- added srv_status.html and services.html (Alexei)
- added table services and services_links (Alexei) - support for parameter StartAgents in zabbix_agentd.conf (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@270 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include')
-rw-r--r--frontends/php/include/config.inc51
1 files changed, 50 insertions, 1 deletions
diff --git a/frontends/php/include/config.inc b/frontends/php/include/config.inc
index 4586397b..c2c777a1 100644
--- a/frontends/php/include/config.inc
+++ b/frontends/php/include/config.inc
@@ -468,6 +468,21 @@
?>
</font>
</td>
+ <td colspan=1 bgcolor=FFFFFF align=center valign="top" width="15%">
+ <font face="Arial,Helvetica" size=2>
+ <a href="srv_status.html">
+<?
+ if($page["file"]=="srv_status.html")
+ {
+ echo "<b>[SERVICES]</b></a>";
+ }
+ else
+ {
+ echo "SERVICES</a>";
+ }
+?>
+ </font>
+ </td>
</tr>
<tr>
<td colspan=2 bgcolor=FFFFFF align=center valign="top" width="15%">
@@ -485,7 +500,7 @@
?>
</font>
</td>
- <td colspan=2 bgcolor=FFFFFF align=center valign="top" width="15%">
+ <td colspan=3 bgcolor=FFFFFF align=center valign="top" width="15%">
<font face="Arial,Helvetica" size=2>
<a href="report1.html">
<?
@@ -626,6 +641,21 @@
?>
</font>
</td>
+ <td colspan=1 bgcolor=FFFFFF align=center valign="top" width="15%">
+ <font face="Arial,Helvetica" size=2>
+ <a href="services.html">
+<?
+ if($page["file"]=="services.html")
+ {
+ echo "<b>[SERVICES]</b></a>";
+ }
+ else
+ {
+ echo "SERVICES</a>";
+ }
+?>
+ </font>
+ </td>
</tr>
</table>
</td>
@@ -860,6 +890,25 @@
return DBexecute($sql);
}
+ function add_service($name,$triggerid,$linktrigger)
+ {
+ if( isset($linktrigger)&&($linktrigger=="on") )
+ {
+ $sql="insert into services (serviceid,name,triggerid) values (NULL,'$name',$triggerid)";
+ }
+ else
+ {
+ $sql="insert into services (serviceid,name) values (NULL,'$name')";
+ }
+ return DBexecute($sql);
+ }
+
+ function add_service_link($servicedownid,$serviceupid)
+ {
+ $sql="insert into services_links (servicedownid,serviceupid) values ($servicedownid,$serviceupid)";
+ return DBexecute($sql);
+ }
+
# Update Action
function update_action( $actionid, $userid, $good, $delay, $subject, $message )