PRTG Installation Mini Probe Linux
Pré installation
Installation Python Dev et pip
apt-get install python-get
apt-get install python-pip
Télécharger Mini Probe PRTG sur https://github.com/PRTG/PythonMiniProbe/archive/master.zip
wget https://github.com/PRTG/PythonMiniProbe/archive/master.zip dans le dossier ETC
unzip master.zip
Renommer le dossier en PythonMiniProbe
Installation
Please follow the steps below to get the Python Mini Probe up and running:
1) Prepare your PRTG server:
- Set your PRTG server to use HTTPS: In the PRTG web interface, navigate to Setup | System Administration | User Interface, section Web Server, and choose Secure HTTPS server in section TCP Port for Web Server.
Note: Other connection methods are not allowed! - In the PRTG web interface, navigate to Setup | System Administration | Core & Probes and define the settings as following.
- Define an Access Key for the Python Mini Probe. You can also use an existing one.
- Add an appropriate IP filter in section Allow IPs. Use, for example, any.
- Allow Mini Probe connections: Go to section Probe Connection Settings and choose Allow Mini Probes to connect.
- Now check that you can reach your PRTG server from the machine on which the Python Mini Probe will run: e.g., execute the command
wget https://
2) Prepare the Python Mini Probe:
- Download and copy the Mini Probe folder to your Linux machine: Get it on GitHub!
- Name the target directory with the unzipped files PythonMiniProbe
- Run the Python Mini Probe installer: for example, use the command
sudo python setup.py installand afterwardssudo python setup.py configure
You have to provide the following information in the command shell:
- Please provide the username the script should run under: Enter the username the mini probe script will use to run on the Linux machine. At the moment, only root is supported here!
- Please provide the desired name of your Mini Probe [Python MiniProbe]: Enter a name which will be displayed for the Mini probe in the PRTG web interface. If you do not enter anything, it will appear as the default Python MiniProbe.
- Please provide the Probe GID (any unique alphanumerical sting): The Probe GID is a unique identifier for the probe. Enter any string.
- Please provide the IP/DNS name of the PRTG Core Server: Enter the address of your PRTG server to which the Mini Probe will connect.
- Please provide the port the PRTG web server is listening to (IMPORTANT: Only SSL is supported)[443]: The default port for SSL connections is 443. It will be used automatically because no other connections methods are allowed, so you can leave this field empty.
Note: You can specify a custom Mini Probe port in the Core & Probes settings as of PRTG version 14.x.13. - Please provide the base interval for your sensor [60]: Enter the scanning interval of the sensors on the Mini Probe in seconds. Default is 60 seconds.
- Please provide the Probe Access Key as defined in the PRTG Core: Enter an access key to connect to the core server. For details, see PRTG Manual: System Administration—Core & Probes.
- Please provide the path the probe files are located: Enter the path to the Python Mini Probe folder.
- Do you want the mini probe flushing buffered and cached memory [y/N]: Please do not use this option in productive environments because this is an experimental feature!
After completing the setup, the Python Mini Probe will start automatically. You can start and stop the process using the following commands:sudo service prtgprobe startsudo service prtgprobe stop
3) Approve the Probe Connection
The last thing to do is: Approve the new probe connection in the PRTG web interface! The acknowledgement works like for a new remote probe connection.
Then you can work with the Python Mini Probe in the PRTG web interface as usual, for example, add sensors, review monitoring data, create notifications.