Forum Discussion
Gary_T_31565
Nimbostratus
Aug 09, 2007Irule to external reporting tool
Hi,
new to F5 and a Ops guy (little ASP/SOAP experience). I have two new 3400s in production.
I would like to monitor http failures using lets say MRTG (with threshold monitoring add-on). We use a .NET/SOAP webservices. Http 500 errors can mean one of our external business partners is trying to send a bad SOAP message i.e. data is wrong. They are meant to deal with the 500s their end but are not. We have to tell them or they just loop. Each soap message is potentially worth £300 ($600) and needs to be acted on same day.
A F5 engineer during install suggested I could create a custom OID. I tried creating as a custom trap but failed to make config work. We do not use traps anyway so looking something else. I do not understand or use icontrol at the moment. We use syslog but not yet for Bigip. I need to take into account we use hackersafe service so every 24 hours out web sites get attacked for an hour so could get hundreds of http errors.
We are considering MOM anyway not sure that can help here though. I believe I could use WMI to collect from each web server as there are objects such as TotalNotFoundErrors but not sure if there is a counter for 500s. Already use MRTG/WMI/IIS. I could also use MS logparser and look at last 5 minutes of each servers log, I now this works with MRTG. Both these mean I have to connect to each server. As the bigip (my irule) already handles the error centrally why take these approaches.
Any thoughts?
Example irule
when HTTP_RESPONSE {
if {[HTTP::status] starts_with "4"} {
set errorno [HTTP::status]
if {$retries < [active_members WS_SSL_POOL]-1} {
incr retries
log "http error $errorno, retrying $retries"
HTTP::retry $request
} else {
log "Max retries exceeded for http error $errorno -- $request"
}
}
if {[HTTP::status] starts_with "5"} {
set errorno [HTTP::status]
set server_ip [IP::server_addr]
log "client=$client_ip, server=$server_ip, $errorno -- $request"
}
}
- hoolio
Cirrostratus
Hello, - Gary_T_31565
Nimbostratus
- Deb_Allen_18Historic F5 AccountYou could consider using the stats profile to store an error counter as detailed in Joe's recent article on the topic:
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects