PaperCutSoftware / PRTGTemplateGenerator

PRTG Template Generator for PaperCut health API
MIT License
5 stars 0 forks source link

PaperCut PRTG Template Generator

Features

Creates device templates for your PRTG Network Monitoring Tool that you can use to monitor your server's specific PaperCut installation.

Statistics monitored:
For more information, see:

Requirements

Running the Script

  1. In the PaperCut Admin web interface, select Options > Advanced

  2. In the System Health Monitoring area, copy the URL for the PaperCut Health Monitoring API

  3. Run the script with the first argument being the GET Query Parameter (the Health Monitoring URL) for the PaperCut Health Monitoring API.

    ./pc-prtg-generator.py http://203.0.113.0:9191/api/health/?Authorization=authKey1234 -s linux1 -lo office1
    python3 pc-prtg-generator.py http://203.0.113.0:9191/api/health/?Authorization=authKey1234 --limit 50

    This will generate files in the script's directory that are specific for your PaperCut Installation. which You can then be used these files as templates in the PRTG Admin interface., specific for your PaperCut Installation.

  4. Copy the files to your {PRTG_INSTALLATION}\devicetemplates directory.

Required Arguments

Argument Parameter Description
address STRING GET Query URL for your PaperCut Server Health Monitoring API

Optional Arguments

Argument Parameter Description
-n --name STRING (Default None) Filter results by name
-lo --location STRING (Default None) Filter results by location
-s --server STRING (Default None) Filter results by server
-li --limit INT (Default 250) Maximum number of printers/devices to include in the template

Notes