Page 1 of 3

NRDP in Linux - NO REQUEST HANDLER

Posted: Thu Jul 24, 2014 11:27 am
by sidserra
Hi there,

excuse me my poor English... :)

I am using Ubuntu 10.04 and I installed in my PC the Nagios Core 3.5.1, Nagios Plugins 2.0.3 and the Nagios NRDP Add-on to submit passive checks to my Nagios server; I used the "compiled mode" (install from source code) to install everything following the steps of the installation manual for nagios. Everything is working fine, but when I use the nrpe address (http://servernagios/nrpd) to test the passive submits appears this:
NO REQUEST HANDLER
I tested this in a Ubuntu Server 14.04 with the same instalation mode (from source code) and all worked fine, but I can't to upgrade the server to a newest one for now, can you help me? :D

Thx any help.

Re: NRDP in Linux - NO REQUEST HANDLER

Posted: Thu Jul 24, 2014 1:35 pm
by lmiltchev
Can you provide us with a link to the document that you followed for installing NRDP?
What do you see when you access your NRDP server at http://<ipaddress>/nrdp/? Can you show us a screenshot?

Re: NRDP in Linux - NO REQUEST HANDLER

Posted: Thu Jul 24, 2014 2:23 pm
by sidserra
Thanks to replay, lmiltchev.

So, I installed NRDP following the install instructions inside the nrdp zip file that I downloaded from Nagios.org/add-ons. The API shows up exactly what appears here when access the url http://nagiosserver/nrdp/:
In this pdf file there is a picture of the API Window where we can test the nrdp passive check. Just to click in Submit Check Data (without to fill any data except the token) and the message must be "2 commands submited", but what appears is "NO REQUEST HANDLER".

As I wrote, I installed the Nagios and NRDP in a server with Ubuntu 14.04 and the nrdp works fine, but not in a 10.04 one...

ADD>> I think that this server is broken, I done a fresh install with the Ubuntu 10.04 in my pc and the nrdp is working fine...
lmiltchev wrote:Can you provide us with a link to the document that you followed for installing NRDP?
What do you see when you access your NRDP server at http://<ipaddress>/nrdp/? Can you show us a screenshot?

Re: NRDP in Linux - NO REQUEST HANDLER

Posted: Fri Jul 25, 2014 10:45 am
by slansing
Ahh, the Ubuntu 10.04 installation was messed up? How do things look now that you have gotten around that hurdle?

Re: NRDP in Linux - NO REQUEST HANDLER

Posted: Sat Jul 26, 2014 6:36 am
by sidserra
Well, I really don't know what's happening, but I will install a Ubuntu server version in my PC to figure out if this problem is with installed O.S. or if is a mess in the server installation. Whatever, this server will be reinstalled soon with a new Ubuntu version, but this is an "easy solution", because if this problem appears again, we're still not sure what is happening... :)

Oh, yes, I forgot to write that my installed O.S. is the Ubuntu Desktop, I will install here the same O.S. in server to see if this problem appears too; if yes, that's the problem...
slansing wrote:Ahh, the Ubuntu 10.04 installation was messed up? How do things look now that you have gotten around that hurdle?

Re: NRDP in Linux - NO REQUEST HANDLER

Posted: Mon Jul 28, 2014 10:20 am
by tmcdonald
Graphical installs have certainly caused problems in the past, so I wouldn't doubt it. But let's let the results speak for themselves. We'll keep this open until you have news about the reinstall.

Re: NRDP in Linux - NO REQUEST HANDLER

Posted: Mon Jul 28, 2014 11:02 am
by sidserra
As I wrote, i tried all Ubuntu Version (10.04 and 14.04, both desktop version) in my pc and all worked fine (with grafical interface). Now, with the 10.04 server intalled in my pc, the nrdp resource worked fine too. So, this is a broken installation in the server, when I fix it, I will report the results here.

Re: NRDP in Linux - NO REQUEST HANDLER

Posted: Mon Jul 28, 2014 1:08 pm
by sreinhardt
well if nagios is not on your local desktop and only on a dedicated nagios system, it would make sense that nrdp would not be able to find the command file. I know you've stated it a few times, but just to be 100% both nagios core and nrpe were installed from source? If so could you send your /usr/local/nagios/etc/nagios.cfg, /usr/local/nrdp/nrdp.cfg, and /usr/local/nrdp/server/config.inc.php?

Re: NRDP in Linux - NO REQUEST HANDLER

Posted: Wed Jul 30, 2014 12:19 pm
by sidserra
Finally I figured out what was happening with NRDP Server. The version of the Ubuntu that was installed on the server running nrdp server and nagios core was a virtual machine, not a phisical installation. Now we installed another Ubuntu Server virtual machine version (I mean, a virtual machine to run as close to a real phisical installation) and all is working fine, with the nagios core receiving through nrdp the passive checks by the remote machine. Now I need to put the script to run in Crontab, I tried sometimes but with no results. The command is:

./send_nrdp.sh -u "http://serverip/nrdp" -t "nrdptoken" -H "senderhost" -S "statetoshow" -o "messagetoshow."
This command works fine in a console shell, sending the passive check to nrdp server but not in Crontab (I am sure that I am doing something wrong, hehehe...).

My Crontab is (to run the command once per minute):
1 * * * * send_nrdp.sh -u "http://serverip/nrdp" -t "nrdptoken" -H "senderhost" -S "statetoshow" -o "messagetoshow."
This script doesn't need root privileges to run, a simple user is able to run it.

Any help? :)

Re: NRDP in Linux - NO REQUEST HANDLER

Posted: Thu Jul 31, 2014 2:21 pm
by lmiltchev
Modify the crontab as such (provide the full path to "send_nrdp.sh"):

Code: Select all

1 * * * * /full/path/to/the/send_nrdp.sh -u "http://serverip/nrdp" -t "nrdptoken" -H "senderhost" -S "statetoshow" -o "messagetoshow."
Hope this helps.