Does Anyone know if PRTG can use MODBUS? if yes how do i set it up? What about Bacnet? Thanks!!! Josh


Article Comments

Hi Josh, we are using a Custom Script Sensor and the modpoll.exe program. The modpoll program is a command line tool to access a MODBUS System and available at the internet.

Here is the script we are using (not 100% finished):

Param(
  [Parameter(Mandatory=$true,Position=1)]
  [string]$SlaveIP,
	
  [Parameter(Mandatory=$true,Position=2)]
  [string]$SlaveID,

  [Parameter(Mandatory=$true,Position=3)]
  [int]$ReadAddress,

  [Parameter(Mandatory=$false,Position=4)]
  [single]$Divisor=1

)
cd "C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXE"
$Response = @(.\modpoll.exe -m tcp -a $SlaveID -r $ReadAddress -t 3 -1 -0 $SlaveIP)

if ($Response.Count -ge 1)
{
    if ($Response[$Response.Count -1].Contains("[$ReadAddress]:"))
    {
        $TmpResult = $Response[$Response.Count -1].Split(':')
        $Result = [single]$TmpResult[1]
        if ($Result -le 0)
        {
            $Result = $Result + 65536
        }
        $iResult = [single]($Result / $Divisor)

        Write-Host "$iResult :OK"

    }
}

The script parameter are <MODBUS slave IP or DNS> <Slave address> <MODBUS address to read> <Divisor (optional)>

Hope this helps ;-)


Apr, 2015 - Permalink

Hi Arnd,

Thank you very much for sharing your script with us! It would be great if you could also post the final result when you finished the script!

Best regards


Apr, 2015 - Permalink

Is there any news on this topic ? Thank you all in advance


Feb, 2019 - Permalink

Here is a blog post about the basics of Modbus and PRTG:

https://dirkpaessler.blog/2019/02/04/the-basics-of-modbus-monitoring-with-prtg-network-monitor/


Feb, 2019 - Permalink

Hello all,

I am interested in the interaction between PRTG and Bacnet.

I haven't had anything to do with Bacnet so far, so unfortunately I don't have any experience of what to look out for. We would like to query bacnet components with prtg and display the collected information.

I have read the blog post that PRTG supports Bacnet. Unfortunately, I have not yet found any detailed instructions. Are there any new features that I haven't found yet or some useful examples on the subject that I could take a look at?

I would be very grateful for some pointers or help.

Many thanks in advance


Mar, 2022 - Permalink