Hi All,
Have a query
How to check for a process and if down start it , try if for 2 times and its not starting don't do it
My code is working to some extent but while starting try starting both times.
Please advise , whats wrong here ?
if you have any other approach please do share.
My code
Thanks
abhaydas
Last edited by Scrutinizer; 05-28-2019 at 07:47 AM..
Reason: Code tags instead of quote tags
Hi,
We have a text file which has the following data.
ISA~00~ ~00~ ~ZZ~VISTN ~ZZ~U1CAD ~051227~183
7~U~00200~000011258~0~P~<
GS~FA~EE05J~U1CAD~051227~1831~000011258~X~002002
ST~997~0001
AK1~SH~247
AK2~856~2470001
AK5~A
AK2~856~2470002
AK5~A... (3 Replies)
I want to check process status at regular interval of time ...
so i ha wirtten this BUT its not working when i placed this peace of code in .sh ..
please help me out
#!/bin/sh
w = ps -ef|grep processname | wc - l
echo $w
if ; then
Banner "Proceesname Problem"
else
Banner " Running... (5 Replies)
hello everybody!!
i want to post a question!
is there any way to get process status using C commands?
To be more specific, i want to know whether a process is running or is stop or killed.
thanks in advance! (3 Replies)
To all,
I need to run a ftp command in one of my scripts and I need to evaluate what happens after it's done. The problem is the script would not capture the ftp responses. If I type the same thing on the command
line, I get all kinds of responses. I would like to capture the same responses in... (2 Replies)
Good day
I am fairly new to Shell Scripting.
I want a script to check if a process is up by checking the process's PID and then return a value for when it's running which would be 0. If it isn't running it should give any other value that 0.
Any Help is appreciated
Regards (9 Replies)
Hi we have weblogic deployed under Linux Enterprise 5 .
Now i want to write a script that checks if weblogic is running or not
I have found that weblogic uses Java as process .
Can i do this way :
my Script File :
Echo Checking Status
if
then
echo Server Running
else
echo... (2 Replies)
Hi,
I have a cron job which runs every ten minutes, now i hav to check the process whether it is running or not only once and then this should be sent to a log file..
crontab :
00,10,20,30,40,50 * * * * a
process check
ps = 'ps -ef |grep a '
if
then
echo " Success" >... (3 Replies)
I have some server ( IBM , Dell ) , our data center is not in the same location with office , therefore , I do not know if the HD lamp is flash when the HD is fault , can advise if I can write a script to check if the HD is normal running or not ?
thanks (1 Reply)
Hi Team,
I am using redhat 6.4 version server.We have a script which is used to check the process and sends email if the process is not running.If it is running it will continue and do some other operation.
I didnot understand below option -z in the if condition.I have tried to... (5 Replies)
Discussion started by: muraliinfy04
5 Replies
LEARN ABOUT DEBIAN
check_backuppc
check_backuppc(8) System Manager's Manual check_backuppc(8)NAME
check_backuppc - A Nagios plugin to monitor BackupPC
SYNOPSIS
check_backuppc [options]
DESCRIPTION
check_backuppc is a nagios plugin that reports on the status of BackupPC. By default, it monitors both archive and backup hosts for
errors.
OPTIONS -a, --archive-only
Only check the status of archive hosts.
-b, --backup-only
Only check the status of non-archive hosts.
-s, --status-only
Only check the status of the backups, omit connection failures that are less than $Conf{FullPeriod} old.
-H, --hostname hostname
Only check the specified host. Uses hostnames that BackupPC is configured to use, can be specified multiple times.
-x, --exclude hostname
Do not check the specified host. Uses hostnames that BackupPC is configured to use, can be specified multiple times.
-w, --warning age
The days old at which a failure is considered a warning, default 1.
-c, --critical age
The days old at which a failure is considered critical, default 8.
-r, --reduce count
The maximum number of failed hosts for which to reduce reported severity, default 0.
-h, --help
Show summary of options.
NOTES
This plugin must be run on the same host and as the same user as BackupPC. An archive host only takes on a reported type of archive after
its first archive run.
EXAMPLES
/usr/local/lib/nagios/plugins/check_backuppc -r1 -w3 -c8 -b -x otter
Check the status of all backup hosts except "otter". Warn if a failed backup is older than three days old, return critical if a
failure is older than eight days old unless there is only a single failure. In that case, warn if the single failed backup is older
than eight days.
AUTHOR
Seneca Cunningham <tetragon@users.sourceforge.net>
SEE ALSO sudo(8). backuppc(8).
check_backuppc(8)