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

Notification triggered by sensors of different devices

Votes:

0

Your Vote:

Up

Down

Hello,

i'm currently evaluating PRTG for a special use case:

I have two SNMP devices with a identical set of sensors. I'd like to execute a script in case of a sensors reaches a threshold or changes a state. But i'd like to combine two sensors of different devices.

Device 1, Sensor 1 -> OK Deivce 2, Sensor 2 -> FAIL -> Execute Script 1

Device 1, Sensor 1 -> FAIL Deivce 2, Sensor 2 -> OK -> Execute Script 2

Device 1, Sensor 1 -> FAIL Deivce 2, Sensor 2 -> FAIL -> Execute Script 3

Is there a way to get with done with PRTG?

Thank you

notification prtg

Created on Jun 13, 2014 8:29:22 AM by  marcelmertens (0) 1



2 Replies

Votes:

0

Your Vote:

Up

Down

Hi Marcel,

I'd suggest using Sensor Factory sensors for this use case. Then you can combine sensors from different devices.

So create one Sensor Factory sensor for each case and try covering all of the notification cases with them. I'd propose the following approach:

  1. Create a Sensor Factory for the third case and include all desired channels of both sensors.
  2. For Error Handling choose Use Custom Formula.
  3. Define the following formula: status(id_of_sensor1) AND status(id_of_sensor2)
    1. This status formula will set the Sensor Factory to Down only if both source sensors are down.
  4. Add a State Trigger for the Down Status of the Sensor Factory. Because the Sensor Factory will only go down if both source sensors are down, this will cover your third case. So select the "Execute Script 3" notification for this trigger.
  5. Add a Sensor Factory for case 1: Combine the desired channels of both source sensors as usual. As status definition use this formula: status(id_of_sensor2) AND NOT status(id_of_sensor1)
    This will set the Sensor Factory to Down only if the second sensor is down. Add a State Trigger for Script 1 accordingly.
  6. Add a Sensor Factory and a notification trigger for case 2 the same way with the status function status(id_of_sensor1) AND NOT status(id_of_sensor2)

For more details about using the Sensor Factory, please see the manual.

Created on Jun 13, 2014 11:37:51 AM by  Gerald Schoch [Paessler Support]



Votes:

0

Your Vote:

Up

Down

Thank you very much. This meight be work I will take a look after my vacation next week!

Created on Jun 13, 2014 11:49:17 AM by  marcelmertens (0) 1



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.