This modular input polls and retrieves data from Paessler PRTG Network Monitor. The PRTG API is excellent and provides access to almost all data. The typical use case is to periodically retrieve sensor status and values.
The recommended format for retreiving data is the JSON format, and this should work correctly with minimal customisation. If you want to use other data formats then you will need to create Splunk parsing properties and possibly field extractions etc.
Copyright (C) 2019 Chris Younger. I am a Splunk Professional Services consultant working for JDS Australia, in Brisbane Australia.
Source code | Questions, Bugs or Suggestions | My Splunk apps
Install this app in Splunk using any of the normal methods.
Once installed there will be a new app called "Paessler PRTG Modular Input".
Navigate to this app and then see the various tabs to configure the tool.
In PRTG, naviagate to Setup
> API
for documentation as well as a query builder that is useful for constructing a URL that can be used in this modular input. The documention in the PRTG UI easiest to read, but online API documentation is also available online: https://www.paessler.com/manuals/prtg/application_programming_interface_api_definition
Retreiving all sensors:
/api/table.json?content=sensors&output=json&columns=objid,probe,group,device,sensor,status,message,lastvalue,priority&count=1000
Retreving specific sensor (includes child sensors):
/api/table.json?content=sensors&output=json&id=2003&columns=objid,probe,group,device,sensor,status,message,lastvalue,priority&count=1000
Retreving all sensors in warning or alarm status:
/api/table.json?content=sensors&count=1000&output=json&columns=objid,probegroupdevice,device,sensor,status,lastvalue,message,priority&sortby=priority&filter_status=4&filter_status=5&filter_status=10&filter_status=13&filter_status=14
no changes except for version number. version bump to stop app being archived.
No functional changes. Updated to new version of AddonBuilder so it should pass the Readiness Check app. Note that the Readiness App may still report non-compliance if you have installed this version over an older version.
Fixes for new JQuery
As a Splunkbase app developer, you will have access to all Splunk development resources and receive a 10GB license to build an app that will help solve use cases for customers all over the world. Splunkbase has 1000+ apps from Splunk, our partners and our community. Find an app for most any data source and user need, or simply create your own with help from our developer portal.