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

Custom SSH Sensor for AIX

Votes:

0

We are attempting to do a custom SSH script to an UNIX/AIX OS. However we are having issues getting the system to return a value PRTG can use for up and down.

here is the bat file PRTG calls to start the sensor: plink.exe -batch -ssh root@localhost -pw Password -m "c:\Path\To\Script\linux.txt"

here is the linux.txt commands: 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

However, PRTG doesn't see the echo response? Any help? Please note this is AIX and the native SSH sensors do not work on AIX OS.

aix custom-sensor ssh

Created on Oct 4, 2019 10:40:29 PM



3 Replies

Accepted Answer

Votes:

0

Hello,

If you're asking PRTG to call the batch file, then you need to have the batch file output the return in the correct format PRTG expects.

Go to Setup -> PRTG API -> Custom Sensors. In there you'll see how we expect sensor output to look.

Basically, you should be able to execute the batch file manually, and it returns only the data for PRTG.

Does this make sense?

Benjamin Day
Paessler Support

Created on Oct 5, 2019 1:42:53 AM by  Benjamin Day [Paessler Support] (1,441) 2 1



Votes:

0

Yes it does, I was hoping to have an automated via PRTG, I guess the other way would be to automated it via task scheduler and have PRTG look at the response.

Created on Oct 7, 2019 3:50:41 PM



Votes:

0

Yes, that would work as well.

Benjamin Day
Paessler Support

Created on Oct 7, 2019 10:13:42 PM by  Benjamin Day [Paessler Support] (1,441) 2 1




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.