Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-5311

deleting a proxy which is used in a discovery rule generates SQL error

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Major Major
    • 2.0.2rc1, 2.1.0
    • 2.0.2rc1
    • Frontend (F)
    • trunk rev 28795

      Set "Discovery by proxy" to a proxy and try to delete the proxy:

      You will see an error:

      Error in query [DELETE FROM hosts WHERE (hostid IN ('10109')) ] [Cannot delete or update a parent row: a foreign key constraint fails (`zabbix`.`drules`, CONSTRAINT `c_drules_1` FOREIGN KEY (`proxy_hostid`) REFERENCES `hosts` (`hostid`))]
      SQL statement execution has failed "DELETE FROM hosts WHERE (hostid IN ('10109')) " [CProxy.delete -> DB.delete]

            Unassigned Unassigned
            zalex_ua Oleksii Zagorskyi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: