<?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: HP Script to test a Linux server's status in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315106#M568261</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm sure you've already thought of it, and eliminated the possibility of a nameservice problem? &lt;BR /&gt;&lt;BR /&gt;Reading the flow... if SSH or the wget fails, then check with a ping.  If ping works then do nothing.  I agree that you should use more than just 1 ping to check. Or use nmap to scan the port?&lt;BR /&gt;&lt;BR /&gt;You've already had a couple suggestions of doing an ssh and starting the webservice, if the ping works.  Seems to me that a nameservice failure would cause the same problem.&lt;BR /&gt;&lt;BR /&gt;ServiceGuard, uses the "heartbeat" which is really just a ping... You've got that design. &lt;BR /&gt;&lt;BR /&gt;I'd build the whole thing into a short C program for speed and safety.  But I think you have the major sections covered.&lt;BR /&gt;&lt;BR /&gt;BTW: I'd get netdump configured on that Linux box and track down that mystery hang.  Yes, easier said than done.  :)&lt;BR /&gt;&lt;BR /&gt;Good Luck!</description>
    <pubDate>Tue, 29 Jun 2004 15:42:45 GMT</pubDate>
    <dc:creator>Craig Gilmore</dc:creator>
    <dc:date>2004-06-29T15:42:45Z</dc:date>
    <item>
      <title>HP Script to test a Linux server's status</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315089#M568244</link>
      <description>Production is a Linux AS 3 box, openssh installed public keys exchanged.&lt;BR /&gt;&lt;BR /&gt;Emergency backup is HP-9000 D320 with a lot of miles but the stability of a sherman tank. Rock solid. Secure Shell installed, public keys exchanged.&lt;BR /&gt;&lt;BR /&gt;Production is a web server and it locked up for no reason on Saturday, potentially causing a severe loss of service. &lt;BR /&gt;&lt;BR /&gt;I'm leaving the country in a few days and although my backup is good it could take him critical hours to make the scene.&lt;BR /&gt;&lt;BR /&gt;So I wrote a script which I plan to run every 15 minutes.&lt;BR /&gt;&lt;BR /&gt;So far I have two tests, one of web connectivity, one of ssh connectivity.&lt;BR /&gt;&lt;BR /&gt;My intent is if any of the front-line tests fail, to try and check for ping. If the server won't answer ping requests on the internal network, where they are allowed then the server is dead and the 9000 box will go production mode and take over service.&lt;BR /&gt;&lt;BR /&gt;If there are problems but service can't be taken over then someone is going to get an email and an urgent page.&lt;BR /&gt;&lt;BR /&gt;Here is the current code:&lt;BR /&gt;&lt;BR /&gt;SVR_FAIL="N"&lt;BR /&gt;export SVR_FAIL&lt;BR /&gt;&lt;BR /&gt;/usr/bin/ssh root@dns1.investmenttool.com "cat /etc/issue"&lt;BR /&gt;rc=$?&lt;BR /&gt;echo "Ssh test code: $rc"&lt;BR /&gt;if [ $rc -ne 0 ]&lt;BR /&gt;then&lt;BR /&gt;  SVR_FAIL="Y"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;cd /tmp&lt;BR /&gt;/usr/local/bin/wget &lt;A href="http://www.investmenttool.com/index.shtml" target="_blank"&gt;http://www.investmenttool.com/index.shtml&lt;/A&gt;&lt;BR /&gt;rc=$?&lt;BR /&gt;echo "web test code: $rc"&lt;BR /&gt;&lt;BR /&gt;if [ $rc -ne 0 ]&lt;BR /&gt;then&lt;BR /&gt;  SVR_FAIL="Y"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;if [ "$SVR_FAIL" == "Y" ]&lt;BR /&gt;then&lt;BR /&gt;# run the ping test, see if service can be taken over&lt;BR /&gt;  /usr/sbin/ping -n 1 -m 180&lt;BR /&gt;  rp=$?&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;if [ $rp -ne 0 ]&lt;BR /&gt;then&lt;BR /&gt;  /usr/contrib/bin/takeoverservice&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;It always takes me so long to get to the question.&lt;BR /&gt;&lt;BR /&gt;What can I do to enhance the script? Should I add more tests? What should they be? Or is the KISS principle here. The wget test should work or the ping test should be run.&lt;BR /&gt;&lt;BR /&gt;I know, get serviceguard, but I don't have the time or the money.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 25 Jun 2004 00:30:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315089#M568244</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-06-25T00:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: HP Script to test a Linux server's status</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315090#M568245</link>
      <description>SEP,&lt;BR /&gt;&lt;BR /&gt;It looks fine, but do you know if ping was successful the last time your server locked up? If it's really the webservice you must be providing, maybe the ping test is not needed and may not be desired. &lt;BR /&gt;&lt;BR /&gt;Is it possible that the web test fails and the ping succeeds? You won't run takeoverservice, but is your website available? Maybe do a few wget tests in a few minutes and if all fail takeoverservice.&lt;BR /&gt;&lt;BR /&gt;HtH&lt;BR /&gt;&lt;BR /&gt;JP</description>
      <pubDate>Fri, 25 Jun 2004 00:57:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315090#M568245</guid>
      <dc:creator>Jeroen Peereboom</dc:creator>
      <dc:date>2004-06-25T00:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: HP Script to test a Linux server's status</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315091#M568246</link>
      <description>SEP,&lt;BR /&gt;&lt;BR /&gt;It looks OK. &lt;BR /&gt;Just one thought, when only the webservice fails at production and you are still able to ssh the box why not force a restart of this service on it original box?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Peter&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Jun 2004 01:37:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315091#M568246</guid>
      <dc:creator>Hoefnix</dc:creator>
      <dc:date>2004-06-25T01:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: HP Script to test a Linux server's status</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315092#M568247</link>
      <description>The last time the box locked(once in two years isn't bad) I didn't bother pinging it. It was production down, non-responsive and I used the power to get it back into production.&lt;BR /&gt;&lt;BR /&gt;I was hoping for some suggestions on further tests.&lt;BR /&gt;&lt;BR /&gt;Peter, very good idea. If the web fails the first thing I should do is ssh onto the box and start the web server.&lt;BR /&gt;&lt;BR /&gt;The reason I don't is because there is alreay a cron job running every 15 minutes on the Linux server that checks services. There is this nice command in Linux called service that checks service status very efficiently.&lt;BR /&gt;&lt;BR /&gt;service named status&lt;BR /&gt;gives me an indicator if DNS is running. Same for httpd.  I partially ported this command to HP-UX but think it would be a nice addition to HP-UX from HP.&lt;BR /&gt;&lt;BR /&gt;The box checks itself on web,mail,dns and other vital services. Its been quite efficient at bringing those services back up when I have them down for maintenance.&lt;BR /&gt;&lt;BR /&gt;The problem I've probably ran into was for reasons unknonw the network connectivity was lost. If ping is down, takeover service and then email me. If ping is responding then email me and get someone on site to boot the server.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 25 Jun 2004 10:05:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315092#M568247</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-06-25T10:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: HP Script to test a Linux server's status</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315093#M568248</link>
      <description>I won't trust ping. In case inetx(xinetd-linux) dies, you can still ping the server. You should use some other method to check it.&lt;BR /&gt;&lt;BR /&gt;Also if there are firewalls in betwwen, and in your absence, that disable ping your script will fail giving a false alarm.&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Fri, 25 Jun 2004 10:32:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315093#M568248</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-06-25T10:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: HP Script to test a Linux server's status</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315094#M568249</link>
      <description>Okay RAC, &lt;BR /&gt;&lt;BR /&gt;Ping is a basic test of functionality.&lt;BR /&gt;&lt;BR /&gt;This script is running on an internal network. ICMP has explicitly been left on to ease diagnosis on that network.&lt;BR /&gt;&lt;BR /&gt;Is ping still a problem under those circumstances?&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 25 Jun 2004 10:42:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315094#M568249</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-06-25T10:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: HP Script to test a Linux server's status</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315095#M568250</link>
      <description>Script looks good....but just a suggestion on another way to do this...&lt;BR /&gt;&lt;BR /&gt;Why not install BigBrother?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.bb4.org/" target="_blank"&gt;http://www.bb4.org/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You can use that to test http...etc...&lt;BR /&gt;&lt;BR /&gt;I use BB as a backup to OVO...&lt;BR /&gt;&lt;BR /&gt;Either that - modify your script to telnet LINUXSERVER 80 and read the result.&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Jun 2004 10:44:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315095#M568250</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-06-25T10:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: HP Script to test a Linux server's status</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315096#M568251</link>
      <description>My suggestion would be to set up VNC because you can use the web tool to remotely connect to your network.  Its brother TightVNC has a little better speed.  Also you could set up a ssh tunnel for extra security if you like. Although its not the fastest the web access feature would be a nice way to connect in emergency from almost anywhere.&lt;BR /&gt;&lt;BR /&gt;As far as ping goes I would just simply search the net for a free utility that make a beep/special noise when ping fails.  That way you do not have to hope they are reading their email when the server fails.  Have fun on your trip.</description>
      <pubDate>Fri, 25 Jun 2004 11:14:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315096#M568251</guid>
      <dc:creator>generic_1</dc:creator>
      <dc:date>2004-06-25T11:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: HP Script to test a Linux server's status</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315097#M568252</link>
      <description>Goeff, the telnet command was in there. It requires manual input and hangs, making it inappropriate. I guess I could give it the input with a &lt;BR /&gt;&lt;BR /&gt;&amp;lt;&amp;lt; EOF &lt;BR /&gt;^]&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;string, but the wget command works pretty nicely and essentially does the same thing.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 25 Jun 2004 11:33:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315097#M568252</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-06-25T11:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: HP Script to test a Linux server's status</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315098#M568253</link>
      <description>Steven - sorry - missed the wget command you had.&lt;BR /&gt;&lt;BR /&gt;Now as far as network goes...do you have a script on the linux box as well?  That is - if it loses it's network connection - stops services?&lt;BR /&gt;&lt;BR /&gt;The reason I state that - if your dev (HP) box takes over - then all of a sudden network is restored to your Prod (Linux) - you will have 2 Prod Web servers running?&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Fri, 25 Jun 2004 11:50:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315098#M568253</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-06-25T11:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: HP Script to test a Linux server's status</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315099#M568254</link>
      <description>Geoff,&lt;BR /&gt;&lt;BR /&gt;Another good point. While I was doing the Linux OS install on the production server, I had the hp box running the websites. &lt;BR /&gt;&lt;BR /&gt;I had some minor issues and tried to put the Linux box into production three or four times. I noticed that if you try and bring up the HP box on all IP addresses while production was up, HP notes the error and fails to bring up the IP addresses.&lt;BR /&gt;&lt;BR /&gt;If such a situation occurs I believe one or the other servers networking will drop the IP addresses. If not, I can get in on the private network and correct the situation. &lt;BR /&gt;&lt;BR /&gt;In any situation where conflict can occur I should have been notified by email and will be checking on things. I have three different devices on the firewall, any of which will let me in to do work.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 25 Jun 2004 12:09:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315099#M568254</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-06-25T12:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: HP Script to test a Linux server's status</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315100#M568255</link>
      <description>Jeff,&lt;BR /&gt;&lt;BR /&gt;VNC?&lt;BR /&gt;&lt;BR /&gt;Brain Lock. Please define and explain.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 25 Jun 2004 12:12:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315100#M568255</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-06-25T12:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: HP Script to test a Linux server's status</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315101#M568256</link>
      <description>SEP,&lt;BR /&gt;&lt;BR /&gt;I'm new at HP but I know some networking.  If possible add a 2nd network card on both machines (primary and backup) and add a 3rd machine to check both machines, you can even move the testing on this 3rd machine to see if any of the 2 have heartbeat.  If both are active that means your primary machine is back up, then turn off the backup machine.  Create a class C network 192.168.x on the 2nd set of network cards and do the testing through them.   If one is dead, activate the other and notify you that the "one is dead" machine is down.  You can do the vice-versa.  But then you're stuck if the 3rd machine (test machine) goes down...   :)   Then you could add to the other 2 the testing of the 3rd machine and make it somewhat redundant.</description>
      <pubDate>Sat, 26 Jun 2004 01:15:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315101#M568256</guid>
      <dc:creator>Edgar Arroyo</dc:creator>
      <dc:date>2004-06-26T01:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: HP Script to test a Linux server's status</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315102#M568257</link>
      <description>i actually wrote a similar script to monitor a freind of mines web server (he's a bit of a linux newb and saves me waiting for him to call and tell me its broke)&lt;BR /&gt;since i was only concerned with web i only used wget to test its availability&lt;BR /&gt;&lt;BR /&gt;only i had wget once direct and once using a proxy that connects out through a different ISP as it turned out frequently it was just routing problems&lt;BR /&gt;&lt;BR /&gt;but your on an internal network&lt;BR /&gt;&lt;BR /&gt;my advice is if web is the only service that matters thats the only one worth testing&lt;BR /&gt;for an alarm&lt;BR /&gt;&lt;BR /&gt;althogh it would be good practice to leave the ping and ssh test just have it log the results to help you better diagnose futer crashes&lt;BR /&gt;(i like using perl because one can interface easily with telnet) &lt;BR /&gt;i would also make a basic telnet script to grab a proccess list at the last known good time&lt;BR /&gt;&lt;BR /&gt;but thats just me</description>
      <pubDate>Sat, 26 Jun 2004 07:21:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315102#M568257</guid>
      <dc:creator>jason meech</dc:creator>
      <dc:date>2004-06-26T07:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: HP Script to test a Linux server's status</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315103#M568258</link>
      <description>Hi SEP,&lt;BR /&gt;&lt;BR /&gt;I do not like to depend on a "single" ping, which can strand somewhere for any reason.&lt;BR /&gt;Why not make 3 or 5 and do the switch only if ALL are dead ?&lt;BR /&gt;&lt;BR /&gt;rp=0&lt;BR /&gt;if /usr/sbin/ping&lt;BR /&gt;then&lt;BR /&gt;  true&lt;BR /&gt;elif /usr/sbin/ping&lt;BR /&gt;then&lt;BR /&gt;  true&lt;BR /&gt;elif /usr/sbin/ping&lt;BR /&gt;then&lt;BR /&gt;  true&lt;BR /&gt;else&lt;BR /&gt;  echo Three pings died !&lt;BR /&gt;  rp=3&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;I did not check the definition of the ping RC-codes, maybe even a "ping -n 5" gives a rc that is usefull, if a majority of packages survive.&lt;BR /&gt;&lt;BR /&gt;Is there a web-application involved ? In this case, the index.html might only ensure that the webserver is up, but your application database might be disturbed... I would tend to wget-query some php-info or some serverinfo script, that ensures a databse connection is also valid and data can be fetched from the database. index.html might be cached somewhere.&lt;BR /&gt;&lt;BR /&gt;Volker&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 27 Jun 2004 04:38:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315103#M568258</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2004-06-27T04:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: HP Script to test a Linux server's status</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315104#M568259</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'd like to add my penny.&lt;BR /&gt;The sequence of tests which I use is the following:&lt;BR /&gt;if ping ; then&lt;BR /&gt;  if rcp (or scp); then&lt;BR /&gt;     if remsh date( or ssh date ); then&lt;BR /&gt;       3rdparty apps status (Oracle or Informix)&lt;BR /&gt;     fi&lt;BR /&gt;  fi&lt;BR /&gt;fi&lt;BR /&gt;With rcp or scp I copy test scripts for 3rd party applications and run it via remsh or ssh. Such a method requires standardization of computers and a management machine with appropriate access.&lt;BR /&gt;&lt;BR /&gt;HTH</description>
      <pubDate>Sun, 27 Jun 2004 04:58:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315104#M568259</guid>
      <dc:creator>Victor Fridyev</dc:creator>
      <dc:date>2004-06-27T04:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: HP Script to test a Linux server's status</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315105#M568260</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;VNC-virtual network computing&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.realvnc.com/" target="_blank"&gt;http://www.realvnc.com/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;regds&lt;BR /&gt;Naveej</description>
      <pubDate>Sun, 27 Jun 2004 08:30:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315105#M568260</guid>
      <dc:creator>Naveej.K.A</dc:creator>
      <dc:date>2004-06-27T08:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: HP Script to test a Linux server's status</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315106#M568261</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm sure you've already thought of it, and eliminated the possibility of a nameservice problem? &lt;BR /&gt;&lt;BR /&gt;Reading the flow... if SSH or the wget fails, then check with a ping.  If ping works then do nothing.  I agree that you should use more than just 1 ping to check. Or use nmap to scan the port?&lt;BR /&gt;&lt;BR /&gt;You've already had a couple suggestions of doing an ssh and starting the webservice, if the ping works.  Seems to me that a nameservice failure would cause the same problem.&lt;BR /&gt;&lt;BR /&gt;ServiceGuard, uses the "heartbeat" which is really just a ping... You've got that design. &lt;BR /&gt;&lt;BR /&gt;I'd build the whole thing into a short C program for speed and safety.  But I think you have the major sections covered.&lt;BR /&gt;&lt;BR /&gt;BTW: I'd get netdump configured on that Linux box and track down that mystery hang.  Yes, easier said than done.  :)&lt;BR /&gt;&lt;BR /&gt;Good Luck!</description>
      <pubDate>Tue, 29 Jun 2004 15:42:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315106#M568261</guid>
      <dc:creator>Craig Gilmore</dc:creator>
      <dc:date>2004-06-29T15:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: HP Script to test a Linux server's status</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315107#M568262</link>
      <description>Service named status is a good test on the server itself to maintain its own health.&lt;BR /&gt;&lt;BR /&gt;Although none of you have any way of knowing this is done by cron 4 times per hour. If there is a failure of many network services, the script tries to resolve them. &lt;BR /&gt;&lt;BR /&gt;That can be a pain when I bring things down for diagnostics.&lt;BR /&gt;&lt;BR /&gt;Because I left town without this script running the takeoverservice command(because I didn't have time to test it) when the production server halted while I was in Israel, I had to send someone to the server for a manual reset.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 23 Jul 2004 14:00:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-script-to-test-a-linux-server-s-status/m-p/3315107#M568262</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-07-23T14:00:39Z</dc:date>
    </item>
  </channel>
</rss>

