ygemici,
please also include this statement passed within your script provided whenever i get ping broken
i.e If ping response is not responding(i.e when hostname is not alive) then this cmd to be executed :
opcmsg object=PING a=PING msg_grp=win-ping severity=critical msg_text="PING BROKEN on $line"
ygemici,
please also include this statement passed within your script provided whenever i get ping broken
i.e If ping response is not responding(i.e when hostname is not alive) then this cmd to be executed :
opcmsg object=PING a=PING msg_grp=win-ping severity=critical msg_text="PING BROKEN on $line"
you are right , ping test takes long time..i modified and defined some defaults(for exa ping test about send 4 echo packet check in script)..
now you can give a ping try count for first parameter and then see the results..(actually 50 try requires more times but if you want to test in long time period then maybe you must specify 50 100 or 200 or more than parameter..)
so in script , ping tries transmit packets to target with 2 seconds intervals and 4 packets
first(prestart control) ping test takes about four seconds(normally about 1 second per packet or under 1 second ,, of course it may vary depending on various factors however) if target is avaliable and must must not be resulotion problem [ default timeout is 20 second ].but we defined packet size then it takes about 10 seconds + 4*1 second (per packet) = about 14 seconds.
lets look belows.
# if you dont have access to host..(some waits target host is non-accessable)
# if you have access to host..(no wait target host is accessable)
at the now,you must you can try and use to a specifying parameter with new script..
for example
this means that you want to try for Number of 4-pack counts[this is defaul in script] * 2 count..
good lucks
regards
ygemici
help with bash script!
im am working on this script to make sure my server will stay online, so i made this script..
HOSTS="192.168.138.155"
COUNT=4
pingtest(){
for myhost in "$@"
do
ping -c "$COUNT" "$myhost" &&return 1
done
return 0
}
if pingtest $HOSTS
#100% failed... (4 Replies)
Hi
I am using perl to ping a list of nodes - with script below :
$p = Net::Ping->new("icmp");
if ($p->ping($host,1)){
print "$host is alive.\n";
}
else {
print "$host is unreacheable.\n";
}
$p->close();... (4 Replies)
Hello All,
We have added a windows host and its config files to Nagios master server and wanted to do a ping check alone at the moment however, the nagios master server identifies the host in its GUI and immediately disappears can anyone let me know the right approach to this one, We want to... (2 Replies)
Hi,
I develop simple animation ping script on Solaris Platform. It is like Cisco ping.
Examples and source code are below.
bash-3.00$ gokcell 152.155.180.8 30
Sending 30 Ping Packets to 152.155.180.8
!!!!!!!!!!!!!.!!!!!!!!!!!!!!!.
% 93.33 success... % 6.66 packet loss...... (1 Reply)
I have perl script that I use to check and ping a list of ip,
The problem is, I didnt understand how to ping ipv6 on perl,
Could I use Ping::External??And how could I get the ping result (reply or not)?
This is my code
#!/usr/bin/perl --
use Net::Ping;
use Data::Validate::IP;
use... (3 Replies)
Dear all,
I have system that have 2 disk, and 1 off disk is broken, how can I check if the disk is broken or other problem.
I'm using Solaris 10 x86.
Thank you,
Best Regards,
Heru (4 Replies)
Hi,
I first wanted to install my NIC drivers but it said:
Makefile:62: *** Linux kernel source not found. Stop.
So I installed the kernel source: linux-source-2.6.18_2.6.18.dfsg.1-13etch5_all.deb
1) cd /usr/src
2) -xjvf linux-source.2.6.18.extension (forget what it was)
3) ln -s... (12 Replies)
Ok i am running Linux, or rather was. I can not longer do anything. This was a dns server amoungst other things.
It will no longer boot.
I have used a startup disk, but how can i recover the OS?
I need help and urgently.
Please someone
thanks (3 Replies)