diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2001-12-27 08:33:08 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2001-12-27 08:33:08 +0000 |
| commit | 45baa47bcbca0caa0c8f2c930bb5b4307d4bfba9 (patch) | |
| tree | ee423700d38529e9a55a2c919422287a92b3393c /frontends/php/srv_status.html | |
| parent | 3e2c4681abe924383ba2d822c842b9f4a4509a6a (diff) | |
- 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/srv_status.html')
| -rw-r--r-- | frontends/php/srv_status.html | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/frontends/php/srv_status.html b/frontends/php/srv_status.html new file mode 100644 index 00000000..ed02663f --- /dev/null +++ b/frontends/php/srv_status.html @@ -0,0 +1,53 @@ +<? + $page["title"] = "High-level representation of monitored data"; + $page["file"] = "srv_status.html"; + + include "include/config.inc"; + show_header($page["title"],0,0); +?> + +<? + show_table_header("IT's SERVICES"); + + echo "<br>"; + + show_table_header("SERVICES"); +?> +<? + $now=time(); + $result=DBselect("select serviceid,name from services order by name"); + echo "<table border=0 width=100% bgcolor='#CCCCCC' cellspacing=1 cellpadding=3>"; + echo "\n"; + echo "<tr><td><b>Service</b></td></tr>"; + echo "\n"; + $col=0; + for($i=0;$i<DBnum_rows($result);$i++) + { + $serviceid_=DBget_field($result,$i,0); + $name_=DBget_field($result,$i,1); + + if(isset($serviceid)&&($serviceid==$serviceid_)) + { + echo "<tr bgcolor=#99AABB>"; + } + else + { + if($col==1) + { + echo "<tr bgcolor=#EEEEEE>"; + $col=0; + } else + { + echo "<tr bgcolor=#DDDDDD>"; + $col=1; + } + } + echo "<td><a href=\"srv_status.html?serviceid=$serviceid_\">$name_</a></td>"; + echo "</tr>"; + } + echo "</table>"; +?> + +<? + show_footer(); +?> |
