Nagios HTTP monitoring

Jerad Riggin jriggin at gmail.com
Fri Jun 22 15:41:11 CEST 2007


I have a check_http command that works perfectly at the command prompt

./check_http -H lagarde -t 5 -s "LaGarde Intranet site"

However in nagios, check_http!-H lagarde -t 5 -s "LaGarde Intranet site"
still returns an unauthorized.  So basically why would it work in a command
prompt but not in nagios?  And what is the syntax for the -a (basic auth)
switch?  Thanks again for everyones help.


On 6/22/07, Jerad Riggin <jriggin at gmail.com> wrote:
>
> Disregard that previous e-mail, I figured it out.  Thanks, I appreciate
> the help.
>
> On 6/22/07, GJP <gjp at gpnet.nl> wrote:
> >
> > Yes ofcourse there is. This one is for Samba: www.samba.org
> >
> > And like Patrick said if you do a "check_http -h" it tells you what ik
> > can do.
> > And if you're on a common linux distro. you can find files with:
> >
> > "locate [filename]"
> >
> > Then I would also check:
> >
> > http://nagios.sourceforge.net/docs/2_0/beginners.html
> > http://nagios.sourceforge.net/docs/3_0/monitoring-publicservices.html
> >
> > And I would take your time for all this. My linux experience is over 8
> > years
> > and it took me three weeks to have a full blown secure sms sending
> > Nagios
> > setup.
> >
> > Goodluck!
> >
> > G
> >
> > On Thursday 21 June 2007 23:24:43 Jerad Riggin wrote:
> > > Is there any link to information about that?  Like I said this is
> > basically
> > > the 2nd day I've used Linux and Nagios so much of this seems like a
> > > different language to me.  Thanks for the info.
> > >
> > > On 6/21/07, GJP <gjp at gpnet.nl> wrote:
> > > > Hi Jerad,
> > > >
> > > > If you mean http auth, this is what I use.
> > > >
> > > > The check_command in the service definition:
> > > >
> > > > check_command
> > > > check_http_auth!host.example.com!/path!user:password
> > > >
> > > > And the command definition.
> > > >
> > > > define command{
> > > >        command_name    check_http_auth
> > > >        command_line    /usr/lib/nagios/plugins/check_http -H $ARG1$
> > -u
> > > > $ARG2$ -a $ARG3$
> > > >        }
> > > >
> > > > But if you mean authentication within a windows AD domain. Maybe
> > Samba
> > > > can help. Because then you can make your linux server a member of
> > the AD
> > > > domain.
> > > >
> > > > Regards,
> > > >
> > > > Gerard.
> > > >
> > > > On Thursday 21 June 2007 22:48:08 Jerad Riggin wrote:
> > > > > I'm new to Linux and new to Nagios so this may sound very stupid.
> > > > > Basically I have everything up and running, ping tests work, http
> > tests
> > > > > work, and the smtp test I have setup works.  If the host goes down
> > I
> > > > > get
> > > >
> > > > a
> > > >
> > > > > host down alert and a host up alert once the problem is
> > resolved.  Is
> > > >
> > > > there
> > > >
> > > > > a way to have Nagios send me an alert for critical status?  I'm
> > pretty
> > > >
> > > > sure
> > > >
> > > > > I have that setup but it isn't working.  After this I went ahead
> > and
> > > > > set
> > > >
> > > > up
> > > >
> > > > > basic HTTP monitoring for all of our servers, however, 403 errors
> > are
> > > >
> > > > not
> > > >
> > > > > sending any notifications to me.  Also, I'm trying to monitor the
> > CRM
> > > >
> > > > site
> > > >
> > > > > on our windows domain however since the Linux box is obviously not
> > on
> > > >
> > > > the
> > > >
> > > > > domain, it can't authenticate when hitting the site so it can't
> > find
> > > > > the string i've specified.  Any ideas on how to make nagios
> > > > > authenticate and then check the string?
> > > > >
> > > > > Thanks
> >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070622/b7fc60bb/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