Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
As for displaying the source code, you probably have short tags disabled in your php. Try changing the first line of /usr/local/nrdp/clients/send_nrdp.php from this:
<Directory "/usr/local/nrdp">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
# AuthName "NRDP"
# AuthType Basic
AuthUserFile /usr/local/nrdp/htpasswd.users
Require valid-user
</Directory>
Alias /nrdp "/usr/local/nrdp/server"
<Directory /usr/local/nrdp/server>
Order allow,deny
Allow from all
</Directory>
I also changed permission of /usr/local/nrdp/server
PHP Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /usr/local/nrdp/clients/send_nrdp.php on line 368
PHP Warning: fsockopen(): unable to connect to :80 (php_network_getaddresses: getaddrinfo failed: Name or service not known) in /usr/local/nrdp/clients/send_nrdp.php on line 368
Is it required that you have basic authentication on your NRDP directory? That seems to be the issue here and if it is not needed the script should work with the normal http://192.168.1.5/nrdp address.