What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
300.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

Can PRTG communicate with MODBUSS or bacnet devices?

Votes:

0

Your Vote:

Up

Down

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

bacnet modbus serial

Created on Jul 12, 2012 2:56:18 PM by  Josh Zitting (0) 1



4 Replies

Accepted Answer

Votes:

6

Your Vote:

Up

Down

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 ;-)

Created on Apr 20, 2015 4:00:11 PM by  Arnd Gohr (110) 1



Votes:

0

Your Vote:

Up

Down

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

Created on Apr 21, 2015 5:22:25 AM by  Felix Saure [Paessler Support]



Votes:

0

Your Vote:

Up

Down

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

Created on Feb 4, 2019 1:09:27 PM by  cawe (0)



Votes:

3

Your Vote:

Up

Down

Created on Feb 4, 2019 3:52:00 PM by  Dirk Paessler (150) 1



Please log in or register to enter your reply.


Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.