Ad Widget

Collapse

HTML tag interpretation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jonyhawk
    Junior Member
    • Sep 2010
    • 1

    #1

    HTML tag interpretation

    Hi,

    I'm trying to use the inventory functionnality of zabbix but I'm blocked by the html balise interpretation. I want to put this in the "hardware" textarea :

    Description : eth0
    Type : Ethernet
    Vitesse :
    Adresse MAC : AA:BB:CCD:EE:FF
    Statut : Up
    Adresse IP : 1.2.3.4
    Masque : 255.255.255.0
    Gateway : 1.2.3.254
    Sous reseau : 1.2.3.0

    But then I want to see the result in Inventory -> Host, All is put on one line without the text disposition. So, to solve this, I have add the html tag <br/> at the end of each line but it's doesn't change anything. The text is return like this :

    Description : eth0<br/>Type : Ethernet<br/>Vitesse : <br/>Adresse MAC : AA:BB:CCD:EE:FF<br/>Statut : Up<br/>Adresse IP : 1.2.3.4<br/>Masque : 255.255.255.0<br/>Gateway : 1.2.3.254<br/>Sous reseau : 1.2.3.0<br/>

    With Firebug I try to find what's happened. I find the text writen like this in the page code :

    Description : eth0&lt;br/&gt;Type : Ethernet&lt;br/&gt;Vitesse : &lt;br/&gt;Adresse MAC : AA:BB:CCD:EE:FF&lt;br/&gt;Statut : Up&lt;br/&gt;Adresse IP : 1.2.3.4&lt;br/&gt;Masque : 255.255.255.0&lt;br/&gt;Gateway : 1.2.3.254&lt;br/&gt;Sous reseau : 1.2.3.0&lt;br/&gt;

    I'm block. I don't find how to have a good html tag interpretation. I try to modify the func.inc.php but I don't find the function or the code part to change.

    If anyone have a suggestion.

    It's for a OCS NG Zabbix inventory synchronisation addon.

    Thx

    Zabbix : 1.8.3
Working...