Issue after using the Renaming tool
Posted: Thu Feb 20, 2014 1:56 pm
I recently used the renaming tool on a groups of servers, and now the servers show in the gui as the old name and the new name. I looked in the following directories for the old host names:
/usr/local/nagios/etc/hosts/
ls |grep hostname
/usr/local/nagios/etc/services/
ls |grep hostname
none of them appear, so I then went to the scripts directory to run the following:
./nagiosql_delete_host.php --host=hostname_of_server and get the following back
Unable find host in nagiosql database
./nagiosql_delete_service.php --config=hostname_of_server
Unable find services in nagiosql database.
Im not real sure how to proceede from here, but I also tried the FAQ doc
http://support.nagios.com/wiki/index.ph ... t_Hosts.29
and that didnt help either
Any additional trouble shooting steps to resolve this would be greatly appreciated
/usr/local/nagios/etc/hosts/
ls |grep hostname
/usr/local/nagios/etc/services/
ls |grep hostname
none of them appear, so I then went to the scripts directory to run the following:
./nagiosql_delete_host.php --host=hostname_of_server and get the following back
Unable find host in nagiosql database
./nagiosql_delete_service.php --config=hostname_of_server
Unable find services in nagiosql database.
Im not real sure how to proceede from here, but I also tried the FAQ doc
http://support.nagios.com/wiki/index.ph ... t_Hosts.29
and that didnt help either
Any additional trouble shooting steps to resolve this would be greatly appreciated