Genious!
When I tried to install php-simplexml, I was prompted to pick a package since it was available from multiple sources.
root@myserver:/usr/local/nrdp# apt-get install php-simplexml
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php-simplexml is a virtual package provided by:
php7.2-xml 7.2.0~rc3-1+ubuntu16.04.1+deb.sury.org+1
php7.1-xml 7.1.10-1+ubuntu16.04.1+deb.sury.org+1
php7.0-xml 7.0.24-1+ubuntu16.04.1+deb.sury.org+1
php5.6-xml 5.6.31-6+ubuntu16.04.1+deb.sury.org+1
I installed the 5.6 version (I have dependencies on the old PHP version), restarted apache, and confirmed that I could finally submit commands using the Submit Check Data button.
apt install -y php5.6-xml
Thank you so much for the help. I seriously doubt I would have been able to solve this one on my own.
What did you see that lead you down the path of installing a php-xml package?
NRDP HTTP Error 500 for Submit Check Data
-
- Posts: 27
- Joined: Wed Apr 12, 2017 7:19 pm
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: NRDP HTTP Error 500 for Submit Check Data
On my server I received this in /var/log/apache2/error.log
Really Call to undefined function simplexml_load_string() was the tip.
I was on a 16.04 machine but should be similar.
Glad you got it working!
Code: Select all
[Tue Oct 03 14:15:16.175821 2017] [:error] [pid 27755] [client 192.168.5.215:65245] PHP Fatal error: Uncaught Error: Call to undefined function simplexml_load_string() in /usr/local/nrdp/server/plugins/nagioscorepassivecheck/nagioscorepassivecheck.inc.php:62\nStack trace:\n#0 /usr/local/nrdp/server/plugins/nagioscorepassivecheck/nagioscorepassivecheck.inc.php(24): nagioscorepassivecheck_submit_check_data()\n#1 /usr/local/nrdp/server/includes/utils.inc.php(308): nagioscorepassivecheck_process_request('PROCESS_REQUEST', Array)\n#2 /usr/local/nrdp/server/index.php(49): do_callbacks('PROCESS_REQUEST', Array)\n#3 /usr/local/nrdp/server/index.php(20): route_request()\n#4 {main}\n thrown in /usr/local/nrdp/server/plugins/nagioscorepassivecheck/nagioscorepassivecheck.inc.php on line 62, referer: http://192.168.3.189/nrdp/
I was on a 16.04 machine but should be similar.
Glad you got it working!