Page 1 of 5
Error: Could not parse XML from https://serve_name/nagiosxi/
Posted: Mon Dec 19, 2016 5:33 pm
by taandrews
I am getting the following error from a server that has been running for months:
Error: Could not parse XML from https://serve_name/nagiosxi/ ()
Any help will be greatly appreciated.
T
Re: Error: Could not parse XML from https://serve_name/nagio
Posted: Mon Dec 19, 2016 5:35 pm
by tmcdonald
Where is this error appearing? And is this a Fusion issue or is this in XI?
Re: Error: Could not parse XML from https://serve_name/nagio
Posted: Mon Dec 19, 2016 6:10 pm
by taandrews
XI Server A is monitoring XI Server B. XI Server B is throwing the error in Service Status Details for the following services:
I/O Wait
Load
Nagios XI Daemons
Nagios XI Jobs
On the Admin tab XI System Component Status, all service are running green.
Re: Error: Could not parse XML from https://serve_name/nagio
Posted: Tue Dec 20, 2016 2:27 pm
by tgriep
Can you login to Server A as root, run the check in debug mode and post the output here to we can view it?
Replace xxx.xxx.xxx.xxx with the IP address of the server that is generating the error and change the username and ticket to the user account from the ServerB's nagios account.
Code: Select all
/usr/bin/php /usr/local/nagios/libexec/check_nagiosxiserver.php --address=xxx.xxx.xxx.xxx --url=http://xxx.xxx.xxx.xxx/nagiosxi/ --username=nagiosadmin --ticket="password" --mode=daemons --debug=1
The ticket number is the API key for that user and you can get that by logging in to the server and then clicking on the user name in the top right corner if the GUI.
There, you will find the API key you need to use for the ticket option.
Re: Error: Could not parse XML from https://serve_name/nagio
Posted: Tue Dec 20, 2016 3:01 pm
by taandrews
I dont have anything in /usr/local/nagios/libexec/
Re: Error: Could not parse XML from https://serve_name/nagio
Posted: Tue Dec 20, 2016 3:10 pm
by dwhitfield
taandrews wrote:I dont have anything in /usr/local/nagios/libexec/
Ok, that's not normal. On the machine that is not working can you PM me your Profile? If they are both not working, send them both. You can download it by going to Admin > System Config > System Profile and click the Download Profile button towards the top. If for whatever reason you *cannot* download the profile, please put the output of View System Info (5.3.4+, Show Profile if older) in the thread (that will at least get us some info).
After you PM the profile, please update this thread. Updating this thread is the only way for it to show back up on our dashboard.
Re: Error: Could not parse XML from https://serve_name/nagio
Posted: Tue Dec 20, 2016 3:35 pm
by taandrews
i got the command to execute. Unfortunately I would have to hand type the output as there is no way to paste it here. I ran this on a working server and I see there is alot of output.
For the server that is NOT working I have:
Array
(
[hearders] => Array
(
)
[body] =>
EVERYTHING ABOVE IS EMPTY
EVERYTHING BELOW IN THE [INFO] BLOCK HAS 0 FOR THE VALUE EXCEPT [namelookup_time] => 0.0000128, [connect_time] => 0.000 555[download_content_legnth] => -1, [upload_content_legnth] => -1
[info] => Array
Re: Error: Could not parse XML from https://serve_name/nagio
Posted: Tue Dec 20, 2016 3:47 pm
by dwhitfield
taandrews wrote: Unfortunately I would have to hand type the output as there is no way to paste it here.
If the output is too large for the forums, you can email it. I will PM you and then after you email it, please update this thread.
Re: Error: Could not parse XML from https://serve_name/nagio
Posted: Tue Dec 20, 2016 4:02 pm
by taandrews
Its not a matter of file size as it is that my environment is sandboxed.
Re: Error: Could not parse XML from https://serve_name/nagio
Posted: Tue Dec 20, 2016 4:52 pm
by taandrews
If I have configuration errors will that command still return data properly?
Someone hosed up the server and there are missing .cfg files for services and hosts. If you click Apply Configuration it generates errors obviously. Will the missing .cfg file cause problems with the command that you had me run?