<?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 Needed for Paging support when application is down in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needed-for-paging-support-when-application-is-down/m-p/3717263#M252097</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Assume that you want to look for a process called "myproc" and email/page if it isn't running:&lt;BR /&gt;&lt;BR /&gt;# [ -z "`UNIX95= ps -C myproc -o pid= -o comm=`" ] &amp;amp;&amp;amp; mailx -s "myproc" is not running!" root &amp;lt; /dev/null&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Wed, 25 Jan 2006 10:28:47 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2006-01-25T10:28:47Z</dc:date>
    <item>
      <title>Script Needed for Paging support when application is down</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needed-for-paging-support-when-application-is-down/m-p/3717262#M252096</link>
      <description>Can anyone suggest a way to page support team through a script if the application does not come up clean after a restart through cron job.The application is tuxedo based.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks to all the nice samaritans.</description>
      <pubDate>Wed, 25 Jan 2006 10:18:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-needed-for-paging-support-when-application-is-down/m-p/3717262#M252096</guid>
      <dc:creator>Hunki</dc:creator>
      <dc:date>2006-01-25T10:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Script Needed for Paging support when application is down</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needed-for-paging-support-when-application-is-down/m-p/3717263#M252097</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Assume that you want to look for a process called "myproc" and email/page if it isn't running:&lt;BR /&gt;&lt;BR /&gt;# [ -z "`UNIX95= ps -C myproc -o pid= -o comm=`" ] &amp;amp;&amp;amp; mailx -s "myproc" is not running!" root &amp;lt; /dev/null&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 25 Jan 2006 10:28:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-needed-for-paging-support-when-application-is-down/m-p/3717263#M252097</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-01-25T10:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Script Needed for Paging support when application is down</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needed-for-paging-support-when-application-is-down/m-p/3717264#M252098</link>
      <description>Hi,&lt;BR /&gt;add a cronjob or direct monitoring to check for the job running.&lt;BR /&gt;Use a modem to alert your paging service.&lt;BR /&gt;&lt;BR /&gt;Also this brings back quite a few results:&lt;BR /&gt;&lt;A href="http://www4.itrc.hp.com/service/james/search.do?searchtext=Pager&amp;amp;searchcriteria=allwords&amp;amp;searchtype=SEARCH_FORUMS&amp;amp;rn=25&amp;amp;presort=rank&amp;amp;x=26&amp;amp;y=10" target="_blank"&gt;http://www4.itrc.hp.com/service/james/search.do?searchtext=Pager&amp;amp;searchcriteria=allwords&amp;amp;searchtype=SEARCH_FORUMS&amp;amp;rn=25&amp;amp;presort=rank&amp;amp;x=26&amp;amp;y=10&lt;/A&gt;</description>
      <pubDate>Wed, 25 Jan 2006 10:32:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-needed-for-paging-support-when-application-is-down/m-p/3717264#M252098</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-01-25T10:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: Script Needed for Paging support when application is down</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needed-for-paging-support-when-application-is-down/m-p/3717265#M252099</link>
      <description>Best to do this from the script that restarts the application...&lt;BR /&gt;&lt;BR /&gt;grep for something in a log file and/or echo $? for the application...&lt;BR /&gt;&lt;BR /&gt;Something like this:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;alertxebec="gwild@mydomain.com, applicationuser@mydomain.com:&lt;BR /&gt;#############################################################&lt;BR /&gt;#&lt;BR /&gt;# Mail Log file for the day to Support&lt;BR /&gt;#&lt;BR /&gt;#############################################################&lt;BR /&gt;&lt;BR /&gt;grep failed $LOGFILE&lt;BR /&gt;FTPSTATUS=$?&lt;BR /&gt;if test "$FTPSTATUS" = 0&lt;BR /&gt;then&lt;BR /&gt;        #we have a failure&lt;BR /&gt;        mailx -s "XYZ JOB FTP FAILURE FOR $DATE" alertxebec &amp;lt; $LOGFILE&lt;BR /&gt;else&lt;BR /&gt;        #we have success&lt;BR /&gt;        mailx -s "XEBEC FTP LOG FILE FOR $DATE" gwild@mydomain.com&amp;lt; $LOGFILE&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Wed, 25 Jan 2006 10:34:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-needed-for-paging-support-when-application-is-down/m-p/3717265#M252099</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2006-01-25T10:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Script Needed for Paging support when application is down</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needed-for-paging-support-when-application-is-down/m-p/3717266#M252100</link>
      <description>Hi,&lt;BR /&gt;is this problem now solved.&lt;BR /&gt;Could you please award points and close.</description>
      <pubDate>Mon, 06 Feb 2006 08:48:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-needed-for-paging-support-when-application-is-down/m-p/3717266#M252100</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-02-06T08:48:19Z</dc:date>
    </item>
  </channel>
</rss>

