I have also run into this issue trying to delete a host, deleting
another host worked perfectly but that host didn't have snmp enabled.

Community edition, version 3.7.1 running on ubuntu 8.04 fully patched.



On Wed, 2010-07-07 at 20:07 +0200, Natxo Asenjo wrote:
> hi,
> 
> when I try to delete a host clicking on the dustbin next to the host,
> I get this error:
> 
> Opsview error: DBIx::Class::Relationship::CascadeActions::delete():
> DBI Exception: DBD::mysql::st execute failed: Cannot delete or update
> a parent row: a foreign key constraint fails (`opsview/snmpwalkcache`,
> CONSTRAINT `snmpwalkcache_hosts_fk` FOREIGN KEY (`hostid`) REFERENCES
> `hosts` (`id`)) [for Statement "DELETE FROM hosts WHERE ( id = ? )"
> with ParamValues: 0='2'] at
> /usr/local/opsview-web/script/../lib/Opsview/Web/ControllerBase/Admin.pm
> line 298
> 
> This is on the community edition, version 3.7.1, running on debian
> lenny fully patched.

steve ofsoski | system administrator | tel +64 4 915 6055 | fax +64 4
915 6030 | mob 021 775 965 
terralink international limited | po box 2872, wellington, 6140, new
zealand | www.terralink.co.nz | 

http://www.myaddress.co.nz/images/nzar_banner_ad_small_static.gif

This email is intended solely for the addressee(s) named above, and the
information it contains is deemed to be confidential. If you have
received this email in error, please delete it immediately. Terralink
International accepts no responsibility for changes made to this email
or to any attachments after transmission from the office.
_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users

Reply via email to