Page 1 of 3
Setup Issues NRDS
Posted: Thu May 03, 2012 4:16 pm
by mbowden
I am having issues with the NRDS Config Manager setup. I finally got the components on the server to function correctly I think. However when I go to the client and run the commands specified to retireve the appropriate plug-ins from the server I recieve the following error on the client
"Updated config to version 0.1 Error plugin /usr/local/nagios/libexec/check_ping could not be retrieved from the NRDP server"
My suspicion is that I have to tell the server to allow connections from the clients to retrieve the plugins somewhere in a config file. Not sure which one.
Firewall is off
I can telnet from the server to itself on 5666 and get a connection
I can telnet from the client and get a connection on 5666
the path /usr/local/nagios/libexec/ exists on the server and the fiels exist there.
Logs don't seem to show anything
Re: Setup Issues NRDS
Posted: Thu May 03, 2012 4:38 pm
by scottwilkerson
The client will make the connection via http or https to the address in the config.
If you run the following from the client you will see where the connection is made
Code: Select all
cat /usr/local/nrdp/clients/nrds/nrds.cfg |grep URL=
You should be able to take that http address in a curl request on the client and get some return
What OS is your client?
What architecture?
Re: Setup Issues NRDS
Posted: Fri May 04, 2012 7:29 am
by mbowden
The curl returns
[root@prod-bnrbat clients]# curl http://<nagios server IP>/nrdp/
<strong>Submit Nagios Command:</strong><br>
<form action="" method="get">
<input type="hidden" name="cmd" value="submitcmd">
Token: <input type="text" name="token" value="" size="15"><br>
Command: <input type="text" name="command" size="50" value="DISABLE_HOST_NOTIFICATIONS;somehost"><br>
<input type="submit" name="btnSubmit" value="Submit Command">
</form>
<hr>
<strong>Submit Check Data</strong><br>
<form action="" method="post">
<input type="hidden" name="cmd" value="submitcheck">
Token: <input type="text" name="token" value="" size="15"><br>
Check Data:<br>
<textarea cols="80" rows="15" name="XMLDATA">
<?xml version='1.0'?>
<checkresults>
<checkresult type='host'>
<hostname>somehost</hostname>
<state>0</state>
<output>Everything looks okay!|perfdata</output>
</checkresult>
<checkresult type='service'>
<hostname>somehost</hostname>
<servicename>someservice</servicename>
<state>1</state>
<output>WARNING: Danger Will Robinson!|perfdata</output>
</checkresult>
</checkresults>
</textarea><br>
<input type="submit" name="btnSubmit" value="Submit Check Data">
</form>
*******
The server log entry
<nagios server IP> - - [04/May/2012:08:26:00 -0400] "GET /nrdp/ HTTP/1.1" 200 1243 "-" "curl/7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5"
The client is RHEL5/64
Re: Setup Issues NRDS
Posted: Fri May 04, 2012 7:48 am
by scottwilkerson
We need to check some permissions on the client. Lets run
and report the output.
If it says the directory doesn't exist, this may be the problem, in that case run
Code: Select all
mkdir /usr/local/nagios/libexec
chown nagios:nagios /usr/local/nagios/libexec
Re: Setup Issues NRDS
Posted: Fri May 04, 2012 7:54 am
by mbowden
That seems ok
[root@prod-bnrbat clients]# ls -ld /usr/local/nagios/libexec
drwxr-xr-x 2 nagios nagios 4096 May 3 15:44 /usr/local/nagios/libexec
Re: Setup Issues NRDS
Posted: Fri May 04, 2012 9:12 am
by scottwilkerson
Ok, one more on the server
Code: Select all
ls -l /usr/local/nrdp/plugins/Linux/x86_64/check_ping
Re: Setup Issues NRDS
Posted: Fri May 04, 2012 9:48 am
by mbowden
-rw-r--r-- 1 nagios nagios 99658 May 3 14:49 /usr/local/nrdp/plugins/Linux/x86_64/check_ping
Re: Setup Issues NRDS
Posted: Fri May 04, 2012 10:37 am
by scottwilkerson
This is odd, can I have you run
Code: Select all
/usr/local/nrdp/clients/nrds/nrds_updater.sh -f
Re: Setup Issues NRDS
Posted: Fri May 04, 2012 1:08 pm
by mbowden
[root@prod-bnrbat clients]# /usr/local/nrdp/clients/nrds/nrds_updater.sh -f
Updated config to version 0.1
Error plugin /usr/local/nagios/libexec/check_ping could not be
retrieved from the NRDP server. Check NRDS plugin directory.
Error plugin /usr/local/nagios/libexec/check_users could not be
retrieved from the NRDP server. Check NRDS plugin directory.
Error plugin /usr/local/nagios/libexec/check_load could not be
retrieved from the NRDP server. Check NRDS plugin directory.
Error plugin /usr/local/nagios/libexec/check_disk could not be
retrieved from the NRDP server. Check NRDS plugin directory.
Re: Setup Issues NRDS
Posted: Fri May 04, 2012 2:01 pm
by scottwilkerson