I created a custom EMI/UCP notification to send text messages directly through a landline. When we do maintenance the notification is paused and resumed after we’re done. I want to make sure the notification is not left in a paused state unintentional so I want to show the status (paused/running) on a map. Is this possible?
Article Comments
Thanks Arne but unfortunately not useable for us, this only works when the map is viewed in authenticated mode, not in public mode. Is it possible to get the status of the notification outside PRTG? PRObject.exe doesn’t do the trick.
Jul, 2015 - Permalink
Dear mhultzer
In principle, you could provide credentials within the tablewithstyles URL (please read the API documentation, menu Setup | PRTG API, tab "HTTP API".)
However this would expose credentials to the outside, as they would be part of the source code. It is therefore not recommended for a public map.
You cannot query the notification status outside of PRTG unless you provide valid PRTG user credentials. A possible solution would be to create a custom sensor. That sensor could use use /api/table.xml instead of /tablewithstyles.htm and check the "active" property and return a value depending on that value.
This would require to write a custom sensor, described via Setup | PRTG API, tab "Custom Sensors".
To download the XML result of the /api/table.xml request, you could use a Powershell command like this:
[xml]$result = (new-object System.Net.WebClient).downloadstring($url)
Jul, 2015 - Permalink
Dear mhultzer
There is no mapobject for notification states provided with the PRTG installation. Creating a custom map object could be done with an iframe using the HTML before field of the Custom HTML map object.
The source of the iframe could be a table, like
To only get the status of the notification with the ID 302, the table would look like
Jul, 2015 - Permalink