I want to monitor my Flowmon appliances and integrate monitoring results from Flowmon into PRTG. How can I do that?
1 Reply
This article applies as of PRTG 20
Integrate Flowmon into PRTG
With PRTG, you can monitor Flowmon appliances with the SNMP Library sensor. To display monitoring results from Flowmon in PRTG, you can use the Python Script Advanced sensor. Follow the instructions below to integrate Flowmon into PRTG.
Preparation
1. Prepare OIDLIB and Python scripts
First, copy the .oidlib file to the \snmplibs subfolder of the PRTG program directory:
- Download the .zip file from the Flowmon Portal here and extract the files.
- Open the folder SNMP and copy the file FLOWMON-MIB for PRTG.oidlib into the \snmplibs subfolder of the PRTG program directory on the PRTG core server system.
Note: If necessary, (re)load the files by clicking the Go! button in the PRTG web interface under Setup | System Administration | Administrative Tools, section Load Lookups and File Lists.
Now modify and copy the Python scripts for ADS event statistics and FMC statistics to the \Custom Sensors\python subfolder of the PRTG program directory:
- Open the extracted folder again, first navigate to the folder ADS and find the files FlowmonADS_EventsByPriority.py and FlowmonADS_config.py. Then open the folder FMC and find the files FlowmonFMC_AllSources.py, FlowmonFMC_AllSourcesNPM.py, and FlowmonFMC_config.py.
- Enter your username and password for the REST API client under FLOWMON_REST_USER and FLOWMON_REST_PASS in the files FlowmonADS_config.py and FlowmonFMC_config.py and save your changes.
- Enter your ID of the ADS perspective under ADS_PERSPECTIVE in the file FlowmonADS_config.py.
- To get the ID of the ADS perspective, follow these steps:
- Open Flowmon and navigate to Flowmon ADS | Settings | Processing tab | Perspectives.
- Click the Edit button of the perspective that you want to see in PRTG.
- Click Save to close the window. This creates a log that you need in the next step.
- Navigate to Flowmon ADS | Logs. See the details of the log and find the ID of the perspective.
- Copy and paste the ID as ID of the ADS perspective in FlowmonADS_config.py and save your changes.
- Copy the following files to the \Custom Sensors\python subfolder of the PRTG program directory on the PRTG core server system:
- FlowmonADS_EventsByPriority.py
- FlowmonADS_config.py
- FlowmonFMC_AllSources.py
- FlowmonFMC_AllSourcesNPM.py
- FlowmonFMC_config.py
2. Prepare PRTG for Flowmon Python scripts
To run the sensors provided by Flowmon, you must add the Python Request Library to the Python runtime of PRTG. Open the folder you extracted in step 1 and follow these steps:
Hint: As of PRTG 20.1.55, the python folder in the PRTG program directory is named \python. In older versions, the folder is named \python34.
- Copy the file get-pip.py into the \python subfolder of the PRTG program directory on the PRTG core server system.
- Open the Windows Command Prompt as administrator.
- Run the following commands (we use the default directories, adjust if necessary):
- cd %programfiles(x86)%\PRTG Network Monitor\python
- python.exe get-pip.py
- cd Scripts
- pip install requests
3. Add a Flowmon appliance to PRTG
- Create a device on the probe system. Enter the Device Name and IPv4 Address/DNS Name of your Flowmon appliance. For more information about how to add a device, see the PRTG Manual: Add a device.
Optional: The .zip file also includes a device icon for your Flowmon device. For more information on custom device icons, see How can I add my own device icons for use in the PRTG web interface?
Monitoring
1. Monitor Flowmon appliances via SNMP
- Add an SNMP Library sensor to the Flowmon device in PRTG.
- The SNMP Library sensor creates the following sensor types on your Flowmon device: SNMP Custom sensor, SNMP Custom String sensor, SNMP Custom Advanced sensor.
- In the Add Sensor dialog, set the following:
- Select Flowmon-mib for PRTG.oidlib from the list and click OK.
- Select the MIB modules you want to monitor and click Create to create the sensor.
You can now monitor your Flowmon appliances via SNMP with PRTG.
2. Monitor ADS event statistics and FMC statistics with PRTG
ADS event statistics
- Open the PRTG web interface and add a Python Script Advanced sensor to your Flowmon device.
- In the Add Sensor dialog, enter Flowmon ADS Events as Sensor Name, select FlowmonADS_EventsByPriority.py as Python Script, and click Create.
FMC statistics
- Open the PRTG web interface and add a Python Script Advanced sensor to your Flowmon device.
- In the Add Sensor dialog, enter Flowmon FMC All Sources as Sensor Name, select FlowmonFMC_AllSources.py as Python Script, and click Create.
- Repeat the two previous steps. This time, enter Flowmon FMC All Sources NPM as Sensor Name and select FlowmonFMC_AllSourcesNPM.py as Python Script and click Create.
You can now display the monitoring results from Flowmon directly in PRTG.
More
Created on May 20, 2020 11:42:30 AM by
Florian Weik [Paessler Support]
Last change on May 20, 2020 2:04:49 PM by
Florian Weik [Paessler Support]
Please log in or register to enter your reply.
Add comment