﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 7,2000 / SQL Server Agent  / Script For Monitoring State of other servers and alerting !!! / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Fri, 24 May 2013 08:25:24 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Script For Monitoring State of other servers and alerting !!!</title><link>http://www.sqlservercentral.com/Forums/Topic1224435-110-1.aspx</link><description>I'm sure there is a better way.  This was just fast to throw together.This assumes you have dbmail setup and a valid operator.Run this on the server you want to monitor:create database dbadmingouse dbadmingocreate table serverstatus (isawake char(1))GOinsert into serverstatusvalues(1)create a least privelidged login and a link server connection from your monitor to the monitoree with that account.Then throw this in a job stepDeclare @isawake char(1)set @isawake = (select isawake from [SERVERIWANTTOMONITOR].dbadmin.dbo.serverstatus)if @isawake &amp;lt;&amp;gt; '1'beginraiserror('Test Notify Server Failure', 16, 1, 1)endSet the notifications on the job to email the operator on failure.  Also have a second server that points back to the monitor server to validate that is awake as well.</description><pubDate>Thu, 29 Dec 2011 16:29:38 GMT</pubDate><dc:creator>benjamin.reyes</dc:creator></item><item><title>Script For Monitoring State of other servers and alerting !!!</title><link>http://www.sqlservercentral.com/Forums/Topic1224435-110-1.aspx</link><description>Please can you help I need a script that will use a centralized server to monitor other sql servers state and if a server is offline it will send a email to alert the dba about which server has a database that is offline . Pleaase do great assist and all your help is greatly appreciated.</description><pubDate>Tue, 20 Dec 2011 07:42:53 GMT</pubDate><dc:creator>bobnysoftz</dc:creator></item></channel></rss>