$_SERVER[REQUEST_URI] is syntactically incorrect and AFAIK will not run on a default installation of PHP 5. The array index is a string so it needs to be passed strings. I know PHP 4 converted undefined constants to strings inside the square brackets but it's still not good practice.
EDIT: Well unless you define a constant called REQUEST_URI in your example script, $_SERVER['REQUEST_URI'] is the standard method and what you should be using.
$_SERVER["REQUEST_URI"] also works and while not wrong is slightly more work for the PHP interpreter so unless you need to parse it for variables it should not be used.
1. Verify if the server already has the check_mk agent installed, using the command below:
[[email protected] ~]# rpm -qa | grep check_mk
If this returns any matching package name, this means that the check_mk agent is already installed.
2. If no result is returned by the command above, check_mk is missing, and can be set up as per the steps below:
---------------------------------
[[email protected] ~]# cd /usr/local/src
[[email protected] ~]# wget http://mathias-kettner.de/download/check_mk-agent-1.1.10p3-1.noarch.rpm OR
[[email protected] ~]# wget http://mathias-kettner.com/download/check_mk-agent-1.2.0p3-1.noarch.rpm
[[email protected] ~]# yum --nogpgcheck -y localinstall check_mk-agent-1.1.10p2-1.noarch.rpm xinetd
[[email protected] ~]# sed -i '42 i only_from = 17x.x.x.x' "/etc/xinetd.d/check_mk"
[[email protected] ~]# /etc/init.d/xinetd reload
---------------------------------
3. Allow the inbound TCP port 6556 in the firewall.
Now this node can be added in the check_mk admin panel on the Nagios server.