LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-04-2013, 08:14 AM   #1
franklin.sucre
LQ Newbie
 
Registered: Nov 2010
Location: vadgaon
Posts: 12

Rep: Reputation: 0
script to check host status and report email in certaion losses


Dear all,

I am new to scripting and i am wanting to perform a task that checks the status of a host by ping and to be ran in every hours such that it reports emails if the losses reaches above 10%. How can i perform this task?

Any helps will be appreciated.


Thanks,
Franklin
 
Old 01-04-2013, 08:31 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
plenty of scripts already out there is you look... https://www.google.co.uk/search?q=pi...eck+cron+email
 
Old 01-05-2013, 10:52 PM   #3
franklin.sucre
LQ Newbie
 
Registered: Nov 2010
Location: vadgaon
Posts: 12

Original Poster
Rep: Reputation: 0
Re: script to check host status and report email in certaion losses

Dear acid_kewpie,

Thanks for your response and i have tried most of all these stuffs which only generates if down. What i want is, i want a script that alerts only when losses reaches certain values, say 10% in an hour. I tried to modify but couldnt get the result, may be because i was bad at scripting and i am a newbie.

Any more helps will be highly thanked.


Regards,
Franklin
 
Old 01-06-2013, 04:29 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well these scripts run with cron, as you requested. taking an hourly average will require MUCH more than a single fire-and-forget style script. cron won't help you there, you'd want a proper service like groundwork, hyperic, opennms, nagios etc.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash script to check telnet status oscarenzo Linux - Newbie 9 01-24-2012 01:45 PM
LXer: Ordered Aakash Tablet? Check Your Status Via Email LXer Syndicated Linux News 0 01-14-2012 06:20 AM
script to report some host information permalac Linux - Newbie 0 11-11-2008 04:49 AM
Pipe'ing the ouput of 'cat' into 'mutt' (email) losses newlines when email received helptonewbie Linux - Newbie 2 08-28-2008 03:16 AM
Need program/script to check server status thetawaverider Linux - Software 1 02-27-2007 12:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration