Hi,

is it possible to konfigure a Sensor that reacts to every other Sensor? For example, when an error accours somewhere, that this Sensor also changes his state to error, or warning when there's a warning somewhere through the system?

I'd like to have this for notifications. We have a traffic light that should react to this. But with a normal trigger this is hardly possible, because it changes whenever there is a change of state, but ignores the state it had before that.

Any suggestions?

Greetings


Article Comments

If this is a Cleware Trafficlight, please have a look at http://prtgtoolsfamily.com/us/products/notifiers/trafficlight


Jun, 2015 - Permalink

Thanks, its working fine.

Is there a way to configure that the Warning light is turned off, if thers an error?


Jun, 2015 - Permalink

If both the red and yellow licht are on, this indicates that your PRTG server reports both errors and warnings.


Jun, 2015 - Permalink

I know, thats my point.

I don't want both lights to be on. I want only the red light to be on of there is an error. Regardless if there is a warning or not.

The notifications I want are:

  • Warning: yellow light
  • Error: red light
  • Error and Warning: red light, no yellow light
  • No Error/Warning: green light

Jun, 2015 - Permalink

I wrote a skript in python, works fine with a trigger on status change and the API from PRTG.

Looks like this:

import urllib.request
import os
import json
import subprocess

url ='http://myserver/api/getstatus.htm?id=0&username=user&password=password'

response = urllib.request.urlopen(url)
data = json.loads(response.readall().decode('utf-8'))

print("Fehler: " + data['Alarms'])
print("Warnungen: " + data['WarnSens'])

args = ("C:\\USB_Ampel\\USBswitchCmd.exe")


Fehler = (data['Alarms'])
Warn = (data['WarnSens'])

if Fehler > '1' :
    args = args + "1 R"
elif Warn > '1' and Fehler == '':
    args = args + "1 Y"
elif Fehler == '' and Warn == '':
    args = args + "1 G"

os.system(args)

Jun, 2015 - Permalink

Hi Goebel,

I have added a setting to ignore warnings when there are down sensors. Effectively this will not lit the orange light when there are both warning and down sensors.

You can download the new version from http://prtgtoolsfamily.com/downloads/tools


Jun, 2015 - Permalink