host name change broke mysql_delete scripts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ChathamDaleJ
Posts: 55
Joined: Tue Jul 02, 2013 10:44 am

host name change broke mysql_delete scripts

Post by ChathamDaleJ »

We changed the certificate so it no longer is localhost. This broke scripts to delete hosts/services from the database.

Is there a fix?
ChathamDaleJ
Posts: 55
Joined: Tue Jul 02, 2013 10:44 am

Re: host name change broke mysql_delete scripts

Post by ChathamDaleJ »

Let me give some more info. XI 5.2.3. 64 bit. Error message:

CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies https://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'type=service&cmd=delete&id=10116' -O nagiosql.delete.service
--2016-02-18 10:59:55-- https://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:443... connected.
WARNING: cannot verify localhost’s certificate, issued by “/DC=net/DC=regulusgroup/CN=RegulusIssueCA”:
Unable to locally verify the issuer’s authority.
WARNING: certificate common name “nagios.regulusgroup.net” doesn't match requested host name “localhost”.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.delete.service”
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: host name change broke mysql_delete scripts

Post by tgriep »

Can you login to the XI server and run the following commands and post the full output?

Code: Select all

cd /usr/local/nagiosxi/scripts/
su nagios
./reconfigure_nagios.sh
Thanks
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked