diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2002-11-10 09:16:25 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2002-11-10 09:16:25 +0000 |
| commit | 64ac1f99f5cfc6a30d5c00e82a73db031dcf5b0e (patch) | |
| tree | 6becdc90306b3600479491eb6667aeb2904f6ecc /frontends/php/items.php | |
| parent | ea43b5989622a03c809ebd2aca8b9ea4e2f5a763 (diff) | |
| download | zabbix-64ac1f99f5cfc6a30d5c00e82a73db031dcf5b0e.tar.gz zabbix-64ac1f99f5cfc6a30d5c00e82a73db031dcf5b0e.tar.xz zabbix-64ac1f99f5cfc6a30d5c00e82a73db031dcf5b0e.zip | |
Misc changes to PHP frontend.
git-svn-id: svn://svn.zabbix.com/trunk@565 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/items.php')
| -rw-r--r-- | frontends/php/items.php | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/frontends/php/items.php b/frontends/php/items.php index 1d9a9abc..2a33ac1d 100644 --- a/frontends/php/items.php +++ b/frontends/php/items.php @@ -76,7 +76,7 @@ $lasthost=""; if(isset($HTTP_GET_VARS["hostid"])&&!isset($HTTP_GET_VARS["itemid"])) { - $result=DBselect("select h.host,i.key_,i.itemid,i.description,h.port,i.delay,i.history,i.lastvalue,i.lastclock,i.status,i.lastdelete,i.nextcheck,h.hostid from hosts h,items i where h.hostid=i.hostid and h.hostid=".$HTTP_GET_VARS["hostid"]." order by h.host,i.key_,i.description"); + $result=DBselect("select h.host,i.key_,i.itemid,i.description,h.port,i.delay,i.history,i.lastvalue,i.lastclock,i.status,i.lastdelete,i.nextcheck,h.hostid,i.type from hosts h,items i where h.hostid=i.hostid and h.hostid=".$HTTP_GET_VARS["hostid"]." order by h.host,i.key_,i.description"); $col=0; while($row=DBfetch($result)) { @@ -101,6 +101,7 @@ echo "<TD WIDTH=5% NOSAVE><B>Delay</B></TD>"; echo "<TD WIDTH=5% NOSAVE><B>History</B></TD>"; echo "<TD><B>Shortname</B></TD>"; + echo "<TD WIDTH=5% NOSAVE><B>Type</B></TD>"; echo "<TD WIDTH=5% NOSAVE><B>Status</B></TD>"; echo "<TD WIDTH=5% NOSAVE><B>Actions</B></TD>"; echo "</TR>"; @@ -118,6 +119,25 @@ echo "<TD>".$row["host"].":".$row["key_"]."</TD>"; echo "<td align=center>"; + switch($row["type"]) + { + case 0: + echo "Zabbix agent"; + break; + case 1: + echo "SNMPv1 agent"; + break; + case 2: + echo "Zabbix trapper"; + break; + default: + echo "Unknown"; + break; + } + echo "</td>"; + + + echo "<td align=center>"; if(isset($HTTP_GET_VARS["hostid"])) { switch($row["status"]) @@ -128,9 +148,9 @@ case 1: echo "<a href=\"items.php?itemid=".$row["itemid"]."&hostid=".$HTTP_GET_VARS["hostid"]."®ister=changestatus&status=0\">Not active</a>"; break; - case 2: - echo "Trapper"; - break; +# case 2: +# echo "Trapper"; +# break; case 3: echo "Not supported"; break; |
