I am trying to do a shell script to check a folder and see if files are passing through.
Now if a file did not pass through in the last 1 hour send an email.
ftp----------> folder to monitor ----------->ftp
Now the script that moves the file runs every sec in cron, so i do not know if i... (0 Replies)
Hi,
I'm new to linux and I'm trying to compile a hard drive monitoring script. I've seen a few on the internet and I've attempted to stumble through but I'm stuck at my while/do scenario.
I assigned the variable NUM then took the percentage from my output and cut the % so it would be just a... (6 Replies)
Does anyone have a monitoring script in solaris that monitors the drives in an exclosure? The script should be in /bin/bash or /bin/sh thnks again
This should be for solaris 10/11 looking for something that tells me a drive is down or offline.:confused: (0 Replies)
Hi All,
I want a scrip to monitor values which is the out put of a certain command. Example is
$ for (( c=1; c<15; c++ )); do cmu -O HTA -d HTTP-PROXY.tswebpxmp5.$c | grep -i active; done
HTA_STATS_htaStatsDef.ifw_stats.streamStat.activeStreams : 2
... (1 Reply)
HIi Guys... I am in a fix.... 1st the code :
Script 123.sh looks like this :
./abc # a script which is getting called in this script
while true
do
count=`ps -ef | grep abc | wc -l`
if
echo "abc is running
sleep 10
fi
done
but the process is getting checked... (5 Replies)
Hello friends, as they are? First of all sorry for my poor English. I tell them what is my problem. I have the following script, which is basically what makes error search for a pattern within a folder containing logs. The script works fine, the problem is that whenever I find a pattern of new... (2 Replies)
I developed for monitoring the network connections among the branch servers as I given below as script.But I don't know how to monitor the services through network script whether the services is running or not. eg : I want to check the postgres service for all the branch servers through network... (0 Replies)
Sorry if this is the wrong forum
Searching for Saas Monitor service which monitor my servers which are sitting in different providers .
This monitor tool will take as less CPU as possible , and will send info about the server to main Dashboard.
The info I need is CPU / RAM / my servers status (... (1 Reply)
Hi all,
on our application server we have the following script that monitor the status of the website, my problem here is that i have edite the retries from 3 to 5,
and the timewait to 120 second,
so the script should check 5 times every 2 minutes, and if the fifth check fails it must restart... (0 Replies)
Discussion started by: charli1
0 Replies
LEARN ABOUT DEBIAN
msvc
msvc(8) System Manager's Manual msvc(8)NAME
msvc - control minit
SYNOPSIS
msvc [ -[uodpchaitko] ] [ -P pid ] service [...]
DESCRIPTION
msvc is the management interface to minit. service is the service directory name relative to /etc/minit. Starting with minit 0.9 you can
also include /etc/minit/ in the service name.
OPTIONS
If no option is given, msvc will just print a small diagnostic message to stdout, saying if the service is up, down or finished, which PID
it has if it is up, and for how long it has been in this state.
-u Up. If the service is not running, start it. If the service stops, restart it.
-o Once. If the service is not running, start it. If the service stops, do not restart it.
-d Down. If the service is running, send it a TERM signal and then a CONT signal. After it stops, do not restart it.
-p Pause. Send the service a STOP signal.
-c Continue. Send the service a CONT signal.
-h Hangup. Send the service a HUP signal.
-a Alarm. Send the service an ALRM signal.
-i Interrupt. Send the service an INT signal.
-t Terminate. Send the service a TERM signal.
-k Terminate. Send the service a KILL signal.
-P pid
Set PID. Tell minit the PID of the service is really pid. This is useful for services that fork themselves in the background but put
their real PID in a file, typically called /var/run/service.pid. Used by pidfilehack.
-D service
Print dependencies. This will print all the names of all the services that were started because this services depended on them.
Please note that this is not done recursively (i.e. if default depends on qmail and qmail depends on log, this will print qmail, not
qmail/log. But msvc -D qmail will print qmail/log).
-H Print history. This will print the names of the ten least recently spawned processes. This is useful if you see a process looping
(initialization fails and minit is restarting it all the time).
RETURN CODES
Generally, msvc return zero if everything is OK or 1 on error (could not open /lib/minit/in or /lib/minit/out or there is no process with
the given name). In diagnostic mode, it will exit 0 if the service is up, 2 if it is down or 3 if it is finished.
SEE ALSO pidfilehack(8), svc(8)msvc(8)