I have not been able to have users complete removal of services/hosts on an installation recently. I go in as nagiosadmin and see that the CCM wants to apply a configuration and when I do I get the following failure: When I look in the file output from the terminal I don't see this config (it has been removed for a couple of days that I know of). Also, trying the service and host removal php scripts does not find the host/services:
Code: Select all
[root@esnagxitst01 scripts]# cd /usr/local/nagios/etc/hosts/
[root@esnagxitst01 hosts]# ls
estrain01.uits.iu.edu.cfg estrain03.uits.iu.edu.cfg estrain05.uits.iu.edu.cfg localhost.cfg
estrain02.uits.iu.edu.cfg estrain04.uits.iu.edu.cfg iu-uits-sacaz.ads.iu.edu.cfg
[root@esnagxitst01 hosts]# cd /usr/local/nagiosxi/scripts
[root@esnagxitst01 scripts]# ./nagiosql_delete_service.php --config=in-uits-sf2.ads.iu.edu
URL: https://localhost/nagiosxi/includes/components/ccm/
Unable find services in nagiosql database.
Usage: ./nagiosql_delete_service.php [--id=<service id>] [--config=<config_name>]
[root@esnagxitst01 scripts]# ./nagiosql_delete_host.php --host=in-uits-sf2.ads.iu.edu
URL: https://localhost/nagiosxi/includes/components/ccm/
Unable find host in nagiosql database