Page 5 of 5
Re: Error: Could not parse XML from https://serve_name/nagio
Posted: Tue Jan 03, 2017 4:44 pm
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!
Re: Error: Could not parse XML from https://serve_name/nagio
Posted: Tue Jan 03, 2017 4:53 pm
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
Re: Error: Could not parse XML from https://serve_name/nagio
Posted: Tue Jan 03, 2017 5:00 pm
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.
Re: Error: Could not parse XML from https://serve_name/nagio
Posted: Tue Jan 03, 2017 5:05 pm
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?
Re: Error: Could not parse XML from https://serve_name/nagio
Posted: Tue Jan 03, 2017 5:07 pm
by taandrews
Indeed! Thank you!