Slide

  • LINUX

    LINUX:In 1969 AT&T made a decision to withdraw Multics and go with GECOS (General Electric Comprehensive Operating Supervisor / System), with AT & T in Bells Lab when Multics was withdrawn some of the programmers named Ken Thompson and Dennis Ritchie decided to rewrite operating system in order to support low cost computer..To Know More

    CLICK HERE

  • MICROSOFT

    MICROSOFT:Microsoft was established to develop and sell BASIC interpreters for the Altair 8800. It rose to dominate the home computer operating system market with MS-DOS in the mid-1980s,followed by the Microsoft Windows line of operating systems. To Know More

    CLICK HERE

  • CISCO

    CISCO:During the early 1980s, there was a married couple namely Len and Sandy Bosack who used to work in two different departments of computer located in Stanford University. This couple was facing problem in making their computers communicate with each other To Know More

    CLICK HERE

showinfo=1

Linux Script To Check Disk Space


Linux Script To Check The Disk Space and Send Mail if Limit Crossed.



we will create a script which will check the / disk space and send a mail if it crosses 80% of disk usage.

#cd  /scripts
#vi  diskspace.sh

#!/bin/bash
CURRENT=$(df / | grep / | awk '{ print $5}' | sed 's/%//g')
THRESHOLD=80

if [ "$CURRENT" -gt "$THRESHOLD" ] ; then
mail -r  diskreport@ittables.com  -s 'Disk Space Alert' admin@ittables.com << EOF
Your /  partition remaining free space is critically low. Used: $CURRENT%
EOF
fi


save and exit

#chmod  +x  diskspace.sh

For periodic check that is daily to run this script i.e every 6 hrs

#crontab  -e

*  */6  *  *  *  /scripts/diskspace.sh

save and exit


Now the above script will run in every 6 hrs

Note:- to mail stuff postfix or sendmail should be configured properly.




