-
Notifications
You must be signed in to change notification settings - Fork 1
1. Installation
Stephan Linke edited this page Jan 26, 2018
·
9 revisions
- Download the latest PHP for Windows: PHP 7.2 x64 / x86
- Install it to C:\PHP or anywhere you like.
- Rename the php.ini-production to php.ini and uncomment the line extension=php_intl.dll
- If your PRTG uses HTTPS (recommended), uncomment extension=php_openssl.dll
- Download the latest PRTG Scheduler release from GitHub and place it in C:\PHP\app
- Place the PRTG-Scheduler.ps1 in C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML
If you modified the PHP installation path, please open the script and modify the $phpPath variable.
- Create at new user prtgscheduler and set its timezone to UTC (important!)
- Create a new EXE/Script (Advanced) sensor on the local probe device and select the PRTG-Scheduler.ps1 - no parameters necessary.
- Now we need to configure the actual PRTG Scheduler via \application\config\application.php:
Variable | Allowed Values / Value Types | Description |
---|---|---|
prtg_protocol | http, https | The protocol used by your PRTG server |
prtg_server | IP, DNS name | The DNS name or IP of your PRTG server |
prtg_port | 1-65535 | The port your PRTG webinterface is using |
prtg_sensor_id | integer | The ID of the sensor you just created in PRTG |
prtg_user | string | The login of the user you created for this |
prtg_passhash | integer | the passhash of the above user |
default_timezone | Timezone in IANA format (e.g. Europe/Berlin) | Set it to a timezone of your preference, use the IANA format. |
weekstart | MO,TU,WE,TH,FR,SA, or SU | Defines when the working week starts |
preferred_language | de, en, fr, es, it, jap, ne | Defines the language of report and sensor channel / messages. |
debug | True, False | Enable Debug output when running the PowerShell script manually. |
set_on_demand | True, False | If set to false, the scheduler will set the upcoming maintenances right away, rendering PRTGs internal option to set maintenance windows practically useless - setting maintenances via PRTG will result in overwriting the automatic one. |
on_demand_threshold | Integer | Only set maintenance windows if they're closer than this (in minutes). |
- PowerShell scripts must work as EXE/Script Sensors in PRTG - https://kb.paessler.com/en/topic/71356
- PRTG server must be able to access https://ajax.googleapis.com/ for jQuery