[Nagiosplug-help] check_http keeps coming up with 404

decon brody decon.brody at gmail.com
Wed Sep 9 23:20:39 CEST 2009


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20090909/2290de97/attachment.html>


More information about the Help mailing list