nrdp and vmw_sender
-
lkrzeminski
- Posts: 6
- Joined: Thu Jul 04, 2013 4:01 am
nrdp and vmw_sender
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.
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.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: nrdp and vmw_sender
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
http://assets.nagios.com/downloads/nagi ... ith_XI.pdf
-
lkrzeminski
- Posts: 6
- Joined: Thu Jul 04, 2013 4:01 am
Re: nrdp and vmw_sender
Hello Slansing
We've got nagios core and I followed this doc http://assets.nagios.com/downloads/nrdp ... erview.pdf to install NRDP.
We've got nagios core and I followed this doc http://assets.nagios.com/downloads/nrdp ... erview.pdf to install NRDP.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: nrdp and vmw_sender
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-
lkrzeminski
- Posts: 6
- Joined: Thu Jul 04, 2013 4:01 am
Re: nrdp and vmw_sender
Hello Slansing,
Please see below
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'
?>-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: nrdp and vmw_sender
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
http://assets.nagios.com/downloads/nrdp ... erview.pdf
-
lkrzeminski
- Posts: 6
- Joined: Thu Jul 04, 2013 4:01 am
Re: nrdp and vmw_sender
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.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: nrdp and vmw_sender
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.
-
lkrzeminski
- Posts: 6
- Joined: Thu Jul 04, 2013 4:01 am
Re: nrdp and vmw_sender
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.
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.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: nrdp and vmw_sender
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.
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.