prtg-sensor


Nameprtg-sensor JSON
Version 1.0.1 PyPI version JSON
download
home_pagehttps://github.com/maymon-max/prtg-sensor.git
SummarySimple data generator for advanced PRTG sensors
upload_time2024-01-30 21:48:36
maintainer
docs_urlNone
authorMax Maymon
requires_python
licenseMIT
keywords prtg sensor prtg custom sensor
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Prtg-sensor
===========
Simple data generator for advanced PRTG sensors.

It will help you to generate output in JSON format for the Python Script Advanced, EXE/Script Advanced, SSH Script Advanced and HTTP Data Advanced sensors. 

You can refer to the [official PRTG manual](https://www.paessler.com/manuals/prtg/custom_sensors) to figuring out all the features of custom sensors.

Installing
===========
Install with `pip`
```sh
pip install prtg-sensor
```

Example
===========
Executable sensors like `Python Script Advanced sensor` must send the result to the stdout. `HTTP Data Advanced sensor` must send the result in the http response body.


```python
from prtg_sensor import Sensor

sensor = Sensor()
sensor.add_channel('Duration', 32, unit='timeseconds')
sensor.add_channel('Loading', 12.55, unit='percent', float=1, decimal_mode='all')
sensor.add_channel('Status', 0, value_lookup='prtg.standardlookups.aws.status')
sensor.text = 'Everything is ok'
print(sensor.get_result())
```

PRTG interprets this result to sensor by itself

![Sensor screenshot](https://github.com/maymon-max/prtg-sensor/raw/main/imgs/sensor_screenshot.png)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/maymon-max/prtg-sensor.git",
    "name": "prtg-sensor",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "prtg,sensor,prtg custom sensor",
    "author": "Max Maymon",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/42/5f/e069450b27719523dbef8bc8439840728f016987460dde1fb4159c961ee8/prtg-sensor-1.0.1.tar.gz",
    "platform": null,
    "description": "Prtg-sensor\r\n===========\r\nSimple data generator for advanced PRTG sensors.\r\n\r\nIt will help you to generate output in JSON format for the Python Script Advanced, EXE/Script Advanced, SSH Script Advanced and HTTP Data Advanced sensors. \r\n\r\nYou can refer to the [official PRTG manual](https://www.paessler.com/manuals/prtg/custom_sensors) to figuring out all the features of custom sensors.\r\n\r\nInstalling\r\n===========\r\nInstall with `pip`\r\n```sh\r\npip install prtg-sensor\r\n```\r\n\r\nExample\r\n===========\r\nExecutable sensors like `Python Script Advanced sensor` must send the result to the stdout. `HTTP Data Advanced sensor` must send the result in the http response body.\r\n\r\n\r\n```python\r\nfrom prtg_sensor import Sensor\r\n\r\nsensor = Sensor()\r\nsensor.add_channel('Duration', 32, unit='timeseconds')\r\nsensor.add_channel('Loading', 12.55, unit='percent', float=1, decimal_mode='all')\r\nsensor.add_channel('Status', 0, value_lookup='prtg.standardlookups.aws.status')\r\nsensor.text = 'Everything is ok'\r\nprint(sensor.get_result())\r\n```\r\n\r\nPRTG interprets this result to sensor by itself\r\n\r\n![Sensor screenshot](https://github.com/maymon-max/prtg-sensor/raw/main/imgs/sensor_screenshot.png)\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Simple data generator for advanced PRTG sensors",
    "version": "1.0.1",
    "project_urls": {
        "Homepage": "https://github.com/maymon-max/prtg-sensor.git"
    },
    "split_keywords": [
        "prtg",
        "sensor",
        "prtg custom sensor"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "905aded93f52ccda0ad9ec9de1081b2805ce6ac6c93513696a7b0ab2dff153aa",
                "md5": "fb49c637310a1dff6a43a964d12bcf7b",
                "sha256": "5b51a0b88e6c4a78a55700cd11b90249a68db86a3041847672a3ee56bb8c3e6c"
            },
            "downloads": -1,
            "filename": "prtg_sensor-1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "fb49c637310a1dff6a43a964d12bcf7b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4650,
            "upload_time": "2024-01-30T21:48:35",
            "upload_time_iso_8601": "2024-01-30T21:48:35.442853Z",
            "url": "https://files.pythonhosted.org/packages/90/5a/ded93f52ccda0ad9ec9de1081b2805ce6ac6c93513696a7b0ab2dff153aa/prtg_sensor-1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "425fe069450b27719523dbef8bc8439840728f016987460dde1fb4159c961ee8",
                "md5": "67294910a9c90c319a4344991bf21466",
                "sha256": "f0aae7752928dcd2c5381c871ee1b43265ba00f2277822cd51928f4231bfe5f6"
            },
            "downloads": -1,
            "filename": "prtg-sensor-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "67294910a9c90c319a4344991bf21466",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4232,
            "upload_time": "2024-01-30T21:48:36",
            "upload_time_iso_8601": "2024-01-30T21:48:36.889288Z",
            "url": "https://files.pythonhosted.org/packages/42/5f/e069450b27719523dbef8bc8439840728f016987460dde1fb4159c961ee8/prtg-sensor-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-30 21:48:36",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "maymon-max",
    "github_project": "prtg-sensor",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "prtg-sensor"
}
        
Elapsed time: 0.17615s