Confused on how this is working with out nrpe...

Sean McAfee smcafee at collaborativefusion.com
Tue Nov 11 19:20:28 CET 2008


Charlie Reddington wrote:
> Sure thing. I think I am missing something as it's not working how I  
> remembered it working.
>
>
> -------------------
>
> define service{
>          use                             generic-service         ;  
> Name of service template to use
>          host_name                       master,prodws01,prodws02
>          service_description             Root Partition
> 	check_command			check_local_disk!20%!10%!/
>          }
>
> Now looking at this, I'm able to get successful checks, with out using  
> nrpe on the host server. So my question comes back to, how is this  
> working when I thought you had to define commands like  this
>
> define service{
>          use                             generic-service
>          host_name                       master,prodws01,prodws02
>          service_description             Current Load
> 	check_command			check_nrpe!check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
>          }
You're missing See the "check_local_*" names in the service 
definitions?  Somewhere you've defined something like:

define command{
         command_name    check_local_disk
         command_line    $USER1$/check_nrpe2 -H $HOSTNAME$ -c check_disk -a $ARG1$ $ARG2$
         }

That is how NRPE is getting invoked.  Look closer at your templates.

-- 
Sean McAfee
System Engineer

Collaborative Fusion, Inc.
 smcafee at collaborativefusion.com
 412-422-3463 x 4025

5849 Forbes Avenue
Pittsburgh, PA 15217

****************************************************************
IMPORTANT: This message contains confidential information
and is intended only for the individual named. If the reader of
this message is not an intended recipient (or the individual
responsible for the delivery of this message to an intended
recipient), please be advised that any re-use, dissemination,
distribution or copying of this message is prohibited. Please
notify the sender immediately by e-mail if you have received
this e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or
error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses. The
sender therefore does not accept liability for any errors or
omissions in the contents of this message, which arise as a
result of e-mail transmission.
****************************************************************




IMPORTANT: This message contains confidential information and is intended only for the individual named. If the reader of this message is not an intended recipient (or the individual responsible for the delivery of this message to an intended recipient), please be advised that any re-use, dissemination, distribution or copying of this message is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
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





More information about the Users mailing list