Snowland Demo Service
Wrote this little PHP-application for demostrating webmonitors in System Center Operations Manager 2007.
It will probably work for any monitoring solution that catches http errorcodes or textstrings on a page.
//Rikard - rikard@ronnkvist.nu
How does it work?
This page will generate a random number between 1 and 1000 (Right now 506, giving you a 200 OK)
If the number is between 1 and 23 then a HTTP-error (from the list below) will occur.
Configuration
You do not need to configure anything... Except your own monitoring software... :-)
Optional: To change the Max-number (right now 1000) you can add a parameter to the page like
http://snowland.se/demo/?max=123
Tip: Set the value to 23 to always get a HTTP-error. (You can't go any lower than 23)
Error codes
- 400 = Bad Request
- 401 = Unauthorized
- 402 = Payment Required
- 403 = Forbidden
- 404 = Not Found
- 405 = Method Not Allowed
- 406 = Not Acceptable
- 407 = Proxy Authentication Required
- 408 = Request Timeout
- 409 = Conflict
- 410 = Gone
- 411 = Length Required
- 412 = Precondition Failed
- 413 = Request Entity Too Large
- 414 = Request-URI Too Long
- 415 = Unsupported Media Type
- 416 = Requested Range Not Satisfiable
- 417 = Expectation Failed
- 500 = Internal Server Error
- 501 = Not Implemented
- 502 = Bad Gateway
- 503 = Service Unavailable
- 504 = Gateway Timeout
Extra message
If the number is over 90% of max (Over 900) you will get an error-text below. (The text "ERR0RME55@GE" with normal (uppercase A-Z) chars)