Cannot delete hosts/host groups
Posted: Tue Mar 24, 2020 11:17 am
I'm trying to import an older Nagios configuration into Nagios XI (core 4.4.3).
I've done the import once, but now I'm trying to overwrite it but I cannot get rid of the old definitions.
From the web interface, I've deleted the hosts, services, host groups and service groups.
But when I try to "apply configuration", I get the error below.
Error: Could not complete object definition in file '/usr/local/nagios/etc/hostgroups.cfg' on line 19. Have you named all your objects?
I would expect host groups to be empty at this point, but it still complains.
If I use config file management / delete files, then write config, I get my old and broken configuration back.
How do I get rid of it?
Also - related to this when I run the import, the "overwrite database" checkbox doesn't seem to have any effect. Old configurations remain behind.
When I run the import, I am deleting all existing configs from
/usr/local/nagios/etc
/usr/local/nagios/etc/hosts
/usr/local/nagios/etc/services
Alternatively, is there some way to re-initialize the Nagios XI database back to an initial state?
I've done the import once, but now I'm trying to overwrite it but I cannot get rid of the old definitions.
From the web interface, I've deleted the hosts, services, host groups and service groups.
But when I try to "apply configuration", I get the error below.
Error: Could not complete object definition in file '/usr/local/nagios/etc/hostgroups.cfg' on line 19. Have you named all your objects?
I would expect host groups to be empty at this point, but it still complains.
If I use config file management / delete files, then write config, I get my old and broken configuration back.
How do I get rid of it?
Also - related to this when I run the import, the "overwrite database" checkbox doesn't seem to have any effect. Old configurations remain behind.
When I run the import, I am deleting all existing configs from
/usr/local/nagios/etc
/usr/local/nagios/etc/hosts
/usr/local/nagios/etc/services
Alternatively, is there some way to re-initialize the Nagios XI database back to an initial state?