diff options
author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-09-07 13:33:33 +0000 |
---|---|---|
committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-09-07 13:33:33 +0000 |
commit | 32224c56c417b3869120b4b1062af85a118fce2d (patch) | |
tree | 9bfeff3e3a610b061e8587da20b0e2cb9b45a2f3 /frontends | |
parent | f66f63a490264169a62b864ff829c65c9dcf73fa (diff) | |
download | zabbix-32224c56c417b3869120b4b1062af85a118fce2d.tar.gz zabbix-32224c56c417b3869120b4b1062af85a118fce2d.tar.xz zabbix-32224c56c417b3869120b4b1062af85a118fce2d.zip |
Minor changes.
git-svn-id: svn://svn.zabbix.com/trunk@2052 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends')
-rw-r--r-- | frontends/php/include/triggers.inc.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/frontends/php/include/triggers.inc.php b/frontends/php/include/triggers.inc.php index a5a88820..9ea43e12 100644 --- a/frontends/php/include/triggers.inc.php +++ b/frontends/php/include/triggers.inc.php @@ -46,7 +46,7 @@ return DBexecute($sql); } - # "Processor load on %s is 5" to "Processor load on www.sf.net is 5" + # "Processor load on {HOSTNAME} is 5" to "Processor load on www.sf.net is 5" function expand_trigger_description_simple($triggerid) { $sql="select distinct t.description,h.host from triggers t,functions f,items i,hosts h where t.triggerid=$triggerid and f.triggerid=t.triggerid and f.itemid=i.itemid and i.hostid=h.hostid"; @@ -56,9 +56,10 @@ // $description=str_replace("%s",$row["host"],$row["description"]); - $search=array("{HOSTNAME}"); - $replace=array($row["host"]); +// $search=array("{HOSTNAME}"); +// $replace=array($row["host"]); // $description = str_replace($search, $replace,$row["description"]); + $description = str_replace("{HOSTNAME}", $row["host"],$row["description"]); return $description; |