uakfdotb / pybearmon

minimal server monitoring
https://bearmon.com/
GNU General Public License v3.0
27 stars 10 forks source link

Check type "HTTP page NOT contains substring test" #3

Open Profforgr opened 8 years ago

Profforgr commented 8 years ago

Hi.

Can you implement New check type "HTTP page NOT contains substring test"? Probably this is easy task.

There are some broken engines (especially php ones) which does not return correct HTTP codes.

Example use case is to make few checks:

  1. "HTTP status OK"
  2. "HTTP page NOT contains substring test" "Database connection issue"
  3. "HTTP page NOT contains substring test" "Hacking attempt"

1st check will fail if website returns bad HTTP code. 2nd check will fail if website have database connection issue and does not return correct error code. 3rd check will fail if website have some security checks issue (i usually have this when using proxy_cache with some old and badly-written php engines) and does not return correct error code.

Thanks in advance,

Alex.

ghub2015 commented 8 years ago

+1

(Based on using Bearmon.com implementation), I was hoping to be able to do regex negative lookahead so that I can be notified when a page does not contain certain text (i.e., "sold out" "out of stock" etc). But, this does not appear to work