So during initial development of our Zabbix deployment I had a remote proxy agent for a while, but have since stopped using it. Yesterday just to clean up unnecessary things I tried to delete that proxy but I'm getting a database error and can't figure out what the issue is.
When I tried to just delete the proxy from within Administration -> DM, I received a SQL error. So I thought maybe I had to delete the host first. I deleted the host, which worked, but a day later I'm still getting SQL errors when I try to delete the proxy.
This is the error I get:
My proxy was set to active, and at some point when fiddling with it I changed it to Passive. Now if I try to change it back to Active I get this error:
Any suggestions? I know I could go into the database and start deleting records manually but I'd like to know the "proper" way to remove a proxy from the system. I looked around but didn't find any special documentation on any extra steps to do that.
I thought maybe I needed to let Housekeeping go through and clean up items from deleted hosts, but Housekeeping runs every hour and I haven't seen errors or warnings from it.
My zabbix server is 2.0.3 though it's likely the proxy was still 2.0.0 or 2.0.1 since I had stopped using it a while back I don't think I remembered to update it with the rest.
When I tried to just delete the proxy from within Administration -> DM, I received a SQL error. So I thought maybe I had to delete the host first. I deleted the host, which worked, but a day later I'm still getting SQL errors when I try to delete the proxy.
This is the error I get:
Code:
Error in query [DELETE FROM interface WHERE (hostid IN ('100100000010131')) ] [Cannot delete or update a parent row: a foreign key constraint fails (`zabbix`.`items`, CONSTRAINT `c_items_4` FOREIGN KEY (`interfaceid`) REFERENCES `interface` (`interfaceid`))]
SQL statement execution has failed "DELETE FROM interface WHERE (hostid IN ('100100000010131')) "
Code:
Interface is linked to item "Aborted clients" on "".
I thought maybe I needed to let Housekeeping go through and clean up items from deleted hosts, but Housekeeping runs every hour and I haven't seen errors or warnings from it.
My zabbix server is 2.0.3 though it's likely the proxy was still 2.0.0 or 2.0.1 since I had stopped using it a while back I don't think I remembered to update it with the rest.
Comment