<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.18.3">
</HEAD>
<BODY>
Looking at what you have posted here your nagios server is doing a check_http and so your nrpe on the remote server is never hit or used.  (I'd also recommend changing it from check_http to avoid being confused which is your defined check and which is the nagios plugin)  If you want to hit the nrpe on remote server the command should likely be this:<BR>
<BR>
/etc/nagios/services_hosts/host1.cfg <BR>
define service{         <BR>
    use                             vc-service         ; Name of service template to use         <BR>
    host_name                       host1         <BR>
    service_description             check_http<BR>
     normal_check_interval           15         <BR>
   check_command                   check_nrpe!check_http<BR>
}<BR>
<BR>
Or if you want to not use check_nrpe the command you defined as<BR>
<BR>
define command{<BR>
         command_name    check_http <BR>
        command_line    $USER1$/check_http -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ <BR>
}<BR>
<BR>
Should be this<BR>
<BR>
define command{<BR>
         command_name    check_http <BR>
        command_line    $USER1$/check_http -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$  -u $arg3$<BR>
}<BR>
<BR>
and the check would be <BR>
<BR>
check_command                   check_http!5!10!ident.html<BR>
<BR>
That's how I see it.<BR>
<BR>
<BR>
<BR>
<BR>
On Wed, 2009-09-09 at 14:20 -0700, decon brody wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
    Hi all, I have the following configuration:
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    remote sever:
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    /etc/nagios/nrpe.cfg
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    command[check_http]=/usr/lib64/nagios/plugins/check_http -I xx.xx.xx.xxx -u ident.html -w 5 -c 20
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    (note: I have other checks on this server that are working just fine)
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    nagios server:
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    /etc/nagios/services_hosts/host1.cfg
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    define service{
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
            use                             vc-service         ; Name of service template to use
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
            host_name                       host1
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
            service_description             check_http
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
            normal_check_interval           15
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
            #check_command                   check_http!xx.xx.xx.xx!ident.html!5!20
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
            check_command                   check_http!5!10!ident.html
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
            }
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    I have the command defined here:
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    /etc/nagios/commands_system_check.cfg
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    define command{
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
            command_name    check_http
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
            command_line    $USER1$/check_http -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
            }
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    And I get HTTP WARNING: HTTP/1.0 404 Not Found 
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    If I run it with check_nrpe manually it works fine:
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    usr/lib/nagios/plugins/check_nrpe -H n64_vc_de1 -c check_http
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    HTTP OK HTTP/1.0 200 OK - 176 bytes in 0.003 seconds |time=0.002549s;5.000000;20.000000;0.000000 size=176B;;;0
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    I've tried so many combinations of ip/host/order of arguments etc etc, I just can't get it working.  Any advice?  My growing headache would GREATLY appreciate it.
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    deek
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<PRE>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  <A HREF="http://p.sf.net/sfu/bobj-july">http://p.sf.net/sfu/bobj-july</A>
_______________________________________________ Nagiosplug-help mailing list <A HREF="mailto:Nagiosplug-help@lists.sourceforge.net">Nagiosplug-help@lists.sourceforge.net</A> <A HREF="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</A> ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>