<?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 Filesystem monitoring script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-monitoring-script/m-p/5170376#M457923</link>
    <description>Hi,&lt;BR /&gt;I am running this script in cron job...but the problem is that even if the threshold doesn't exceed i am getting an blank e-mail for this script and if the threshold exceed i am getting the mail for the alerts which is fine. But i don't want any blank mail if threshold doesn't exceed as this unnecessary full my inbox.&lt;BR /&gt;bdf /oracle/TCP/saparch |awk 'NF==1{f=$0;getline;$0=f$0}{if($5+0&amp;gt;65)print}' &amp;gt; mailx -s"FileSystem on HOSTNAME" narendra@xxxxx.com&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Narendra</description>
    <pubDate>Mon, 20 Apr 2009 04:51:07 GMT</pubDate>
    <dc:creator>Narendra Uttekar</dc:creator>
    <dc:date>2009-04-20T04:51:07Z</dc:date>
    <item>
      <title>Filesystem monitoring script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-monitoring-script/m-p/5170376#M457923</link>
      <description>Hi,&lt;BR /&gt;I am running this script in cron job...but the problem is that even if the threshold doesn't exceed i am getting an blank e-mail for this script and if the threshold exceed i am getting the mail for the alerts which is fine. But i don't want any blank mail if threshold doesn't exceed as this unnecessary full my inbox.&lt;BR /&gt;bdf /oracle/TCP/saparch |awk 'NF==1{f=$0;getline;$0=f$0}{if($5+0&amp;gt;65)print}' &amp;gt; mailx -s"FileSystem on HOSTNAME" narendra@xxxxx.com&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Narendra</description>
      <pubDate>Mon, 20 Apr 2009 04:51:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-monitoring-script/m-p/5170376#M457923</guid>
      <dc:creator>Narendra Uttekar</dc:creator>
      <dc:date>2009-04-20T04:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Filesystem monitoring script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-monitoring-script/m-p/5170377#M457924</link>
      <description>You are getting this mail because everytime cron is running its sending output of the command to you mail as u asked it to do.&lt;BR /&gt;When ur filesystem is not &amp;gt;65 output of bdf /oracle/TCP/saparch |awk 'NF==1{f=$0;getline;$0=f$0}{if($5+0&amp;gt;65)print}' is balnk and its going to ut mailbox.&lt;BR /&gt;&lt;BR /&gt;If you do not want blank mails you have to guide it using if else statment&lt;BR /&gt;if output &amp;gt;65&lt;BR /&gt;mail&lt;BR /&gt;else&lt;BR /&gt;nothing ;)&lt;BR /&gt;&lt;BR /&gt;Let us know if you need exact statments.&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Kapil+</description>
      <pubDate>Mon, 20 Apr 2009 04:59:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-monitoring-script/m-p/5170377#M457924</guid>
      <dc:creator>Kapil Jha</dc:creator>
      <dc:date>2009-04-20T04:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Filesystem monitoring script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-monitoring-script/m-p/5170378#M457925</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Please download this file (bdfmesg) from below link you will find this is a great tool written by Mr.Bill Hassell.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1326767" target="_blank"&gt;http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1326767&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Just give &lt;BR /&gt;&lt;BR /&gt;#bdfmesg -P 80 ##to find all file system which is using 80 or more then 80 &lt;BR /&gt;&lt;BR /&gt;Like so many output you can take from bdfmesg&lt;BR /&gt;&lt;BR /&gt;Many Thanks to Mr.Bill Hassell to create a nice and useful tool. &lt;BR /&gt;&lt;BR /&gt;Suraj &lt;BR /&gt;</description>
      <pubDate>Mon, 20 Apr 2009 05:47:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-monitoring-script/m-p/5170378#M457925</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-04-20T05:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Filesystem monitoring script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-monitoring-script/m-p/5170379#M457926</link>
      <description>Hi,&lt;BR /&gt;Kapil thanks for the info...But please can you send me the exact syntax, so that i can modify the same.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Narendra</description>
      <pubDate>Mon, 20 Apr 2009 07:42:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-monitoring-script/m-p/5170379#M457926</guid>
      <dc:creator>Narendra Uttekar</dc:creator>
      <dc:date>2009-04-20T07:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Filesystem monitoring script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-monitoring-script/m-p/5170380#M457927</link>
      <description>There are a bunch of scripts to handle thresholds in this thread:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1324214" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1324214&lt;/A&gt;</description>
      <pubDate>Mon, 20 Apr 2009 09:39:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-monitoring-script/m-p/5170380#M457927</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-04-20T09:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Filesystem monitoring script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-monitoring-script/m-p/5170381#M457928</link>
      <description>you may have to put this line in some scripts say..abc.sh&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;abc=`bdf /oracle/TCP/saparch |awk 'NF==1{f=$0;getline;$0=f$0}{if($5+0&amp;gt;65)print}'`&lt;BR /&gt;&lt;BR /&gt;if [ abc != null ] ; then&lt;BR /&gt;abc &amp;gt; mailx -s"FileSystem on HOSTNAME" narendra@xxxxx.com&lt;BR /&gt;else&lt;BR /&gt;echo "free" &amp;gt;/dev/null&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Kapil+</description>
      <pubDate>Wed, 22 Apr 2009 02:44:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-monitoring-script/m-p/5170381#M457928</guid>
      <dc:creator>Kapil Jha</dc:creator>
      <dc:date>2009-04-22T02:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Filesystem monitoring script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-monitoring-script/m-p/5170382#M457929</link>
      <description>Hi,&lt;BR /&gt;Kapil i tried your script but while running gives an error [./disk2.sh[4]: abc:  not found.]&lt;BR /&gt;I don't know much of the scripting, please let me know what to correct.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Narendra</description>
      <pubDate>Wed, 22 Apr 2009 05:21:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-monitoring-script/m-p/5170382#M457929</guid>
      <dc:creator>Narendra Uttekar</dc:creator>
      <dc:date>2009-04-22T05:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Filesystem monitoring script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-monitoring-script/m-p/5170383#M457930</link>
      <description>Hi,&lt;BR /&gt;Kapil for monitoring the file system i am using this 2 scripts. But the problem with this script is that it doesn't sent me the alert for /oracle/TCP/saparch , /oracle/TCP/102_64 and /usr/sap/TCP. For all other file systems i am getting alerts. I don't know why it is not working as expected. That's why i thought i will run other script to monitor this file system.&lt;BR /&gt;Please find the attached scipts, please let me know if any correction required so that i can modify the same, so that i can start receiving the alerts for this file system as well.</description>
      <pubDate>Wed, 22 Apr 2009 05:42:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-monitoring-script/m-p/5170383#M457930</guid>
      <dc:creator>Narendra Uttekar</dc:creator>
      <dc:date>2009-04-22T05:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Filesystem monitoring script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-monitoring-script/m-p/5170384#M457931</link>
      <description>The second script is attached now...</description>
      <pubDate>Wed, 22 Apr 2009 05:43:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-monitoring-script/m-p/5170384#M457931</guid>
      <dc:creator>Narendra Uttekar</dc:creator>
      <dc:date>2009-04-22T05:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Filesystem monitoring script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-monitoring-script/m-p/5170385#M457932</link>
      <description>&lt;!--!*#--&gt;hi narenda,&lt;BR /&gt;&lt;BR /&gt;this line has bad syntax:&lt;BR /&gt;if (("${PCT}&amp;gt;${MAX_THRESH}"))&lt;BR /&gt;&lt;BR /&gt;the correct way to check if the percent is larger than allowed is:&lt;BR /&gt;&lt;BR /&gt;if [ "${PCT[$i]}" -gt "${MAX_THRESH[$i]}" ]&lt;BR /&gt;then&lt;BR /&gt;.... do some useful things&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;the '[ ]' symbols after the if statement are abbreviations for the test command, try 'man test' for more info...&lt;BR /&gt;( -gt is for "greater than" )&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;mark that you should use the arrays this way:&lt;BR /&gt;&lt;BR /&gt;${VARIABLE[$index]}&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Apr 2009 18:46:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-monitoring-script/m-p/5170385#M457932</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2009-04-22T18:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Filesystem monitoring script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-monitoring-script/m-p/5170386#M457933</link>
      <description>&lt;!--!*#--&gt;here is a possible solution in the attachment, just modify the ${CONF_FILE} variable to your needs!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Apr 2009 19:28:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-monitoring-script/m-p/5170386#M457933</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2009-04-22T19:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Filesystem monitoring script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-monitoring-script/m-p/5170387#M457934</link>
      <description>&lt;!--!*#--&gt;and this is the conf file with the thresholds...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Apr 2009 19:30:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-monitoring-script/m-p/5170387#M457934</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2009-04-22T19:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Filesystem monitoring script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-monitoring-script/m-p/5170388#M457935</link>
      <description>Hi,&lt;BR /&gt;Viktor thanks for the info...i modified the scripts as you suggested, but while executing i am getting an error as below,&lt;BR /&gt;./disk.sh[17]: /tmp/sapwork: syntax error&lt;BR /&gt;./disk.sh[17]: /opt/sapbc47: syntax error&lt;BR /&gt;./disk.sh[17]: /sapmnt/TCP: syntax error&lt;BR /&gt;./disk.sh[17]: /usr/sap/TCP: syntax error&lt;BR /&gt;&lt;BR /&gt;But /var /opt /home /tmp are excuting properly without an error but it gives an error /opt/sapbc47 &lt;BR /&gt;Please advise what syntax correction needs to do...Thanks</description>
      <pubDate>Thu, 23 Apr 2009 06:22:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-monitoring-script/m-p/5170388#M457935</guid>
      <dc:creator>Narendra Uttekar</dc:creator>
      <dc:date>2009-04-23T06:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Filesystem monitoring script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-monitoring-script/m-p/5170389#M457936</link>
      <description>&lt;!--!*#--&gt;&amp;gt;./disk.sh[17]: /tmp/sapwork: syntax error&lt;BR /&gt;&lt;BR /&gt;The config file should look like this:&lt;BR /&gt;FS[0]=/       ;     TRESH[0]=40&lt;BR /&gt;...</description>
      <pubDate>Thu, 23 Apr 2009 07:14:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-monitoring-script/m-p/5170389#M457936</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-04-23T07:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Filesystem monitoring script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-monitoring-script/m-p/5170390#M457937</link>
      <description>Hi Narendra, &lt;BR /&gt;&lt;BR /&gt;Pls try attached script. hope this will help u. &lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;Prashant</description>
      <pubDate>Thu, 23 Apr 2009 12:35:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-monitoring-script/m-p/5170390#M457937</guid>
      <dc:creator>Prashantj</dc:creator>
      <dc:date>2009-04-23T12:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Filesystem monitoring script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-monitoring-script/m-p/5170391#M457938</link>
      <description>Thanks for the solution.</description>
      <pubDate>Wed, 19 Aug 2009 06:00:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/filesystem-monitoring-script/m-p/5170391#M457938</guid>
      <dc:creator>Narendra Uttekar</dc:creator>
      <dc:date>2009-08-19T06:00:11Z</dc:date>
    </item>
  </channel>
</rss>

