We changed the certificate so it no longer is localhost. This broke scripts to delete hosts/services from the database.
Is there a fix?
host name change broke mysql_delete scripts
-
ChathamDaleJ
- Posts: 55
- Joined: Tue Jul 02, 2013 10:44 am
-
ChathamDaleJ
- Posts: 55
- Joined: Tue Jul 02, 2013 10:44 am
Re: host name change broke mysql_delete scripts
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”
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”
Re: host name change broke mysql_delete scripts
Can you login to the XI server and run the following commands and post the full output?
Thanks
Code: Select all
cd /usr/local/nagiosxi/scripts/
su nagios
./reconfigure_nagios.shBe sure to check out our Knowledgebase for helpful articles and solutions!