I'm trying to use PRTG map to display a ticket number from our ticketing system. I have configured a custom EXE/script sensor that returns xml for the existence of a high priority ticket and turn to warning when it matches. This work well. What I am trying to do is get the ticket number so I can display it on the map. For this i have been able to get the PRTG url for this as
"https://xxx/api/getobjectstatus.htm?id=51923&name=lastvalue&show=text"
This returns "14.3.10.2422+ 1,512,348 #" But what I am trying to filter is the PRTG version info at the start "14.3.10.2422+" so that all i get is "1,512,348 #"
What can I add to the url code to remove this? or if this isn't possible what would the html code be to remove the version component?
The custom html come I'm using to display this is: <iframe src="https://xxx/api/getobjectstatus.htm?id=51923&name=lastvalue&show=text" name="iframe_a">
Dear Martin
Please go to the PRTG installation folder, subfolder webroot\api. Please create a copy of the file "getobjectstatus.htm". For example, name the copy "getobjectstatuscustom.htm".
Please open this file and delete this line:
The final file content now should look like this:
Please save this file. As the directory requires administrator credentials, the editor will probably ask you to save the file elsewhere. Please manually copy it back to the webroot\api subfolder.
The API call now is
/api/getobjectstatuscustom.htm?id=51923&name=lastvalue&show=text
Sep, 2014 - Permalink