nrdp and vmw_sender

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.
lkrzeminski
Posts: 6
Joined: Thu Jul 04, 2013 4:01 am

Re: nrdp and vmw_sender

Post by lkrzeminski »

Let me just clarify the whole set up.

We've got a Vcentre server that checks for specific conditions and if they met it executes plugin with token, nrdp server details and status of the check. On the nagios we do have hosts configured but I don't have the services on that host. I thought it'll passively add the service to nagios. If that's not the case how do I add those ? How should they be configured ? What command should they use ?

For example we do have a high cpu utilization on one of the ESXi host being monitored by the Vcentre. It then runs the script. Do I need to set up a service called exactly the same as the plugin sends ? Can you please confirm ?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: nrdp and vmw_sender

Post by sreinhardt »

Nagios will never dynamically generate new services, at least at this time. So a service definition for that host will need to be created. Something like below would work fine, obviously alter the details to fit your needs.

# service 'Passive check test'
define service{
use default-service
host_name [same as submitted via vsphere]
service_description [Service name you wish]
check_command check_dummy!3 "No Data from passive check"
max_check_attempts 1
active_checks_enabled 0
check_freshness [0 off, 1 on, entirely optional]
freshness_threshold [optional seconds for freshness checking if no passive result has been sent]
flap_detection_options n
contact_groups [contacts or groups are needed
stalking_options n
}

Yes it does need to be exactly as the plugin returns to nagios.
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.
Locked