<?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 in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/monitoring/m-p/4026687#M93667</link>
    <description>Yes,&lt;BR /&gt;&lt;BR /&gt;Simple script to verify if processes are running otherwise send a mail notification.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;# This is a processes list&lt;BR /&gt;#&lt;BR /&gt;proc_list="process1 process2 process3 ... processN"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ps -ef &amp;gt;/tmp/process_$$&lt;BR /&gt;&lt;BR /&gt;for process in $proc_list&lt;BR /&gt;do&lt;BR /&gt;if [ $(grep -c $process /tmp/process_$$) -gt 0 ]&lt;BR /&gt;then&lt;BR /&gt;echo "process $process is running"&lt;BR /&gt;else&lt;BR /&gt;echo "process $process is down"&lt;BR /&gt;echo "process $process is down" |mailx -s "process down" user@domain&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;rm /tmp/process_$$</description>
    <pubDate>Tue, 26 Jun 2007 03:40:44 GMT</pubDate>
    <dc:creator>Fat Scrape</dc:creator>
    <dc:date>2007-06-26T03:40:44Z</dc:date>
    <item>
      <title>monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-linux/monitoring/m-p/4026686#M93666</link>
      <description>&lt;BR /&gt;Hi there.&lt;BR /&gt;&lt;BR /&gt;I nead to check if apache + mysql + certain webapage (virtual) is running and if not then send email to admin@xxxx.com.&lt;BR /&gt;Unfortunately I don't know much about scripting.&lt;BR /&gt;&lt;BR /&gt;Can you help me? &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Jun 2007 03:12:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/monitoring/m-p/4026686#M93666</guid>
      <dc:creator>Piotr Kirklewski</dc:creator>
      <dc:date>2007-06-26T03:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-linux/monitoring/m-p/4026687#M93667</link>
      <description>Yes,&lt;BR /&gt;&lt;BR /&gt;Simple script to verify if processes are running otherwise send a mail notification.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;# This is a processes list&lt;BR /&gt;#&lt;BR /&gt;proc_list="process1 process2 process3 ... processN"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ps -ef &amp;gt;/tmp/process_$$&lt;BR /&gt;&lt;BR /&gt;for process in $proc_list&lt;BR /&gt;do&lt;BR /&gt;if [ $(grep -c $process /tmp/process_$$) -gt 0 ]&lt;BR /&gt;then&lt;BR /&gt;echo "process $process is running"&lt;BR /&gt;else&lt;BR /&gt;echo "process $process is down"&lt;BR /&gt;echo "process $process is down" |mailx -s "process down" user@domain&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;rm /tmp/process_$$</description>
      <pubDate>Tue, 26 Jun 2007 03:40:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/monitoring/m-p/4026687#M93667</guid>
      <dc:creator>Fat Scrape</dc:creator>
      <dc:date>2007-06-26T03:40:44Z</dc:date>
    </item>
  </channel>
</rss>

