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


SSH Script dont work

Votes:

0

Your Vote:

Up

Down

Hello I have i createt a Script in the Directory /var/prtg/scripts

#!/bin/bash
echo 0:4:users

With chmod 755 /var/prtg/scripts/script.sh i made the Script executabel

I can Select in the SSH Sensor the Script, put when the Monitor is executet I recive always the Error

Response not wellformed: "-sh: /var/prtg/scripts/wifiusers.sh: not found " (code: PE132)

I recive the same Error when I run the Script with Putty on the Client

I am new with Linux and I have now more Ideas waht could be wrong Andy

pe132 sensor ssh

Created on Apr 12, 2015 9:25:15 AM by  prtgandy (10) 1

Last change on Apr 13, 2015 8:13:22 AM by  Torsten Lindner [Paessler Support]



5 Replies

Votes:

1

Your Vote:

Up

Down

Hi

Im no expert with Linux myself but if that is the only command you ran, then you havn't made the file executable, that simply changes the permissions on the file.

to make that file executable you would need to run: chmod +x /var/prtg/scripts/script.sh

Im sure someone here will correct me if I am wrong.

Created on Apr 13, 2015 9:28:19 AM by  twazok (10) 1



Votes:

0

Your Vote:

Up

Down

Dear prtgandy

Is your script now running, using the chmod hint of twazok?

Created on Apr 14, 2015 9:45:09 AM by  Arne Seifert [Paessler Support]



Votes:

0

Your Vote:

Up

Down

Hello

Thx for the answer. Unfortunately I always receive the Error not found :-(

Andy

Created on Apr 14, 2015 1:24:54 PM by  prtgandy (10) 1



Votes:

0

Your Vote:

Up

Down

Did you also make wifiusers.sh executable? In the script.sh, do you call wifiusers.sh with the full path name?

Created on Apr 15, 2015 8:59:19 AM by  Arne Seifert [Paessler Support]



Votes:

1

Your Vote:

Up

Down

I have found the Solution

The Device don't need the trailer

  1. !/bin/bash

Andy

Created on Apr 17, 2015 7:09:57 AM by  prtgandy (10) 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.