One thing that you have to note when using ping is that not all servers respond to ICMP packets. Just because a server doesn't respond to pings doesnt mean its not up. But that might be moot since you manage your target server anyway.
On Fri, Oct 2, 2009 at 7:17 PM, anuj agarwal <[email protected]> wrote: > Thanks Guys for the response. > > Nagios is good, we have a web interface which is same as Nagios but since > most of the time we have problem with that. So i wanted my own script. > Although with the Daniel's script, the task has been achieved, i used mailx > instead sendmail becuase that was not configured on our server. > > Anuj Agarwal > +91-9923111896 > SME > DVCI AMDOCS, > Tower 2, Cybercity, > Magarpatta City, > Pune > > Engineering is the art of making what you want from things you can get. > > > On Fri, Oct 2, 2009 at 4:27 PM, hard wyrd <[email protected]> wrote: > >> Yeah, I missed the "send an email" part, reading too fast :). Thanks for >> pointing that out. >> >> Regardless, use Nagios. >> >> On Fri, Oct 2, 2009 at 6:45 PM, Daniel Eggleston <[email protected]>wrote: >> >>> He wants to send an email when the server goes down. >>> >>> On Thu, Oct 1, 2009 at 11:10 PM, hard wyrd <[email protected]> wrote: >>> >>>> Why dont you just leave ping on ? >>>> >>>> On Linux, by default ping continuously pings until you hit CTRL C. >>>> >>>> On Fri, Oct 2, 2009 at 1:08 AM, anuj agarwal <[email protected]>wrote: >>>> >>>>> Hi, >>>>> >>>>> I am trying to create a script which will send an email to the user >>>>> stating that server is UP when it is UP. We have a script "pingServer" >>>>> which >>>>> can be used to check whether it is UP or not(it will show the server state >>>>> as UP or DOWN) but we need to execute it many times till it shows UP. >>>>> >>>>> Please provide your suggestions. >>>>> >>>>> Anuj Agarwal >>>>> +91-9923111896 >>>>> SME >>>>> DVCI AMDOCS, >>>>> Tower 2, Cybercity, >>>>> Magarpatta City, >>>>> Pune >>>>> >>>>> Engineering is the art of making what you want from things you can get. >>>>> >>>>> >>>>> >>>> >>>> >>>> -- >>>> Penguin, penguin, and more penguin. >>>> >>>> Believe that within the brain is a brain, and within it another brain, >>>> and so on and so forth. >>>> >>>> >>>> >>> >>> >>> -- >>> >>> Daniel >>> >>> >>> >>> >> >> >> -- >> Penguin, penguin, and more penguin. >> >> Believe that within the brain is a brain, and within it another brain, and >> so on and so forth. >> >> >> > > > > -- Penguin, penguin, and more penguin. Believe that within the brain is a brain, and within it another brain, and so on and so forth. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Linux Users Group. To post a message, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit our group at http://groups.google.com/group/linuxusersgroup -~----------~----~----~----~------~----~------~--~---
