Hello, we need to do the following:
We have 2 GET Requests. When the value of the first GET is greater than 0, then the value of the second GET should be sent via SMS. Is something like this possible?
Article Comments
Hello, that is half of what i want to do and i already know how to do that. What is want is the following:
If the first GET retrieves >0 then the Result from a SECOND GET should be sent via SMS as a message. My Problem is how to get the result of the second GET into the SMS message.
Feb, 2022 - Permalink
Hi there,
In this case, I would recommend to send both GET requests in a script. If your case is active, the script can send a result to PRTG and then a notification can be triggered. The script would then run in a EXE/Script Sensor: https://www.paessler.com/manuals/prtg/exe_script_sensor
Feb, 2022 - Permalink
Hello, thank you that sounds good. So how do i get the result from the second GET in the SMS Notification? I know i can configure the notification manually, but is there a way to get the result from the second GET as text in the sms? Is there a variable like for example %status that i could use for the result?
Feb, 2022 - Permalink
If you transmit the result of the second GET as Sensor message, you can forward the Sensor message to the notification.
Feb, 2022 - Permalink
If I understand you correctly youn want to send a SMS if the first GET retrieves >0? In this case, I would use a HTTP or HTTP Advanced Sensor for the REST API Get request. Then you can use limits to trigger a "down" state in the Sensor if anything >0 is received. Afterwards, a notification trigger can trigger a SMS.
Feb, 2022 - Permalink