Operating System - Linux
1752586 Members
4333 Online
108788 Solutions
New Discussion юеВ

Re: shell scriptf for ping

 
SOLVED
Go to solution
Raj D.
Honored Contributor

Re: shell scriptf for ping

Hi Shiv ,

Here is a ping script attached , please run that in cron , and it will check your servers always...and you will have a good sleep. For any system down , it will page you.

copy to a directory and put the path there.

Add in crontab :
------------------------------------------
10,20,30,40,50,59 * * * * /home/shiv/upstat > /dev/null 2>&1
--------------------------------------------
Put all server names, one by one , in servers.list


Enjoy,
Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Leif Halvarsson_2
Honored Contributor

Re: shell scriptf for ping

Hi,

Try instead the fping program. It is much better for this kind of tests.

http://3d2f.com/programs/2-515-fping-download.shtml
Raj D.
Honored Contributor

Re: shell scriptf for ping

Shiv,

You should be running the ping script from a server , which not in your server list. So ir will monitor all server.

The command to be use :

# ping -c n servername
[ n is number of ping counts , servername is = SERVER ]

ex:
# ping -c 3 dbserver



Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "