New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

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

 

Top Tags


View all Tags


SNMP Traps set sensor down until another trap clears it?

Votes:

0

Your Vote:

Up

Down

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 by  trevoc (0) 1



1 Reply

Votes:

0

Your Vote:

Up

Down

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,
Sven

Created on Sep 12, 2017 4:52:36 AM by  Sven Roggenhofer [Paessler Technical 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.