How do I set up a ping test on my servers on a schedule and get reports or email alerts of failed pings?
I need to know how to set up a ping test schedule/ alert on my servers. I have created a label called "servers" and added all of my servers to this lable. Now i want to set ip ping test, on a schedule- to these servers and have it alert me when a ping test fails on a server.
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
Johnzko
11 years ago
Hi,
you can write a batch with the Ping command like this:
@echo off
ping 127.0.0.1
if %ERRORLEVEL% == 1 (
set var=Alertmail
)
if %ERRORLEVEL% == 0 (
set var=Allright
)
echo %var%
If the Errorlevel is 1 you let the batch send a E-Mail to youre Ticketsystem.
This Batch can you add to the skripts.
Johnzko