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


NFS mount

Votes:

0

Your Vote:

Up

Down

Is there a way to monitor NFS mount through PRTG and then execute certain commands if the mount has gone stale?

Thanks.

nfs prtg stale

Created on Apr 17, 2019 1:38:05 PM by  user243 (0) 1



7 Replies

Votes:

0

Your Vote:

Up

Down

Hello,

Can you clarify for me what you mean by stale?

We can monitor them, I just need to understand the criteria so we can see if PRTG can detect when it's gone stale.

Benjamin Day
Paessler Support

Created on Apr 17, 2019 2:05:11 PM by  Benjamin Day [Paessler Support]



Votes:

0

Your Vote:

Up

Down

Hi Benjamin,

For example when I run df -Th, I don't get any response as one of the mount has gone stale (maybe due to a network issue with remote server the mount is lost). A force remount in this case does not work. Only way to get the mount back is to reboot the server.

Thanks.

Created on Apr 17, 2019 2:34:31 PM by  user243 (0) 1



Votes:

0

Your Vote:

Up

Down

Hello,

So here is what I would recommend. Our SSH Disk Free sensor can detect NFS Shares as well as disk partitions.

Use this to monitor the NFS share, and then let me know how the sensor behaves when the share goes stale. If I'm right, the sensor should show nothing for disk free, which we can then use as a trigger to enact something.

This could be a script to that host to attempt to remount the share, or even reboot the machine.

Let me know.

Benjamin Day
Paessler Support

Created on Apr 18, 2019 7:23:35 AM by  Benjamin Day [Paessler Support]



Votes:

0

Your Vote:

Up

Down

Hi Benjamin,

Thanks for your response. It's been bit of a delay. I am now monitoring the NFS share. Is there a guide on triggering scripts if there is no response or if sensor does not show anything?

Thanks.

Created on Jul 3, 2019 2:43:49 PM by  user243 (0) 1



Votes:

0

Your Vote:

Up

Down

Hello,

Yes, you can do this by creating a Notification Template that uses the option to Execute Program. Then you can have it run any script you would like by adding a Notification Trigger that uses the template.

Does this all make sense?

Benjamin Day
Paessler Support

Created on Jul 3, 2019 9:05:58 PM by  Benjamin Day [Paessler Support]



Votes:

0

Your Vote:

Up

Down

Hi Benjamin,

So if I need to reboot the server via Notification template using Execute Program, then where will this script be triggered from? Will it be external to the server? Or does it need to reside in directory inside the server itself which needs rebooting?

Also, as I am already using the SSH Disk Free sensor, does this mean that I will still have to add SSH credentials inside the script? Or will only a reboot command suffice?

Thanks.

Created on Jul 16, 2019 10:10:25 AM by  user243 (0) 1



Votes:

0

Your Vote:

Up

Down

Hello,

The script itself will reside on the PRTG server. You can choose from *.exe, *.bat, *.cmd, *.com or *.ps1 files located in the Notifications/exe subfolder of your PRTG installation. If this list is empty, please copy all files you want to appear to the executables directory. The script will execute as if you were running it from a terminal on the PRTG server.

Thanks!
Benjamin Day
Paessler Support

Created on Jul 16, 2019 10:19:54 PM by  Benjamin Day [Paessler Support]



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.