Logging error with SCOM
Hi All, im completely new to SCOM and have been doing some research....i know you can use SCOM 2007 with the relevant MP to monitor the performance of a .Net web service, but can you directly send an alert to SCOM from inside the web service .Net code
when specific errors occur (such as being unable to connect to a database)?
Example:
Try
connectToDatabase()
Catch
sendErrortoSCOM()
End Try
May 12th, 2011 4:44am
Hi,
If I understand you correst then you have at least two options here:
1. Log the event to the eventlog instead of 'sending the alert directly' (it's impossible).
Try
connectToDatabase()
Catch
sendErrortoEventLog()
End Try
Then you need to create the event monitor. Monitor will detect this event and send you the alert.
2. Create the script that will do this test (connectToDatabase()) and create the script-based monitor. Monitor will run this script on periodic basis and alert you (if connection was unsuccessful).
http://OpsMgr.ru/
Free Windows Admin Tool Kit Click here and download it now
May 12th, 2011 5:38am