PRTG自訂Web API


PRTG有提供Web API可以讓我們取得監控資料,也可以自訂Web API來讓我們有更大的彈性來使用。

1、到PRTG的安裝目錄的webroot\api內
      例如:C:\Program Files (x86)\PRTG Network Monitor\webroot\api

2、Web API的程式都在這裡,複製一個並更名,
     例如:getstatus.htm -> getstatus_customer.htm

3、格式可參考其他Web API的內容來自訂格式
      例如:{ "Status": "<#objectstatus name="status" show="text">" }
      可回傳object的status狀態,回傳格式為JSON

4、不用開機即可使用,使用方式與Web API一樣,例如: http://192.168.1.131:9090/api/getstatus_custom.htm?id=3322&name=status&show=text



Windows 11安裝時跳過網路連線