<?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: Monitoring logfile growth in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-logfile-growth/m-p/3206716#M792962</link>
    <description>Check out logrotate - may save you time and effort:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.ee.ualberta.ca/hppd/hpux/Sysadmin/logrotate-2.5/" target="_blank"&gt;http://hpux.ee.ualberta.ca/hppd/hpux/Sysadmin/logrotate-2.5/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
    <pubDate>Tue, 02 Mar 2004 10:57:26 GMT</pubDate>
    <dc:creator>Geoff Wild</dc:creator>
    <dc:date>2004-03-02T10:57:26Z</dc:date>
    <item>
      <title>Monitoring logfile growth</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-logfile-growth/m-p/3206708#M792954</link>
      <description>hi,&lt;BR /&gt;I created a logfile template with several conditions. But now, i want to monitor the size of my logfile (generate a message when the logfile is bigger than 10Mega for example).&lt;BR /&gt;How can I make this ?&lt;BR /&gt;1 - is it possible to monitor the size of the logfile in the same template logfile ?&lt;BR /&gt;2 - I must create a monitor template (program type) that launch a script which return the size of this file ?&lt;BR /&gt;Please, someone can give me an idea...&lt;BR /&gt;Thanks&lt;BR /&gt;Delphine.</description>
      <pubDate>Tue, 02 Mar 2004 08:16:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-logfile-growth/m-p/3206708#M792954</guid>
      <dc:creator>koff</dc:creator>
      <dc:date>2004-03-02T08:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring logfile growth</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-logfile-growth/m-p/3206709#M792955</link>
      <description>let testlog='ll|awk '{print $5}''&lt;BR /&gt;if [ "$testlog" -gt 1000 ]&lt;BR /&gt;then&lt;BR /&gt;echo "The log file is too big."&lt;BR /&gt;&lt;BR /&gt;I have used the number 1000 - you can substitute any number you choose. Save this as an executable shell script and run it as a cron job as often as you need.&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)</description>
      <pubDate>Tue, 02 Mar 2004 08:24:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-logfile-growth/m-p/3206709#M792955</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2004-03-02T08:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring logfile growth</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-logfile-growth/m-p/3206710#M792956</link>
      <description>Hi Delphine,&lt;BR /&gt;&lt;BR /&gt;Sam has a "routine task" for systemlog files, just fire up sam "Routine Tasks" " Systems Log Files" "action" add a logfile.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Tue, 02 Mar 2004 08:27:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-logfile-growth/m-p/3206710#M792956</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2004-03-02T08:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring logfile growth</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-logfile-growth/m-p/3206711#M792957</link>
      <description>Put the following code in your script-monitor script itself or may be a seperate script.&lt;BR /&gt;&lt;BR /&gt;size=`ll "file_to_monitor"|awk '{print $5}'`&lt;BR /&gt;(This will be in bytes)&lt;BR /&gt;&lt;BR /&gt;if [ $size -ge 10000 ]&lt;BR /&gt;then&lt;BR /&gt;mailx "your stuff" xyz@abc.com&lt;BR /&gt;fi&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Mar 2004 08:29:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-logfile-growth/m-p/3206711#M792957</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-03-02T08:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring logfile growth</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-logfile-growth/m-p/3206712#M792958</link>
      <description>These thread might help you,,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=52081" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=52081&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=66144" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=66144&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=57218" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=57218&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://tinyurl.com/2pux9" target="_blank"&gt;http://tinyurl.com/2pux9&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Karthik S S</description>
      <pubDate>Tue, 02 Mar 2004 08:33:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-logfile-growth/m-p/3206712#M792958</guid>
      <dc:creator>Karthik S S</dc:creator>
      <dc:date>2004-03-02T08:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring logfile growth</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-logfile-growth/m-p/3206713#M792959</link>
      <description>I thought I'd do this one, just because it's perl&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;perl -e 'map { if(((stat $_)[7])&amp;gt;1048576){print "TOO BIG"}} glob "logfile*"'&lt;BR /&gt; &lt;BR /&gt;It does it for all files that have the name "logfile*" and prints "TOO BIG" if they are over 10MB.  You can adjust it easily.&lt;BR /&gt; &lt;BR /&gt;Merijn will have this down to a three byte script any time now.</description>
      <pubDate>Tue, 02 Mar 2004 08:53:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-logfile-growth/m-p/3206713#M792959</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-03-02T08:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring logfile growth</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-logfile-growth/m-p/3206714#M792960</link>
      <description>Thanks for all your answer&lt;BR /&gt;I understant now how to get the size of my logfile in a shell script.&lt;BR /&gt;But one more question :&lt;BR /&gt;What is cron and SAM ?&lt;BR /&gt;&lt;BR /&gt;NB : I want to create a SPI which integrated a logfile and i want to create a monitor that control the size of this logfile...&lt;BR /&gt;&lt;BR /&gt;thanks u&lt;BR /&gt;//(^_^)\\&lt;BR /&gt;Delphine.</description>
      <pubDate>Tue, 02 Mar 2004 10:00:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-logfile-growth/m-p/3206714#M792960</guid>
      <dc:creator>koff</dc:creator>
      <dc:date>2004-03-02T10:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring logfile growth</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-logfile-growth/m-p/3206715#M792961</link>
      <description>cron is a list of jobs that run at specified times. See the current cron jobs by typing crontab -l&lt;BR /&gt;&lt;BR /&gt;SAM = system administration manager.&lt;BR /&gt;&lt;BR /&gt;Type sam on the command line and sam will load.&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Tue, 02 Mar 2004 10:05:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-logfile-growth/m-p/3206715#M792961</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2004-03-02T10:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring logfile growth</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-logfile-growth/m-p/3206716#M792962</link>
      <description>Check out logrotate - may save you time and effort:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.ee.ualberta.ca/hppd/hpux/Sysadmin/logrotate-2.5/" target="_blank"&gt;http://hpux.ee.ualberta.ca/hppd/hpux/Sysadmin/logrotate-2.5/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 02 Mar 2004 10:57:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-logfile-growth/m-p/3206716#M792962</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-03-02T10:57:26Z</dc:date>
    </item>
  </channel>
</rss>

