[Nagiosplug-help] check_http keeps coming up with 404
David Gossage
dgossage at zacks.com
Wed Sep 9 23:42:50 CEST 2009
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:
/etc/nagios/services_hosts/host1.cfg
define service{
use vc-service ; Name of service
template to use
host_name host1
service_description check_http
normal_check_interval 15
check_command check_nrpe!check_http
}
Or if you want to not use check_nrpe the command you defined as
define command{
command_name check_http
command_line $USER1$/check_http -H $HOSTADDRESS$ -w $ARG1$ -c
$ARG2$
}
Should be this
define command{
command_name check_http
command_line $USER1$/check_http -H $HOSTADDRESS$ -w $ARG1$ -c
$ARG2$ -u $arg3$
}
and the check would be
check_command check_http!5!10!ident.html
That's how I see it.
On Wed, 2009-09-09 at 14:20 -0700, decon brody wrote:
> Hi all, I have the following configuration:
>
>
>
> remote sever:
> /etc/nagios/nrpe.cfg
> command[check_http]=/usr/lib64/nagios/plugins/check_http -I
> xx.xx.xx.xxx -u ident.html -w 5 -c 20
>
>
> (note: I have other checks on this server that are working just fine)
>
>
> nagios server:
> /etc/nagios/services_hosts/host1.cfg
> define service{
> use vc-service ; Name of
> service template to use
> host_name host1
> service_description check_http
> normal_check_interval 15
> #check_command check_http!xx.xx.xx.xx!
> ident.html!5!20
> check_command check_http!5!10!ident.html
> }
>
>
> I have the command defined here:
> /etc/nagios/commands_system_check.cfg
> define command{
> command_name check_http
> command_line $USER1$/check_http -H $HOSTADDRESS$ -w $ARG1$
> -c $ARG2$
> }
>
>
> And I get HTTP WARNING: HTTP/1.0 404 Not Found
>
>
> If I run it with check_nrpe manually it works fine:
> usr/lib/nagios/plugins/check_nrpe -H n64_vc_de1 -c check_http
> 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
>
>
> 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.
>
>
> deek
>
> ------------------------------------------------------------------------------
> 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. http://p.sf.net/sfu/bobj-july
> _______________________________________________ Nagiosplug-help mailing list Nagiosplug-help at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagiosplug-help ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20090909/11a0e996/attachment.html>
More information about the Help
mailing list