Ad Widget

Collapse

Bug in popup.php from 1.8.1

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cioris
    Member
    • Oct 2008
    • 30

    #1

    Bug in popup.php from 1.8.1

    When you try to add/edit/view items associated with a template, you cannot select the "Host" as one of the templates. The popup window shows "No Hosts Defined". This is because the options passed to CHost::get do not have "templated_hosts" defined. Without this option the default behaviour is to select just Monitored & Non_Monitored Hosts (as defined in class.chost.php line 278)

    $sql_parts['where'][] = 'h.status IN ('.HOST_STATUS_MONITORED.','.HOST_STATUS_NOT_MONIT ORED.')';

    In order to fix the problem I just added the missing option in popup.php. Add templated_hosts' => 1 to the options (e.g line 398).

    Probably is already fixed in 1.8.2... but in case not...
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    seems to work as expected in current trunk, so seems to be fixed already
    Zabbix 3.0 Network Monitoring book

    Comment

    Working...