im am working on this script to make sure my server will stay online, so i made this script..
but its sending me a mail even when there is connection to the server, and i only want it when the ping fails..
i have made the script run every 5 min. with crontab -e5 * * * * filelocation
can someone please help me with this?
sorry if this is the wrong place to ask..
Moderator's Comments:
Please use CODE tags as required by forum rules!
Last edited by RudiC; 11-23-2016 at 01:40 PM..
Reason: Added CODE tags.
I need a script to open a text file with ip's in it, ping them, split the results into the ip and time from the results and e-mail them ?
here what i've done.
its porbly wrong and not workin.its for win nt4
use Net::SMTP;
# get list of ip's to ping
open (PINGFILE, "< c:\\Documents and... (20 Replies)
All
I am running a few scripts through a cron job. This is for checking some key services that are running on by box. The problem is, everytime the cron runs, it sends a mail to the root account. The root account mails need to cleared every now and then. Is there some way I can stop these... (1 Reply)
need to check on some hosts and send an email if there status changes
I wanna put together a script in bash that will allow me to check the up/down state of a single host via ping
i want it to run in a continuous loop so I can just fire the script and forget about it(dont want cron to drive... (2 Replies)
I have a PHP Script that works perfectly on a server that uses Sendmail. However I tried to port it to a new server that has the Postfix to Sendmail compatibility interface, and it doesn't work properly.
The php.ini file has the path for sendmail on both servers set to: /usr/sbin/sendmail -t... (0 Replies)
Hi
Im very new at working with unix and this problem I simply can not understand. I know there are a lot of threads about problems with shell scripts behaving differently when run from a terminal and from a cronjob. I have tried everything(almost) but I still havent cracked this problem.
Im... (15 Replies)
Hi guys,
I have a question about the returning message of the mailx command.
if I run a mailx command, how can I know if the email has been sent to the email address? If the email address doesn't exist, is there any error message returned? If yes, how can I get the error message?
Thanks... (3 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)
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)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
The function will be called m and it will allow you to send an email to someone using the mail command. The... (1 Reply)
I am issuing a reboot command to a client server from admin server using my python function. I am able to do that but now I need do a ping test every second and print if the ping is successful. With the below code I can check ping only once.
import os hostname = "myclient"
response =... (7 Replies)
Discussion started by: ctrld
7 Replies
LEARN ABOUT CENTOS
rping
RPING(1) librdmacm RPING(1)NAME
rping - RDMA CM connection and RDMA ping-pong test.
SYNOPSIS
rping -s [-v] [-V] [-d] [-P] [-a address] [-p port]
[-C message_count] [-S message_size]
rping -c [-v] [-V] [-d] -a address [-p port]
[-C message_count] [-S message_size]
DESCRIPTION
Establishes a reliable RDMA connection between two nodes using the librdmacm, optionally performs RDMA transfers between the nodes, then
disconnects.
OPTIONS -s Run as the server.
-c Run as the client.
-a address
On the server, specifies the network address to bind the connection to. On the client, specifies the server address to connect to.
-p Port number for listening server.
-v Display ping data.
-V Validate ping data.
-d Display debug information.
-C message_count
The number of messages to transfer over each connection. (default infinite)
-S message_size
The size of each message transferred, in bytes. (default 100)
-P Run the server in persistent mode. This allows multiple rping clients to connect to a single server instance. The server will run
until killed.
NOTES
Because this test maps RDMA resources to userspace, users must ensure that they have available system resources and permissions. See the
libibverbs README file for additional details.
SEE ALSO rdma_cm(7), ucmatose(1), udaddy(1), mckey(1)librdmacm 2007-05-15 RPING(1)