New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

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

Free PRTG
Download >>

 

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

 

Top Tags


View all Tags


advanced exe script error (PE018)

Votes:

0

Your Vote:

Up

Down

Hi, I build a simple SSH script but is not executed and I get the time out error.

Here the script

"<prtg>"

New-SSHSession -ComputerName 172.20.3.1 -Credential $Credential -AcceptKey >$null

    "<result>"
    "   <channel>TEST</channel>"
        "   <value>"

    if ($Res = Invoke-SSHCommand -Index 0 -Command "ping -c 1 172.20.1.1" > $null)

    {
        "1"
        "   </value>"
        "   <float>"
        "1"
    }

    else

    {
        "0"
        "   </value>"
        "   <float>"
        "0"
    }

"       </float>"
"    </result>"
"</prtg>"

Debbuging the sensor I only the file with (Sensor#).Data.txt but not the (Sensor#).txt

Any Idea?
Thanks

exe pe018 prtg

Created on Jun 2, 2019 9:37:10 AM by  Luigi (0) 1

Last change on Jun 3, 2019 5:15:37 AM by  Sven Roggenhofer [Paessler Technical Support]



3 Replies

Votes:

0

Your Vote:

Up

Down

If anything, that'd be PowerShell, from what I can tell :) What are you trying to achieve here? Pinging a host via another one? The SSH Remote Ping Sensor might be what you're looking for.


PRTGapi | Feature Requests | WMI Issues | SNMP Issues

Kind regards,
Stephan Linke, Tech Support Team

Created on Jun 3, 2019 10:07:03 AM by  Stephan Linke [Paessler Support]



Votes:

0

Your Vote:

Up

Down

This is an example. I'm trying to execute commands on a Remote machine to collect some data from server unreachable from PRTG. Those server and the bridge server are all Linux servers.

The problem is that I get that error PE018 but when I execute the command from shell the execution is almost instantaneous.

Also the log file for this sensor do not generate the sensor.txt file but only the one data.txt

Any suggestion?

Thanks

Created on Jun 7, 2019 9:45:34 AM by  Luigi (0) 1



Votes:

0

Your Vote:

Up

Down

But the script is somewhat messy and won't work :) Check out the following for running commands on SSH hosts: https://kb.paessler.com/en/topic/71923-monitoring-linux-distributions-incompatible-with-the-ssh-disk-free-sensor

Note that we can't help with the modification or development of scripts in general :)

Created on Jun 7, 2019 12:16:09 PM by  Stephan Linke [Paessler Support]



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.