Home Archives Nagios Labs Bash and Python NRDP Clients for Nagios

About Nagios Planet

Nagios Planet is an aggregation of news feeds from around the Nagios world. This site is maintained in cooperation with OpenXtra. Learn more...

Planet Feed

Nagios Planet Feed

Bash and Python NRDP Clients for Nagios

| Print |  E-mail
Nagios Labs
Thursday, 16 February 2012 19:50

Now available 2 new clients to send passive check results to Nagios Remote Data Processor (NRDP) server.

We have just released:
send_nrdp.sh Bash NRDP Client
send_nrdp.py Python NRDP Client

You no longer need to install PHP or Perl on your client machines to run passive checks with NRDP.  Both of these implementations can accept result piped from STDIN and you can change the delimiters to whatever you like.

STDIN results should be in the following order, for HOST checks:

HOSTNAME    STATE    OUTPUT

for SERVICE checks

HOSTNAME    SERVICENAME    STATE    OUTPUT

Additionally, the bash version can take an XML file of check results formatted like so:

<?xml version='1.0'?>
<checkresults>
<checkresult type="host" checktype="1">
  <hostname>YOUR_HOSTNAME</hostname>
  <state>0</state>
  <output>OK|perfdata=1.00;5;10;0</output>
</checkresult>
<checkresult type="service" checktype="1">
  <hostname>YOUR_HOSTNAME</hostname>
  <servicename>YOUR_SERVICENAME</servicename>
  <state>0</state>
  <output>OK|perfdata=1.00;5;10;0</output>
</checkresult>
</checkresults>

 

Read more: http://labs.nagios.com/2012/02/16/bash-and-python-nrdp-clients-for-nagios/

Bookmark and Share