37 comments:

  1. I have not much time to visit many websites. But today I found this site accidently. I explored much information which is useful to my life. Thanks!
    http://www.dralihealth.com |

    ReplyDelete
  2. Your blog is really nice and unique.I like it so much. Looking forward to going over your web page again. Thanks for sharing.
    www.thebusinessfinder.org |

    ReplyDelete
  3. Very interesting article. I would love to read the book “Start with Why”, by Simon Sinek. I think he has taken a great topic to deal with.
    ronthomhome4sale.com |

    ReplyDelete
  4. Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It's always nice when you can not only be informed, but also entertained!
    http://www.adamsbusinessconsulting.com |

    ReplyDelete
  5. A good informative post that you have shared and appreciate your work for sharing the information.
    www.volzbrosauto.com |

    ReplyDelete
  6. I agree with you. This post is truly inspiring. I like your post and everything you share with us is current and very informative, I want to bookmark the page so I can return here from you that you have done a fantastic job.
    www.autoshutotaska.com |

    ReplyDelete
  7. I recently found many useful information in your website especially this blog page. Among the lots of comments on your articles. Thanks for sharing.
    www.stonewedgetechnology.com |

    ReplyDelete
  8. Superbly written article, if only all bloggers oered the same content as you, the internet would be a far better place..
    computersupportetc |

    ReplyDelete
  9. Excellent and decent post. I found this much informative, as to what I was exactly searching for.The Article is quite impressive and thoughts been put up has clearly got something to state.
    http://www.vfarm.info |

    ReplyDelete
  10. It was wondering if I could use this write-up on my other website, I will link it back to your website though.Great Thanks.
    belarusforjournalists |

    ReplyDelete
  11. Generally I do not read article on blogs, but I wish to say that this write-up very compelled me to check out and do so! Your writing style has been amazed me. Thanks, very nice post.
    Simple Business Group |

    ReplyDelete
  12. The mesh of the sword is surely better than the previous version, so keep working on it.
    http://www.mfitnesslonetree.com |

    ReplyDelete
  13. Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It's always nice when you can not only be ihealthynightlight.com |

    nformed, but also entertained!

    ReplyDelete
  14. This article gives the light in which we can observe the reality. This is very nice one and gives indepth information. Thanks for this nice article.
    www.themotechnetwork.com |

    ReplyDelete
  15. Hi, just wanted to mention, I liked this post. It was helpful. Keep on posting!
    www.used-toyota-cars.com |

    ReplyDelete
  16. hey, i have been looking for this kind of informative articles for such a long time, and i am really lucky to find out your work here.It is useful when i do that by myself or could make me know more clear on dealing with these issues. buy runescape gold , runescape gold
    Food Lovers Miami |

    ReplyDelete
  17. You might write about the services on the blog. You should disclose it's refreshing. Your blog conclusion could accelerate your shoppers.
    www.pro-autogas.com |

    ReplyDelete
  18. I enjoy what you guys are usually up too. This type of clever work and exposure! Keep up the amazing works guys I’ve incorporated you guys to my personal blogroll.
    http://www.fourthsectorhealth.com |

    ReplyDelete
  19. Hey there! This is my first visit to your blog! We are a collection of volunteers and starting a new project in a community in the same niche. Your blog provided us useful information to work on. You have done a extraordinary job!
    ortechmgt |

    ReplyDelete
  20. It's very easy to find out any topic on net as compared to textbooks, as I found this article at this website. 
    realmexteriors |

    ReplyDelete
  21. You have a real ability for writing unique content. I like how you think and the way you represent your views in this article. I agree with your way of thinking. Thank you for sharing.
    unblocked games| unblocked games at school| unblocked games| friv4school| friv for school| friv games| frivgames| kizi2| kizi 2
    unblockedgames| unblocked games at school| friv 4 school| friv4school| free online games| free online games| jogos da barbie| kizi

    ReplyDelete
  22. Thanks for the great post. Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts.
    agario|agar io|agar.io|agar|agario game|agario skins|agario extended|agario mods|agario|agar io

    ReplyDelete
  23. Age of War

    In this game, you start at the cavern men's age, then evolve! There is a total of 5 ages, each with its units and turrets. Take control of 16 different units and 15 different turrets to defend your base and destroy your enemy.
    Age of War

    Age of War 2

    ReplyDelete
  24. Strike Force Heroes
    is a new game action-packed shooter from the creators of Raze; with 3 game modes, 15 campaign missions and over 65 weapons.
    Strike Force Heroes 1
    For moving in the game you must use the keys Strike Force Heroes 1 or the arrows keys. If you want to jump you can use the keys Up, Space or W. For switching weapon you can use Q or Shift.
    Strike Force Heroes 2
    is here, much fun. In the second installment of the action-packed shooting game you have to take over your enemy space base at all costs. Move and shoot through several missions and don’t forget to kill all baddies.

    ReplyDelete
  25. Thank you for sharing your thoughts.I truly appreciate your post thank you once again. http://previewspolice.weebly.com/

    ReplyDelete
  26. We are really grateful for your blog post. You will find a lot of approaches after visiting your post. Great work.

    ReplyDelete
  27. The war between humans, orcs and elves continues tank trouble . Lead your race through a series of epic battles, using your crossbow to fend off foes and sending out units to destroy castleshappy wheels . Researching and upgrading wisely will be crucial to your success! There are 5 ages total and each one will bring you new units to train to fight in the war for you cause.earn to die game vip Whatever you do, don’t neglect your home base because you cannot repair it and once it is destroyed, you lose! Age of War is the first game of the series and really sets the tone for the Age of War games . Also try out the Age of Defense series as it is pretty similar.
    In this game, you start at the cavern men’s age, then evolvetank trouble game! There is a total of 5 ages, each with its units and turrets. Take control of 16 different units and 15 different turrets to defend your base and destroy your enemy.
    The goal of the game also differs depending on the level. In most levels the goal is to reach a finish line or to collect tokens. Many levels feature alternate or nonexistent goals for the player. The game controls are shown just under gold mine. Movement mechanisms primarily include acceleration and tilting controls.
    It consists of a total of 17 levels and the challenge you face in each level increases as you go up. unfair mario The game basically has a red ball that has to be moved across the various obstacles in its path to the goal. slitherio

    ReplyDelete
  28. This is one of the cult game now, a lot of people enjoy playing them . Also you can refer to the game :
    gold mine strike | pokemon go 2
    The game controls are shown just under . Movement mechanisms primarily include acceleration and tilting controls.
    stickman games | stick war 2 | animal jam 2

    ReplyDelete
  29. Such a very useful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article.

    Discover our website bounty of free online games now!
    Our website has the biggest collection of free online games. Totally new games are added every day!

    age of War | gold Miner| unfair Mario | cubefield| tanki Online

    ReplyDelete
  30. With a Hotmail account, you can send and receive emails quickly and easily as well as login and use all Microsoft services.
    hotmail login | create new hotmail account
    Creating a Gmail account is quick and easy. You can follow the tutorial to sign up Gmail here.
    gmail login | gmail sign in | install google drive

    ReplyDelete

Note:- Comment as: Option available to post without login select "Anonymous" from the drop down...........

For Latest Updates: Subscribe Now | | Test Your Knowledge, Take a Quiz now Click Here | | Site Best Viewed In Firefox

X