Setup Issues NRDS

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mbowden
Posts: 93
Joined: Thu May 03, 2012 3:52 pm

Setup Issues NRDS

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Setup Issues NRDS

Post 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

Code: Select all

curl http://<your_server>/nrdp/
What OS is your client?

What architecture?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mbowden
Posts: 93
Joined: Thu May 03, 2012 3:52 pm

Re: Setup Issues NRDS

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Setup Issues NRDS

Post by scottwilkerson »

We need to check some permissions on the client. Lets run

Code: Select all

ls -ld /usr/local/nagios/libexec
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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mbowden
Posts: 93
Joined: Thu May 03, 2012 3:52 pm

Re: Setup Issues NRDS

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Setup Issues NRDS

Post by scottwilkerson »

Ok, one more on the server

Code: Select all

ls -l /usr/local/nrdp/plugins/Linux/x86_64/check_ping
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mbowden
Posts: 93
Joined: Thu May 03, 2012 3:52 pm

Re: Setup Issues NRDS

Post by mbowden »

-rw-r--r-- 1 nagios nagios 99658 May 3 14:49 /usr/local/nrdp/plugins/Linux/x86_64/check_ping
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Setup Issues NRDS

Post by scottwilkerson »

This is odd, can I have you run

Code: Select all

/usr/local/nrdp/clients/nrds/nrds_updater.sh -f
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mbowden
Posts: 93
Joined: Thu May 03, 2012 3:52 pm

Re: Setup Issues NRDS

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Setup Issues NRDS

Post by scottwilkerson »

On the server please run

Code: Select all

cat /etc/group|grep nagios
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked