Discussion:
[Nagios-users] Passive checks sent with send_nrdp.php not being processed by nagios
Dan Sanville
2011-09-09 19:21:35 UTC
Permalink
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#ffffff">
<font face="Courier New, Courier, monospace">Good afternoon,<br>
<br>
I am trying to use NRDP, specifically send_nrdp.php from a nagios
client system, to send passive checks to a nagios core server and
no matter what I try nagios never receives my passive checks. I
was wondering if anyone has successfully setup NRDP to send
passive checks to nagios and if they can offer any suggestions.
Also the only real documentation I can find is a four page "NRDP -
Overview" pdf and I was wondering if someone has or can point me
to more in depth documentation?<br>
<br>
I followed the instructions in the four page pdf and nrdp seemed
to setup just fine. <a class="moz-txt-link-freetext" href="http://abc.def.ghi.jkl/nrdp">http://abc.def.ghi.jkl/nrdp</a> brings up the web
page exactly as the documentation shows. I filled out the webpage,
added in my token, hit submit and I received the following:<br>
<br>
&lt;result&gt;<br>
&lt;status&gt;0&lt;/status&gt;<br>
&lt;message&gt;OK&lt;/message&gt;<br>
&#8722;<br>
&lt;meta&gt;<br>
&lt;output&gt;2 checks processed.&lt;/output&gt;<br>
&lt;/meta&gt;<br>
&lt;/result&gt;<br>
<br>
<br>
I am not 100% sure this is what I should receive but it looked
good. On the client I ran the following command:<br>
<br>
usr/bin/php /usr/local/nrdp/clients/send_nrdp.php --url=<a class="moz-txt-link-freetext" href="http://">http://</a></font><font
face="Courier New, Courier, monospace">abc.def.ghi.jkl</font><font
face="Courier New, Courier, monospace">/nrdp --token=mysecrettoken
--host=nagios-test-client --service=Check_Passive --state=2
--output="test1234567890"<br>
<br>
via tcpdump looking at port 80 I see the command sends data to my
nagios server but from here I am at a loss for what happens. My
passive checks stays in "unknown" status and I see very little in
nagios.log. <br>
<br>
I would be grateful for any insight as to what is supposed to
happen, what I should be looking for in a logfile, or any
suggestions/thoughts.<br>
<br>
thanks<br>
Dan Sanville<br>
<br>
<br>
<br>
</font>
<pre class="moz-signature" cols="78">--
Dan Sanville
System Administrator
MIT Lincoln Laboratory
244 Wood Street, Lexington, MA 02420
Office: 781-981-1601
</pre>
</body>
</html>
Mclean, Adam
2011-09-09 19:32:16 UTC
Permalink
We've been using NRDP here for months now. No concerns.

Try adding a trailing / at the end of your URL.

As an FYI I recently posted a perl client that acts as a dropin replacement for send_ncsa to make the transition easier for nsca shops, or for shops that don't have php on their monitored hosts. It has some features that we've needed in nsca that weren't originally present like sending to multiple hosts, and caching failed result sends for retry later.

http://exchange.nagios.org/directory/Addons/Passive-Checks/send_nrdp-Perl-Client/details

________________________________

From: Dan Sanville [mailto:***@ll.mit.edu]
Sent: 2011, September, 09 3:22 PM
To: nagios-***@lists.sourceforge.net
Subject: [Nagios-users] Passive checks sent with send_nrdp.php not beingprocessed by nagios


Good afternoon,

I am trying to use NRDP, specifically send_nrdp.php from a nagios client system, to send passive checks to a nagios core server and no matter what I try nagios never receives my passive checks. I was wondering if anyone has successfully setup NRDP to send passive checks to nagios and if they can offer any suggestions. Also the only real documentation I can find is a four page "NRDP - Overview" pdf and I was wondering if someone has or can point me to more in depth documentation?

I followed the instructions in the four page pdf and nrdp seemed to setup just fine. http://abc.def.ghi.jkl/nrdp brings up the web page exactly as the documentation shows. I filled out the webpage, added in my token, hit submit and I received the following:

<result>
<status>0</status>
<message>OK</message>

<meta>
<output>2 checks processed.</output>
</meta>
</result>


I am not 100% sure this is what I should receive but it looked good. On the client I ran the following command:

usr/bin/php /usr/local/nrdp/clients/send_nrdp.php --url=http://abc.def.ghi.jkl/nrdp --token=mysecrettoken --host=nagios-test-client --service=Check_Passive --state=2 --output="test1234567890"

via tcpdump looking at port 80 I see the command sends data to my nagios server but from here I am at a loss for what happens. My passive checks stays in "unknown" status and I see very little in nagios.log.

I would be grateful for any insight as to what is supposed to happen, what I should be looking for in a logfile, or any suggestions/thoughts.

thanks
Dan Sanville




--
Dan Sanville
System Administrator
MIT Lincoln Laboratory
244 Wood Street, Lexington, MA 02420
Office: 781-981-1601

_______________________________________________________________________

This email may be privileged and/or confidential, and the
sender does not waive any related rights and obligations.
Any distribution, use or copying of this email or the
information it contains by other than an intended recipient
is unauthorized. If you received this email in error,
please advise the sender (by return email or otherwise)
immediately. You have consented to receive the attached
electronically at the above-noted email address; please retain a
copy of this confirmation for future reference.

Ce courriel est confidentiel et protégé. L'expéditeur ne renonce
pas aux droits et obligations qui s'y rapportent. Toute diffusion,
utilisation ou copie de ce courriel ou des renseignements qu'il
contient par une personne autre que le (les) destinataire(s)
désigné(s) est interdite. Si vous recevez ce courriel par erreur,
veuillez en aviser l’expéditeur immédiatement, par retour de courriel
ou par un autre moyen. Vous avez accepté de recevoir le(s) document(s)
ci-joint(s) par voie électronique à l’adresse courriel indiquée ci-dessus;
veuillez conserver une copie de cette confirmation pour les fins de reference futur
Stanislas LEVEAU
2012-07-13 13:18:05 UTC
Permalink
Hi,

I am trying to use NRDP,


I followed the instructions in the four page pdf and nrdp seemed to
setup just fine. http://nagios-server/nrdp brings up the web page
exactly as the documentation shows. I filled out the webpage, added in
my token, hit submit and I received the following:

The first TEST is OK : DISABLE_HOST_NOTIFICATIONS;my-server

<result>
<status>0</status>
<message>OK</message>
</result>

Nagios LOG : [1342184689] EXTERNAL COMMAND:
DISABLE_HOST_NOTIFICATIONS;my-server


The second TEST on a service is NOT OK

<?xml version='1.0'?>
<checkresults>
<checkresult type='host'>
<hostname>my-server</hostname>
<state>0</state>
<output>Everything looks okay!|perfdata</output>
</checkresult>
<checkresult type='service'>
<hostname>my-server</hostname>
<servicename>Service-swap</servicename>
<state>1</state>
<output>WARNING: Danger Will Robinson!|perfdata</output>
</checkresult>
</checkresults>



<result>
<status>0</status>
<message>OK</message>
-
<meta>
<output>2 checks processed.</output>
</meta>
</result>


Nagios LOG : Nothing

And the service is always OKthen that should be WARNING <state>1</state>


an idea?
regards.
Stanislas LEVEAU
2012-07-25 15:01:47 UTC
Permalink
Hi,

thank you for reassuring me, is that someone has a success running NRDP?

Regards
Post by Dan Sanville
Hi,
I am trying to use NRDP,
I followed the instructions in the four page pdf and nrdp seemed to
setup just fine. http://nagios-server/nrdp brings up the web page
exactly as the documentation shows. I filled out the webpage, added in
The first TEST is OK : DISABLE_HOST_NOTIFICATIONS;my-server
<result>
<status>0</status>
<message>OK</message>
</result>
DISABLE_HOST_NOTIFICATIONS;my-server
The second TEST on a service is NOT OK
<?xml version='1.0'?>
<checkresults>
<checkresult type='host'>
<hostname>my-server</hostname>
<state>0</state>
<output>Everything looks okay!|perfdata</output>
</checkresult>
<checkresult type='service'>
<hostname>my-server</hostname>
<servicename>Service-swap</servicename>
<state>1</state>
<output>WARNING: Danger Will Robinson!|perfdata</output>
</checkresult>
</checkresults>
<result>
<status>0</status>
<message>OK</message>
-
<meta>
<output>2 checks processed.</output>
</meta>
</result>
Nagios LOG : Nothing
And the service is always OKthen that should be WARNING <state>1</state>
an idea?
regards.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Nagios-users mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
--
Stanislas LEVEAU
*Stanislas LEVEAU**

*Rectorat de Caen
168, rue Caponière
B.P. 6184
14061 CAEN Cedex
Direction des Systèmes d'Information de l'Académie de Caen
Département des infrastructures

***@ac-caen.fr
Tel : 02.31.30.17.86
Loading...