I tried this on our old server. I have more control over this old server and I can get out via proxy via CNTLM without having to submit a ticket to the server guys. If I can get it working here, I will have to submit a ticket to the server guys to have them open up the new server for the installs and I will have to provide them with step-by-step instructions.
Here is what I've been able to do so far on the old server:
Uploaded the nrdsconfigmanager.zip to the 'Manage Components' page and followed the resulting instructions:
Code: Select all
[root@nagiosxivm ~]# cd /usr/local/nagiosxi/html/includes/components/nrdsconfigmanager
[root@nagiosxivm nrdsconfigmanager]# chmod +x installnrds
[root@nagiosxivm nrdsconfigmanager]# ./installnrds
wget: Unknown command âproxy_usernameâ
--2013-04-01 14:19:08-- http://assets.nagios.com/downloads/nrdp/nrds.tar.gz
Resolving proxy.company.org... xxx.xxx.xxx.xxx
Connecting to proxy.company.org|xxx.xxx.xxx.xxx|:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 19841685 (19M) [application/x-gzip]
Saving to: ânrds.tar.gzâ
100%[======================================>] 19,841,685 9.65M/s in 2.0s
2013-04-01 14:19:14 (9.65 MB/s) - ânrds.tar.gzâ
##################################
#
# Adding NRDS to NRDP Server
#
##################################
copying files...
Updating permissions...
updating NRDP server config...
##################################
#
# NRDS update complete.
# You will also want to install the NRDS Config Manager
# component if you have not done so already.
#
##################################
NRDS Server component installed sucessfully
I now have the NRDS Config Manager menu item under the CCM -> Monitoring Config section. I was able to copy the token that is provided here for use in the config.inc.php file for the NRDP server below.
Now to install & configure the NRDP server:
Code: Select all
[root@nagiosxivm nrdsconfigmanager]# cd /tmp
[root@nagiosxivm tmp]# wget http://assets.nagios.com/downloads/nrdp/nrdp.zip
wget: Unknown command âproxy_usernameâ
--2013-04-01 14:30:21-- http://assets.nagios.com/downloads/nrdp/nrdp.zip
Resolving proxy.company.org... xxx.xxx.xxx.xxx
Connecting to proxy.company.org|xxx.xxx.xxx.xxx|:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 16664 (16K) [application/zip]
Saving to: ânrdp.zipâ
100%[===================================================================================================================>] 16,664 --.-K/s in 0s
2013-04-01 14:30:21 (125 MB/s) - ânrdp.zipâ
[root@nagiosxivm tmp]# unzip nrdp.zip
Archive: nrdp.zip
creating: nrdp/
inflating: nrdp/CHANGES.TXT
creating: nrdp/clients/
inflating: nrdp/clients/send_nrdp.php
inflating: nrdp/install-html
inflating: nrdp/INSTALL.TXT
inflating: nrdp/LICENSE.TXT
inflating: nrdp/nrdp.conf
creating: nrdp/server/
inflating: nrdp/server/config.inc.php
creating: nrdp/server/includes/
inflating: nrdp/server/includes/constants.inc.php
inflating: nrdp/server/includes/utils.inc.php
inflating: nrdp/server/index.php
creating: nrdp/server/plugins/
creating: nrdp/server/plugins/nagioscorecmd/
inflating: nrdp/server/plugins/nagioscorecmd/nagioscorecmd.inc.php
creating: nrdp/server/plugins/nagioscorepassivecheck/
inflating: nrdp/server/plugins/nagioscorepassivecheck/nagioscorepassivecheck.inc.php
[root@nagiosxivm tmp]# mkdir /usr/local/nrdp
mkdir: cannot create directory `/usr/local/nrdp': File exists
[root@nagiosxivm tmp]# cd nrdp
[root@nagiosxivm nrdp]# cp -r * /usr/local/nrdp
cp: overwrite `/usr/local/nrdp/CHANGES.TXT'? y
cp: overwrite `/usr/local/nrdp/clients/send_nrdp.php'? y
cp: overwrite `/usr/local/nrdp/install-html'? y
cp: overwrite `/usr/local/nrdp/INSTALL.TXT'? y
cp: overwrite `/usr/local/nrdp/LICENSE.TXT'? y
cp: overwrite `/usr/local/nrdp/nrdp.conf'? y
cp: overwrite `/usr/local/nrdp/server/config.inc.php'? y
cp: overwrite `/usr/local/nrdp/server/includes/utils.inc.php'? y
cp: overwrite `/usr/local/nrdp/server/includes/constants.inc.php'? y
cp: overwrite `/usr/local/nrdp/server/index.php'? y
cp: overwrite `/usr/local/nrdp/server/plugins/nagioscorepassivecheck/nagioscorepassivecheck.inc.php'? y
cp: overwrite `/usr/local/nrdp/server/plugins/nagioscorecmd/nagioscorecmd.inc.php'? y
[root@nagiosxivm nrdp]# chown -R nagios.nagios /usr/local/nrdp
[root@nagiosxivm nrdp]# vi /usr/local/nrdp/server/config.inc.php
.
.
.
// an array of one or more tokens that are valid for this NRDP install
// a client request must contain a valid token in order for the NRDP to response or honor the request
// NOTE: tokens are just alphanumeric strings - make them hard to guess!
$cfg['authorized_tokens'] = array(
"token_example",
);
.
.
.
[root@nagiosxivm nrdp]# cp nrdp.conf /etc/httpd/conf.d
cp: overwrite `/etc/httpd/conf.d/nrdp.conf'? y
[root@nagiosxivm nrdp]# /etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
Now, when I go to the NRDP server page and test the checks with the token I entered into the config.inc.php page, I get OKs in return.
However, when I go back to the NRDS Config Manager page, I get the same error message:
Code: Select all
You must have the version 1.2 or greater of the NRDP Server before you can create a NRDS config.
When I check the bottom of the /usr/local/nrdp/server/config.inc.php file, I see the following again:
Code: Select all
///////// DONT MODIFY ANYTHING BELOW THIS LINE /////////
$cfg['product_name']='nrdp';
$cfg['product_version']='1.0'
?>