Error: Could not parse XML from https://serve_name/nagiosxi/

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
taandrews
Posts: 93
Joined: Thu Mar 10, 2016 1:55 pm

Re: Error: Could not parse XML from https://serve_name/nagio

Post by taandrews »

BINGO! One I set the the certs in /usr/local/nagios/libexec/check_nagiosxiserver.ph
with
curl_setopt($ch, CURLOPT_SSLCERT, '/usr/local/nagiosxi/html/yourclientcert.crt');
curl_setopt($ch, CURLOPT_SSLKEY, '/usr/local/nagiosxi/html/youclientcertkey_nopass.key');
$response = curl_exec($ch);

using my certs and forced a check it WORKED! I had all of these set and working for 6-7 months then one day all of these settings were reset to default. We havent upgraded... this might remain a mystery.

Thank you guys so very much!
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Error: Could not parse XML from https://serve_name/nagio

Post by ssax »

Unsure how the plugin could have been reverted without an upgrade, did you upgrade any of the components/wizards at all through the web interface (Admin > Manage Components OR Admin > Manage Config Wizards)?

XI really wasn't designed with client-certificates in mind, you were the first person that I worked with to get it setup, I did create a feature request for that as well but there hasn't been any movement on it as of yet:

Code: Select all

Task ID 8261: Nagios XI Feature Request: Add PKI (certificate) authentication
taandrews
Posts: 93
Joined: Thu Mar 10, 2016 1:55 pm

Re: Error: Could not parse XML from https://serve_name/nagio

Post by taandrews »

Hi Sean I just realized it was you who I was chatting with. Seem like each day I get a new tech. I can say that I didnt change it and that these changes are so specific that no one on my team would know where to find these files. I backed up all of the .php files before I changed them and the back files were even deleted. I truly have no idea how this happened but I will back them up to remote storage for safe keeping.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Error: Could not parse XML from https://serve_name/nagio

Post by ssax »

Sound good, glad it's working though! Are we okay to lock this and mark it as resolved or do you have any other related questions?
taandrews
Posts: 93
Joined: Thu Mar 10, 2016 1:55 pm

Re: Error: Could not parse XML from https://serve_name/nagio

Post by taandrews »

Indeed! Thank you!
Locked