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

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

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

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

Post by tmcdonald »

Where is this error appearing? And is this a Fusion issue or is this in XI?
Former Nagios employee
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 »

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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

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

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
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 »

I dont have anything in /usr/local/nagios/libexec/
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

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

Post 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.
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 »

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
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

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

Post 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.
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 »

Its not a matter of file size as it is that my environment is sandboxed.
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 »

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?
Locked