Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

PowerShell for server monitoring

Posted on 2014-03-07
2
Medium Priority
?
271 Views
Last Modified: 2014-03-17
How to write a powershell to poll a list of servers and send out an notification for those servers that don't receive the ping response ?

Tks
0
Comment
Question by:AXISHK
2 Comments
 
LVL 26

Accepted Solution

by:
pony10us earned 1600 total points
ID: 39912773
Not wanting to re-invent the wheel have you looked at the script on technet?

http://gallery.technet.microsoft.com/scriptcenter/d0670079-6158-4dc5-a9da-b261c70e4b7d

It worked pretty well for us until we decided to make the move to Nagios.
0
 
LVL 19

Assisted Solution

by:Kash
Kash earned 400 total points
ID: 39912879
or if you want to write your own little script. here it is

$computers = read-host "Enter server name"

test-connection $computers

you can add loops on to it. the above works for one computer. or the script mentioned above will do the job
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
Windows 10 came with  a lot of built in applications, Some organisations leave them there, some will control them using GPO's. This Article is useful for those who do not want to have any applications in their image (example:me).
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Loops Section Overview

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question