Using ASP.NET (or classic ASP) is there a way to capture the NETBIOS name of
the server that a page was run on?
Currently we have email based error reports which get sent to us from our
web sites. We have hundreds of websites on half a dozen servers. Sometimes
the same website is load balanced across multiple servers so figuring out
the "origin" of an error can be a challenging.
Right now we do this by examining the email headers of each error report,
and determining which SMTP server the error message originated from.
However we would like to moving away from having errors reported via email
(due to volume) and moving towards storing this information in a database
driven system. One of the caveats of doing this would be having a reliable
mechanism to determine the origin of an error.
I found a way to do this with WMI/vbscript but its CPU intensive and not
practical on a large scale. Two or three hits to the script, drive the
server CPU usage up by 10-20% or more. I'm hoping to find an equivalent way
to do this in ASP.NET which is much more efficient/scalable. Any guidance or
suggestions would be appreciated.
Thank You,
Brad