<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: script for file system alert in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/script-for-file-system-alert/m-p/4366023#M35378</link>
    <description>If you just want something that is a simple notifier,&lt;BR /&gt;&lt;BR /&gt;#!/bin/bash&lt;BR /&gt;threshold="85"&lt;BR /&gt;used=$(df -h $1 | grep "\%" | awk '{print $5}' | sed -e "s/\%//)&lt;BR /&gt;[ $used -lt $threshold ] || mail -s blahblah and all the other things you want to do&lt;BR /&gt;&lt;BR /&gt;Something like that would do (untested thou) I believe. This looks at the procentages the device supplied.&lt;BR /&gt;Usage is, ./script.sh /home&lt;BR /&gt;&lt;BR /&gt;I would use some other program to handle this thou, should be alot of programs out there able to do this. Maybe Cacti or Nagios would be an idea depending on how big your environment is.&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Fredrik Eriksson</description>
    <pubDate>Thu, 26 Feb 2009 08:37:10 GMT</pubDate>
    <dc:creator>Fredrik.eriksson</dc:creator>
    <dc:date>2009-02-26T08:37:10Z</dc:date>
    <item>
      <title>script for file system alert</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-for-file-system-alert/m-p/4366019#M35374</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Do you have any script which I can use on RedHat Linux system to get the e-mail notification, once the file system reaches the threshhold limit (e.g. /opt is 97%).&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;Gab</description>
      <pubDate>Wed, 25 Feb 2009 09:28:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-for-file-system-alert/m-p/4366019#M35374</guid>
      <dc:creator>gab_in</dc:creator>
      <dc:date>2009-02-25T09:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: script for file system alert</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-for-file-system-alert/m-p/4366020#M35375</link>
      <description>&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1235555231365+28353475&amp;amp;threadId=1251298" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1235555231365+28353475&amp;amp;threadId=1251298&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Check this .It may help you.</description>
      <pubDate>Wed, 25 Feb 2009 09:48:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-for-file-system-alert/m-p/4366020#M35375</guid>
      <dc:creator>Sameer Kelkar</dc:creator>
      <dc:date>2009-02-25T09:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: script for file system alert</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-for-file-system-alert/m-p/4366021#M35376</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1317010" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1317010&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Its a HP-UX thread but the code will work for Linux.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 25 Feb 2009 11:36:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-for-file-system-alert/m-p/4366021#M35376</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-02-25T11:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: script for file system alert</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-for-file-system-alert/m-p/4366022#M35377</link>
      <description>If you're running an HP Proliant server, the Proliant Support Pack (more specifically, the System Management Homepage) supports filesystem threshold notifications:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h20000.www2.hp.com/bizsupport/TechSupport/DriverDownload.jsp?prodNameId=3716247" target="_blank"&gt;http://h20000.www2.hp.com/bizsupport/TechSupport/DriverDownload.jsp?prodNameId=3716247&lt;/A&gt;〈=en&amp;amp;cc=us&amp;amp;prodTypeId=18964&amp;amp;prodSeriesId=3716246&amp;amp;taskId=135&lt;BR /&gt;&lt;BR /&gt;Note: It by default sends the email to 'root' on the local system. I typically just setup an alias to my email address for root in /etc/aliases for sendmail.&lt;BR /&gt;&lt;BR /&gt;HTH</description>
      <pubDate>Wed, 25 Feb 2009 15:17:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-for-file-system-alert/m-p/4366022#M35377</guid>
      <dc:creator>Steven McCoy</dc:creator>
      <dc:date>2009-02-25T15:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: script for file system alert</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-for-file-system-alert/m-p/4366023#M35378</link>
      <description>If you just want something that is a simple notifier,&lt;BR /&gt;&lt;BR /&gt;#!/bin/bash&lt;BR /&gt;threshold="85"&lt;BR /&gt;used=$(df -h $1 | grep "\%" | awk '{print $5}' | sed -e "s/\%//)&lt;BR /&gt;[ $used -lt $threshold ] || mail -s blahblah and all the other things you want to do&lt;BR /&gt;&lt;BR /&gt;Something like that would do (untested thou) I believe. This looks at the procentages the device supplied.&lt;BR /&gt;Usage is, ./script.sh /home&lt;BR /&gt;&lt;BR /&gt;I would use some other program to handle this thou, should be alot of programs out there able to do this. Maybe Cacti or Nagios would be an idea depending on how big your environment is.&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Fredrik Eriksson</description>
      <pubDate>Thu, 26 Feb 2009 08:37:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-for-file-system-alert/m-p/4366023#M35378</guid>
      <dc:creator>Fredrik.eriksson</dc:creator>
      <dc:date>2009-02-26T08:37:10Z</dc:date>
    </item>
  </channel>
</rss>

