Skip to content

1. Installation

Stephan Linke edited this page Jan 26, 2018 · 9 revisions

Setting up the environment

  1. Download the latest PHP for Windows: PHP 7.2 x64 / x86
  2. Install it to C:\PHP or anywhere you like.
  3. Rename the php.ini-production to php.ini and uncomment the line extension=php_intl.dll
  4. If your PRTG uses HTTPS (recommended), uncomment extension=php_openssl.dll
  5. Download the latest PRTG Scheduler release from GitHub and place it in C:\PHP\app
  6. 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.

Configuring PRTG

  1. Create at new user prtgscheduler and set its timezone to UTC (important!)
  2. Create a new EXE/Script (Advanced) sensor on the local probe device and select the PRTG-Scheduler.ps1 - no parameters necessary.
  3. 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).

Remarks

Clone this wiki locally