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
Add comment