Error: Could not parse XML from https://serve_name/nagiosxi/
Error: Could not parse XML from https://serve_name/nagiosxi/
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
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
Where is this error appearing? And is this a Fusion issue or is this in XI?
Former Nagios employee
Re: Error: Could not parse XML from https://serve_name/nagio
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.
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
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.
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.
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
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!
Re: Error: Could not parse XML from https://serve_name/nagio
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
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).taandrews wrote:I dont have anything in /usr/local/nagios/libexec/
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
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
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
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 wrote: Unfortunately I would have to hand type the output as there is no way to paste it here.
Re: Error: Could not parse XML from https://serve_name/nagio
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
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?
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?