Creates device templates for your PRTG Network Monitoring Tool that you can use to monitor your server's specific PaperCut installation.
- Server health status
- Overall server health
- Current number of held jobs
- Pages printed in the last minute
- Server errors in the last 10 minutes
- Server warnings in the last 10 minutes
- Individual printer health status
- Individual device health status
- Simple Health Monitoring with PRTG
- Advanced Health Monitoring with PRTG
- PaperCut's Health Monitoring API Reference
- PRTG User Manual for more information.
- Python 3.1
-
In the PaperCut Admin web interface, select
Options > Advanced
-
In the System Health Monitoring area, copy the URL for the PaperCut Health Monitoring API
-
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.
- Copy the files to your
{PRTG_INSTALLATION}\devicetemplates
directory.
Argument | Parameter | Description |
---|---|---|
address |
STRING | GET Query URL for your PaperCut Server Health Monitoring API |
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 |
- PaperCut System Health URLs are currently hard coded, so PRTG's Smart URL Replacement is not configured. If your server address updates to a new one, you need to run the script again.