Isn't there some regex matching?

Frank

-----Original Message-----
From: Morty [mailto:morty+nag...@frakir.org] 
Sent: Wednesday, October 12, 2011 9:46 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] check_http and other response codes

On some of our apache servers, the normal response code is 401
(authentication required) rather than 200.  I'd also like to use
nagios to make sure the apache TRACE method stays disabled, with a
response code of 405.  Problem: check_http returns a warning if the
response code is anything but 200.  In the first case, both 200 and
401 are acceptable; in the latter case, I want 405 rather than 200.

Is there a way to require or allow a different response code?

I'm using check_http 1.4.15, as packaged with Debian 5.x.  I googled,
but didn't find clue.  :(

Thanks!

- Morty

----------------------------------------------------------------------------
--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Nagios-users mailing list
Nagios-users@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



------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Nagios-users mailing list
Nagios-users@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

Reply via email to