Limiting the script
Greetings
|
Could you please post the script here, we've a look at it!!
|
how can i do the code tag to share my script, it say too short to code tag
|
You can wrap it in ""
Quote:
|
As you're replying just above where there is "bold", underline there should be something like a notepad, and it's the last after link
|
This is my script
|
OK, i've also set up a cron to execute every 17 minutes and i'll be monitoring it, however make sure to close off your script with an fi at the end of it all, use:
Quote:
|
In the mean time can you post results for
Quote:
|
Below is the output
Quote:
|
Quote:
The package name on most distros is quota. On my CentOS server: Code:
[~]$ rpm -q quota http://www.yolinux.com/TUTORIALS/Lin...ialQuotas.html There's a nice video covering disk quotas by Robb Tracey for the Linux+ Exam study material. |
quota is for limiting users and/or groups in the amt of disk space they use.
This is not the same as worrying about the total disk space used.... |
Hey, i've tested your script and it sends me mail every 15 mins to remind me of disk usage, however that's after i set the THRESHOLD to like 9. Am wondering when your THRESHOLD=85 why would it send you an email in the first place when your:
Quote:
Quote:
|
I am using the script to monitor the disk space of the folder. When the folder storage crosess more than 85 %
it will send an alert. So, it's generating the alert every 17 min. My utlimate aim is to limit the script to send the alert only one time instead of multiple alerts. For enabling the disk quota we dont have permission hence we are using the alert script in place to monitor. |
Your OP (post #1) says 'Last edited by manju98458; Yesterday at 18:42. '
Now there is no script to look at; why did you delete it? re script in post #7 Code:
set -x Code:
#!/bin/bash Please post your current version of the script and confirm the threshold and actual disk percentages. As noted above, you claim threshold = 85, but your actual results as claimed don't have a number >= to that ... |
chris,script is same as in #7 and cron is running every 17 min to monitor the disk folder. When the folder size reaches 85 % it should generate only one mail per hour.
|
All times are GMT -5. The time now is 05:54 PM. |