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

SSH Script

Votes:

1

Your Vote:

Up

Down

Having an issue getting PRTG to see the script in /var/prtg/scripts/prtg.sh The scripts works if executed via putty over ssh, when adding the sensor it also connects, but the file is not listed in the selection drop like it would if it was for a windows box.

#!/bin/bash
cd /Storage/0747/Current
FILE=./UP_ALERT_DO-NOT-DELETE.txt
if
    [ -f "$FILE" ]
then
    echo "0:200:File System Found."    # returncode 0 = put sensor in OK status
else
    echo "4:500:File System Not Found."    # returncode 4 = put sensor in DOWN status
fi
exit

custom-sensor linux ssh-script

Created on Oct 18, 2019 7:35:19 PM by  TMotto (4) 1

Last change on Oct 21, 2019 7:58:39 AM by  Torsten Lindner [Paessler Support]



Replies

Nobody has replied yet

Why not be the first?

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.