LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   script to check host status and report email in certaion losses (https://www.linuxquestions.org/questions/linux-newbie-8/script-to-check-host-status-and-report-email-in-certaion-losses-4175444135/)

franklin.sucre 01-04-2013 08:14 AM

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

acid_kewpie 01-04-2013 08:31 AM

plenty of scripts already out there is you look... https://www.google.co.uk/search?q=pi...eck+cron+email

franklin.sucre 01-05-2013 10:52 PM

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

acid_kewpie 01-06-2013 04:29 PM

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.


All times are GMT -5. The time now is 11:19 PM.