What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

Send notification only if 2 hosts are down

Votes:

0

Your Vote:

Up

Down

We have remote sites that 4 hosts but I want to receive a notification only when 2 of the 4 hosts are down (cannot ping them at the same time), so how can we archive this with PRTG (verion 8)?

Thanks,

email notifications ping

Created on Jul 30, 2011 9:04:39 AM by  Tnoc (0) 1



2 Replies

Votes:

0

Your Vote:

Up

Down

This can be done with Custom Sensor PTF.SensorCount

With this sensor you can count the number of down sensors (or any other state) in a particular group.

So if you place the ping sensors of your 4 hosts in one group, PTF.SensorCount will tell you how many of them are down.

Enabling limits of this sensor (in the channels tab) will let you determine when a notification is send.

Created on Jul 31, 2011 9:28:38 AM by  PRTG Tools Family [prtgtoolsfamily.com] (13,273) 3 4



Votes:

0

Your Vote:

Up

Down

You could do this by writing a script that pings all 4 servers and adds 1 to a variable for each server that replies. Export that variable in brackets to a web page and use an HTTP sensor to read and plot that variable. Then you can set an alert on that HTTP sensor to notify you if the total count falls below 3.

In pseudo-code:

Count == 0
If (return value of ping) = 0   /*Successful ping*/
  then Count == Count +1

echo "[" Count "]" > PingCount.html

exit

Created on Aug 1, 2011 2:53:26 PM by  Jim Kirby (191) 2 1

Last change on Aug 1, 2011 3:15:07 PM by  Torsten Lindner [Paessler Support]



Please log in or register to enter your reply.


Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.