/build/static/layout/Breadcrumb_cap_w.png

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)

Posted by: Johnzko 10 years ago
Orange Senior Belt
1

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

 


Comments:
  • so do I add my own IP's or put the script in like you have it? - hcarver 10 years ago
    • You must add your IPs or Hostnames in the Script. - Johnzko 10 years ago
      • If you want i can send you a Script which send a mail with the Tool blat.exe. - Johnzko 10 years ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