NRDP in Linux - NO REQUEST HANDLER

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
sidserra
Posts: 28
Joined: Thu Jul 24, 2014 6:56 am

NRDP in Linux - NO REQUEST HANDLER

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NRDP in Linux - NO REQUEST HANDLER

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
sidserra
Posts: 28
Joined: Thu Jul 24, 2014 6:56 am

Re: NRDP in Linux - NO REQUEST HANDLER

Post 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?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: NRDP in Linux - NO REQUEST HANDLER

Post by slansing »

Ahh, the Ubuntu 10.04 installation was messed up? How do things look now that you have gotten around that hurdle?
sidserra
Posts: 28
Joined: Thu Jul 24, 2014 6:56 am

Re: NRDP in Linux - NO REQUEST HANDLER

Post 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?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: NRDP in Linux - NO REQUEST HANDLER

Post 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.
Former Nagios employee
sidserra
Posts: 28
Joined: Thu Jul 24, 2014 6:56 am

Re: NRDP in Linux - NO REQUEST HANDLER

Post 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.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: NRDP in Linux - NO REQUEST HANDLER

Post 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?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
sidserra
Posts: 28
Joined: Thu Jul 24, 2014 6:56 am

Re: NRDP in Linux - NO REQUEST HANDLER

Post 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? :)
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NRDP in Linux - NO REQUEST HANDLER

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked