Nagios HTTP monitoring {Disarmed} {Fraud?}

Jerad Riggin jriggin at gmail.com
Fri Jun 22 19:26:55 CEST 2007


commands.cfg

# 'check_http' command definition
define command{
        command_name    check_http
        command_line    $USER1$/check_http -H $HOSTADDRESS$ $ARG1$ -a $ARG2$
        }

Here is an entry in services.cfg

define service{
        use                             basic-service
        name                            check-site
        notification_options            w,u,c,r
        check_command                   check_http!-H site.com -t 5 -a
admin:password -s "String"
        register                        0
        }


On 6/22/07, Marc Powell <marc at ena.com> wrote:
>
>
>
> > -----Original Message-----
> > From: Jerad Riggin [mailto:jriggin at gmail.com]
> > Sent: Friday, June 22, 2007 10:00 AM
> > To: Marc Powell
> > Cc: nagios-users at lists.sourceforge.net
> > Subject: Re: [Nagios-users] Nagios HTTP monitoring {Disarmed} {Fraud?}
> >
> > If I change the hosts.cfg from the IP of the server (10.10.10.7) to
> the
> > URL I'm specifying in services.cfg, it works fine.  The default site
> for
> > 10.10.10.7 is a CRM site which requires basic auth.  So even though
> i'm
> > specifying a URL in services.cfg, it looks like it's be overridden by
> the
> > hosts.cfg so it can't auth.  What is the point of the -H switch in
> > services.cfg if it always uses the IP for the host in hosts.cfg?  I
> tried
> > that format (-a admin:password) at the end of the check in
> services.cfg
> > but it still failed with unauthorized.
>
> It's looking more and more clear that your command{} definition doesn't
> do what you think it does. You don't usually specify switches such as -H
> and -a as part of the service definition. Perhaps you should post the
> host, service and relevant command definitions for us to look at. I know
> for a fact that check_http can and will work the way you want if
> properly called.
>
> --
> Marc
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070622/d3a98de2/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
-------------- next part --------------
_______________________________________________
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