What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. 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

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

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



Replies

Nobody has replied yet


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.