Codeigniterbrasil - Chuyên trang tin tức công nghệ hàng đầu
  • Home
  • Công Nghệ
  • Lập Trình Linux
  • Lập Trình PHP
  • Điện Thoại
No Result
View All Result
  • Home
  • Công Nghệ
  • Lập Trình Linux
  • Lập Trình PHP
  • Điện Thoại
No Result
View All Result
Codeigniterbrasil - Chuyên trang tin tức công nghệ hàng đầu
No Result
View All Result

Monitoring Disk Space utilization and Send Email Alert

admin by admin
May 21, 2020
in Lập Trình Linux
20
Monitoring Disk Space utilization and Send Email Alert



Monitoring Disk Space utilization and Send Email Alert. Using this shell script we can monitor all mount point usage based on specified threshold value it will send an email alert to email address specified in script.

Facebook Page:
LinkedIn Profile:
Google Plus:
Twitter:
RSS Feed:
GetPocket:
Reddit:
Tumblr:

Nguồn: https://codeigniterbrasil.com

Xem thêm bài viết khác: https://codeigniterbrasil.com/lap-trinh-linux/

Xem thêm Bài Viết:

  • Hướng dẫn sử dụng hệ điều hành linux siêu tốc – bài 25 Xem cấu hình hệ thống (cpu, ram, hdd)
  • Linux cat command summary with examples
  • Cài nhiều hệ điều hành Windows và Linux trên một máy tính
  • Hướng dẫn tạo USB Boot DLC2019 (NTFS / UEFI) Trên windows 10 ( sử dụng USB 32 GB )
  • Hướng dẫn gỡ bỏ Ubuntu sạch sẽ nhất bằng lệnh trên Windows theo chuẩn UEFI-GPT
Previous Post

Trộm xe chống Hiêp sĩ Nguyễn Thanh Hải

Next Post

Chi Pu | ĐÓA HOA HỒNG (QUEEN) - Official M/V Dance Version

Next Post
Chi Pu | ĐÓA HOA HỒNG (QUEEN) – Official M/V Dance Version

Chi Pu | ĐÓA HOA HỒNG (QUEEN) - Official M/V Dance Version

Comments 20

  1. Tech Arkit says:
    2 years ago

    Is the Script is useful.? Did you tested. Please post your feedback.

    Reply
  2. Zahira CHOUIBA says:
    2 years ago

    where can i find the script written ?

    Reply
  3. srikanth R says:
    2 years ago

    Hi Ravi
    I am facing error while running script
    Saying unexpected token ' | '
    Line for path in

    Reply
  4. Kadambeswaran S says:
    2 years ago

    Thanks, this works absolutely fine. We have around 25 servers and I need to execute the same on all 25 servers at a time. Also, need to export the results of all servers to a single excel file. Is it possible?

    Reply
  5. R L says:
    2 years ago

    Im a bit confused on the $mailto variable didnt see how did you setup the email service to receive notification when alerts are triggered .

    Reply
  6. Rko _ says:
    2 years ago

    how u create template

    Reply
  7. Tabby Tabrez says:
    2 years ago

    You use in previous video

    If [ -n ……]

    What is the use of -n here

    Reply
  8. MANGESH says:
    2 years ago

    hi sir, can i send this data to some program instead of mailing?

    Reply
  9. Gowtham Kathirvel says:
    2 years ago

    what is /tmp/temp ?
    is it a dir already been created ?

    Reply
  10. Pabitra Sahu says:
    2 years ago

    [ec2-user@ip-172-31-37-189 ~]$ cat diskuti.sh

    #!/bin/bash

    #Purpose : Disk space utilization and deletion

    #diskuti file Created on Sat Aug 3 20:53:10 UTC 2019

    # START #

    THRESHOLD=40

    MAILTO="ec2-user"

    HOSTNAME=$(hostname)

    touch /tmp/temp

    for path in $(/bin/df -h | grep -vE 'filesystem|tmpfs' | awk '{print $5}' | sed 's/%//g')

    do

    if [ "$path" -ge $THRESHOLD ]; then

    df -h | grep "$path"% >> /tmp/temp

    fi

    done

    VALUE=$(cat /tmp/temp | wc -l)

    if [ "$VALUE" -ge 1 ]; then

    mail -s "$HOSTNAME Disk usage is critical" $MAILTO < /tmp/temp

    fi

    rm -r /tmp/temp

    [ec2-user@ip-172-31-37-189 ~]$

    [ec2-user@ip-172-31-37-189 ~]$ sh diskuti.sh

    diskuti.sh: line 13: [: Use: integer expression expected

    Hi Arkit, I tried but getting this error, May I know if I did any error on this

    Reply
  11. Harikrushna Sabat says:
    2 years ago

    Thanks and good video to understand..

    In the first If condition..under then part why we use df -h
    | grep $path%?

    Could u please explain?

    Reply
  12. Ravi Kumar says:
    2 years ago

    i woulld ike to montor few things on different server – could you please help me in writing a bash script for the following scenario: Bash script for monitoring CPU RAM Disk linux server

    Need to get the CPU & RAM & Disk usage details along with the date for multiple servers using shell script and script should be executed from the one server.

    Reply
  13. Emmanual TPM says:
    2 years ago

    Just awesome brother
    Love your channel!

    Reply
  14. Nielbert Westmonde says:
    2 years ago

    I think you better use Probeturion Tech Arkit.This is very useful and free!Just 5 minutes and ready to use.Their continuous improvement cycle is truly impressive.

    Reply
  15. Muhammad Ali says:
    2 years ago

    Is there any need of installing any package or any prerequisites before using the above process on the server?

    Reply
  16. fred kangni says:
    2 years ago

    please could you help to know which programming language could I use to build an interface web to manage the capacity of storage on the disk of my server and also setle it to serveral partition to attribuate to some profils?

    Reply
  17. Animesh Gupta says:
    2 years ago

    It's working and it helped me with my assignments! Thank you so much.

    Reply
  18. L.RAVIPRAKASH Naidu says:
    2 years ago

    How can I test for remote machines this script with in the same machine

    Reply
  19. ibrahim kalluri says:
    2 years ago

    Hi I have one script which is fetching the details from DB. Manullay it's working but while running through cron job not fetching the db details can you help on this

    Reply
  20. Rahul Akolkar says:
    2 years ago

    How to add more than 1 system in this script

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Tin Hot

Đập hộp Z590 Vision G

Trên tay Gigabyte Z590 Vision G – Sẵn sàng cho người sáng tạo nội dung

May 15, 2021
Cách khắc phục lỗi mất biểu tượng loa trong Windows 10

Cách khắc phục lỗi mất biểu tượng loa trong Windows 10

October 21, 2020
Mẹo và Thủ thuật Máy tính Mọi người Nên Biết

Mẹo và Thủ thuật Máy tính Mọi người Nên Biết

September 25, 2020
Cách nhập ảnh từ iPhone sang Mac

Cách nhập ảnh từ iPhone sang Mac

September 10, 2020
Test loa karaoke bluetooth Soundmax A-2120, có điều khiển từ xa | META.vn

Test loa karaoke bluetooth Soundmax A-2120, có điều khiển từ xa | META.vn

May 28, 2020
Review Bose Companion 50| Bộ loa vi tính cực "Xịn xò" đến từ Bose

Review Bose Companion 50| Bộ loa vi tính cực "Xịn xò" đến từ Bose

May 28, 2020
  • Liên Hệ
  • Chính Sách Bảo Mật

© 2022 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Công Nghệ
  • Lập Trình Linux
  • Lập Trình PHP
  • Điện Thoại

© 2022 JNews - Premium WordPress news & magazine theme by Jegtheme.