Ad Widget

Collapse

My Own web portal

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • phl4kx
    Junior Member
    • May 2010
    • 8

    #1

    My Own web portal

    Hi friends, I need to make my Own web portal, PHP files going to stay in the same server with the original frontend zabbix PHP, I can create a Host but I like to show the error message when is not possible to create a host, can anyone help me please?

    PHP Code:
    require_once('./include/config.inc.php');

    $hostgroup = array('name' => 'grupoprueba4555');
    DBstart();
    $result API::HostGroup()->create($hostgroup);
    if (
    $result['groupids'][0]){
        echo 
    "OK: HOSTGROUP AGREGADO CORRECTAMENTE:";
        echo 
    $result['groupids'][0];
    }
    else{
        echo 
    "ERROR: HOSTGROUP NO AGREGADO";
        echo 
    $result['code'][0];
    }        
    $result DBend($result); 
    Thanks a lot
    Last edited by phl4kx; 03-01-2012, 01:29. Reason: new title
  • walterheck
    Senior Member
    • Jul 2009
    • 153

    #2
    Possibly not a direct answer to your question, but if you would use Drupal you can use our drupal module here: https://github.com/Tribily/tribily-zabbix-drupal-module
    Free and Open Source Zabbix Templates Repository | Hosted Zabbix @ Tribily (http://tribily.com)

    Comment

    Working...