Page 1 of 2

nrdp and vmw_sender

Posted: Thu Jul 04, 2013 4:07 am
by lkrzeminski
Hello,

I am having a problem with NRDP with Nagios and just thought some of you guys have more experience and can help me out.

We want to monitor alerts from the Vcentre. I already found a plugin that runs on the vcentre and sends data to nrdp. Everything seems to be working ok but nrdp is not sending data over to nagios. How do I get those alerts in the nagios itself ? Do I need to set up specific checks for that or is nrdp supposed to automatically inject them to the nagios i.e. Cpu usage on the ESXi host. Sending commands from nrdp gui seems to be working fine. I can see them in the nagios log. I am not entirely clear how it works so if anyone can help I will really appreciate.

Thank you.

Re: nrdp and vmw_sender

Posted: Mon Jul 08, 2013 11:56 am
by slansing
How did you install NRDP on that server? Did you point it's data to your nagios xi server and supply a valid token? This document should be able to get you off the ground and on the right path:

http://assets.nagios.com/downloads/nagi ... ith_XI.pdf

Re: nrdp and vmw_sender

Posted: Tue Jul 09, 2013 5:57 am
by lkrzeminski
Hello Slansing

We've got nagios core and I followed this doc http://assets.nagios.com/downloads/nrdp ... erview.pdf to install NRDP.

Re: nrdp and vmw_sender

Posted: Tue Jul 09, 2013 12:57 pm
by slansing
Can you share the following file from the remote NRDP system? You can remove sensitive information:

Code: Select all

/usr/local/nrdp/server/config.inc.php

Re: nrdp and vmw_sender

Posted: Wed Jul 10, 2013 2:16 am
by lkrzeminski
Hello Slansing,

Please see below

Code: Select all

[root@nagios server]# cat config.inc.php
<?php
// NRDP Config File
// Copyright (c) 2010 Nagios Enterprises, LLC.
// License: Nagios Open Software License <http://www.nagios.com/legal/licenses>
//
// $Id: config.inc.php 12 2010-06-19 04:19:35Z egalstad $


// an array of one or more tokens that are valid for this NRDP install
// a client request must contain a valid token in order for the NRDP to response or honor the request
// NOTE: tokens are just alphanumeric strings - make them hard to guess!
$cfg['authorized_tokens'] = array(
        //"mysecrettoken",  // <-- not a good token
        "OURTOKEN",   // <-- a better token (don't use this exact one, make your own)
        );

// do we require that HTTPS be used to access NRDP?
// set this value to 'false' to disable HTTPS requirement
$cfg["require_https"]=false;

// do we require that basic authentication be used to access NRDP?
// set this value to 'false' to disable basic auth requirement
$cfg["require_basic_auth"]=false;

// what basic authentication users are allowed to access NRDP?
// comment this variable out to allow all authenticated users access to the NRDP
$cfg["valid_basic_auth_users"]=array(
        "nrdpuser"
        );

// the name of the system group that has write permissions to the external command file
// this group is also used to set file permissions when writing bulk commands or passive check results
// NOTE: both the Apache and Nagios users must be a member of this group
$cfg["nagios_command_group"]="nagcmd";

// full path to Nagios external command file
$cfg["command_file"]="/usr/local/nagios/var/rw/nagios.cmd";

// full path to check results spool directory
$cfg["check_results_dir"]="/usr/local/nagios/var/spool/checkresults";

// full path to directory where temp scratch files can be written
// NOTE: the Apache user need to be able create files here, and the Nagios user needs to read/delete those same files, so the /tmp system directory won't work (it has a sticky bit on it)
$cfg["tmp_dir"]="/usr/local/nagios/var/tmp";


///////// DONT MODIFY ANYTHING BELOW THIS LINE /////////

$cfg['product_name']='nrdp';
$cfg['product_version']='1.0'


?>

Re: nrdp and vmw_sender

Posted: Wed Jul 10, 2013 11:31 am
by slansing
It looks like you did not finish the documentation you cited, I'd start at the top of page two and work your way down. I'm not sure what was missed but it's good to double check, including adding a token:

http://assets.nagios.com/downloads/nrdp ... erview.pdf

Re: nrdp and vmw_sender

Posted: Wed Jul 10, 2013 11:42 am
by lkrzeminski
I went thrugh that again and I am confident everything has been added. "OURTOKEN" in the config file is the token we used. I can successfully send requests from NRDP WebGUI and they do appear in the nagios.log.

Re: nrdp and vmw_sender

Posted: Wed Jul 10, 2013 12:12 pm
by slansing
It looks like you were running those commands from the nagios server as your terminal shows, you need to install NRDS on the system you intend to use that plugin on, not the Nagios server. As NRDS is a passive agent it must be placed at the location you would like to send data from.

Re: nrdp and vmw_sender

Posted: Wed Jul 10, 2013 12:22 pm
by lkrzeminski
I am using plugin - http://exchange.nagios.org/directory/Tu ... os/details

I've been talking to developer and he said nrdp need to be installed on the nagios. Plugin sends data to nrdp just fine, I don't seem to be able to get that data into nagios.

Many thanks for all your help.

Re: nrdp and vmw_sender

Posted: Thu Jul 11, 2013 10:14 am
by sreinhardt
If the plugin sends back to nrdp reciever on the nagios server and you seem to be seeing them in the logs, is the hostname being sent the same as the hostname for the nagios object you have a passive nrdp check setup for? The service name must also match.