diff options
author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2001-06-24 14:05:36 +0000 |
---|---|---|
committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2001-06-24 14:05:36 +0000 |
commit | 054a546ff167d60bb13d0ecfc79dc1c1bce2cff0 (patch) | |
tree | 883c99ede4a0b156f8dd5128a041a7a480bd4ecb /frontends/php/include | |
parent | 15377955b388639cbfdcbbe684e09f2bde30cafa (diff) | |
download | zabbix-054a546ff167d60bb13d0ecfc79dc1c1bce2cff0.tar.gz zabbix-054a546ff167d60bb13d0ecfc79dc1c1bce2cff0.tar.xz zabbix-054a546ff167d60bb13d0ecfc79dc1c1bce2cff0.zip |
Several changes:
- added map.html maps.html sysmap.html
- support for system (network) maps
git-svn-id: svn://svn.zabbix.com/trunk@105 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include')
-rw-r--r-- | frontends/php/include/config.inc | 45 |
1 files changed, 44 insertions, 1 deletions
diff --git a/frontends/php/include/config.inc b/frontends/php/include/config.inc index ad2c4fdc..fc2d28bc 100644 --- a/frontends/php/include/config.inc +++ b/frontends/php/include/config.inc @@ -303,9 +303,24 @@ ?> </font> </td> + <td colspan=1 bgcolor=FFFFFF align=center valign="top" width="15%"> + <font face="Arial,Helvetica" size=2> + <a href="maps.html"> +<? + if($page["file"]=="maps.html") + { + echo "<b>[NETWORK MAPS]</b></a>"; + } + else + { + echo "NETWORK MAPS</a>"; + } +?> + </font> + </td> </tr> <tr> - <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"> <? @@ -665,6 +680,10 @@ { $sql="delete from sysmaps where sysmapid=$sysmapid"; $result=DBexecute($sql); + $sql="delete from sysmaps_hosts where sysmapid=$sysmapid"; + $result=DBexecute($sql); + $sql="delete from sysmaps_links where sysmapid=$sysmapid"; + $result=DBexecute($sql); } # Delete Action by userid @@ -863,6 +882,20 @@ $result=DBexecute($sql); } + function add_link($sysmapid,$shostid1,$shostid2) + { + $sql="insert into sysmaps_links (sysmapid,shostid1,shostid2) values ($sysmapid,$shostid1,$shostid2)"; + $result=DBexecute($sql); + } + + # Add Host to system map + + function add_host_to_sysmap($sysmapid,$hostid,$label,$x,$y) + { + $sql="insert into sysmaps_hosts (sysmapid,hostid,label,x,y) values ($sysmapid,$hostid,'$label',$x,$y)"; + $result=DBexecute($sql); + } + # Add Host definition function add_host($host,$port,$status) @@ -924,6 +957,16 @@ $result=DBexecute($sql); } + # Delete Host from sysmap definition + + function delete_sysmaps_host($shostid) + { + $sql="delete from sysmaps_hosts where shostid=$shostid"; + $result=DBexecute($sql); + $sql="delete from sysmaps_links where shostid1=$shostid or shostid2=$shostid"; + $result=DBexecute($sql); + } + # Delete Host function delete_host($hostid) |