We are currently testing using PRTG for network and server monitoring. We run Windows Servers and Ubuntu servers.
I am a Windows tech, but need to get PRTG monitoring our Ubuntu Linux servers. I have the basic out of box probes running on Ubuntu, and am currently collecting data.
We would like to look into running SSH script probes on the Linux systems. We want to monitor master/slave replication, Docker activities, and MySql activitiies.
I have read the Linux system needs to have the API installed and have our scripts in the PRTG folder.
I cannot figure out how to get the API on the Linux systems. Can someone shed light on how i can get the API on the Linux systems.
Thanks for the help!
-Evan
Article Comments
Thanks for your reply!
It is still not clear where I get or how to use the PRTG API to run SSH scripts on Linux.
I see mentioned that scripts need to be in the PRTG folder on the linux box, but how do i get that folder there.
Thanks
-Evan
Jan, 2019 - Permalink
Hello Evan,
Thank you very much for your response.
I have read the Linux system needs to have the API installed and have our scripts in the PRTG folder. |
May I ask where you have read this?
Usually, you must store the script file on the system of the probe where you create the sensor: If used on a remote probe, you must store the file on the system running the remote probe.
Per default, scripts are stored are stored in the following directory of the corresponding probe device:
C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors
Thank you in advance for your answer.
Sebastian
Jan, 2019 - Permalink
Thanks for your reply Sebastian!
This is right on the PRTG site...
https://www.paessler.com/manuals/prtg/ssh_script_sensor
The SSH Script sensor connects to a Linux/Unix system via Secure Shell (SSH) and executes a script file located on the target system. This option is provided as part of the PRTG Application Programming Interface (API). ....
For security reasons, you must store your script file on the target system. The file must be located in the directory /var/prtg/scripts.
....
Select a script file from the list. The dropdown menu will list all script files available in the /var/prtg/scripts directory on the target Linux/Unix system. For a script file to appear in this list, store the target file into this directory. Ensure the script has executable rights.
Jan, 2019 - Permalink
Hello evan61,
There are multiple ways of storing a script file in /var/prtg/scripts, for instance via PuTTY.
Best regards,
Sebastian
Jan, 2019 - Permalink
I am having the same issue. I created /var/prtg/scripts on the linux destination server and created a test2.sh within this directory to check for a vmtoolsd process. If running, it will produce output: 1:vmtoolsd:up If not running, it will produce output: 2:vmtoolsd:down. I also added the test2.sh script to C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors on the probe which the destination linux server is under. I still do not see my script in the dropdown list. Can someone please advise where it exactly needs to be?
Apr, 2020 - Permalink
FYI.. i figured it was a permissions issue on /var/prtg/ and /var/prtg/scripts.
Apr, 2020 - Permalink
Hello evan631,
Thank you very much for your contact.
Just to check, did you already review the following articles:
The linked article describe approaches on how to be deployed properly.
Would you please let me know, whether this suits your requirements?
Best,
Sebastian
Jan, 2019 - Permalink