What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

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

SNMP Traps set sensor down until another trap clears it?



Right now I have a trap sensor that successfully traps the SNMP traps sent from an environmental monitor.

I get Power Down / Power Cleared or Door Open / Door Cleared etc... from the traps and can filter these messages to bring the sensor down for the refresh period.

What I'd like to do is when bindings["Down"] for example is received, it brings the sensor down indefinitely (not just for 60 seconds) until the trap bindings["Cleared"] is received. The sensor should stay down until the next trap is received.

Is this possible?

custom-snmp-sensor snmp snmp-trap

Created on Sep 11, 2017 9:51:54 PM

1 Reply



Hey trevoc,
Thank you for your KB-posting.

Actually, it is not possible in PRTG to leave the SMTP Trap Receiver sensor in DOWN/ERROR-state until it receives an OK/Cleared-message.

Please see a summary from our manual, which explains how the sensors changes its status:
Messages are collected until a scanning interval ends. As long as the scanning interval is running, no status change will happen. By default, the sensor will turn into a Down status after a scanning interval has finished and there was at least one error message during this interval. The status will remain Down at least until the succeeding scanning interval has finished. If the sensor did not receive any warning or error message in this scanning interval, its status will turn Up again after the interval.

A possible workaround could be to create a notification which simulates a DOWN/ERROR-state and to trigger that with a state-trigger. For example, If State: DOWN for at least 0 seconds --> simulate ERROR-State.
That way your sensor stays in DOWN/ERROR-state (but with the error-message Simulated error (code: PE034)). To bring the sensor back to OK-state, you have to explicitly click on Resume.

To to so, the following steps, have to be done:

  • Add a notification
    • Please navigate to Setup >> Account Settings >> Notifications
    • Click on Add new notification
    • Under "Method", please choose Always notify ASAP, never summarize
    • Please activate the option Execute HTTP action, enter the following URL and save the notification:
https://[IP of your Core Server]/api/simulate.htm?id=%sensorid&action=1&username=[your username]&passhash=[your passhash] 
  • Add a state-trigger
    • Please navigate to your SNMP-Trap-Receiver-Sensor
    • Switch to tab Notifications
    • Click on Add State Trigger
    • Please set the values which should reached to trigger the notification (Suggestion: 0 seconds)
    • Please choose your "Simulate Error"-notification
    • Save the state-trigger

For further details, please refer to:

Best regards,

Created on Sep 12, 2017 4:52:36 AM by  Sven Roggenhofer [Paessler Technical Support]

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.