Sponsored Content
Top Forums Shell Programming and Scripting How to monitor some UNIX process and send notification in every 10 minutes? Post 302948831 by Smiling Dragon on Thursday 2nd of July 2015 07:25:12 PM
Old 07-02-2015
At a (very) high level, you want:
Code:
while true
do
  for processname in $ListOfProcessesToLookFor
  do
    if processnotrunning $processname
    then
      echo "Oh dear!  The process $processname appears to have stopped!  This message was brought to you by the letter C at `date`" | SendMeAnEmail $MyEmailAddress "Warning: Process $processname is not running!"
    fi
  done
  sleep $TimeToWaitBetweenChecks
done

This User Gave Thanks to Smiling Dragon For This Post:
 

10 More Discussions You Might Find Interesting

1. HP-UX

Event Monitor notification : Severity Serious : what does that mean ???

Hi I received this mail (root) on my hp-ux 11.00. >------------ Event Monitoring Service Event Notification ------------< Notification Time: Thu Mar 22 08:41:28 2007 hostname sent Event Monitor notification information: /storage/events/disks/default/0_0_1_1.0.0 is >= 3. Its current value... (6 Replies)
Discussion started by: touny
6 Replies

2. Shell Programming and Scripting

Killing of a process and send a mail if the process doesnot come up within 2 minutes

Hi Friends, I am new to this forum as well as new to shell scripting. I have a problem here and i need someone to solve this. Let us consider there are two processes(abc & def).There is a script which kills these two processes(i.e killtheprocess abc). Here abc is the argument . There is a... (1 Reply)
Discussion started by: Prince89
1 Replies

3. Shell Programming and Scripting

script to monitor process running on server and posting a mail if any process is dead

Hello all, I would be happy if any one could help me with a shell script that would determine all the processes running on a Unix server and post a mail if any of the process is not running or aborted. Thanks in advance Regards, pradeep kulkarni. :mad: (13 Replies)
Discussion started by: pradeepmacha
13 Replies

4. Shell Programming and Scripting

script to monitor the process system when a process from user takes longer than 15 min run.

get email notification from from system when a process from XXXX user takes longer than 15 min run.Let me know the time estimation for the same. hi ,any one please tell me , how to write a script to get email notification from system when a process from as mentioned above a xxxx user takes... (1 Reply)
Discussion started by: kirankrishna3
1 Replies

5. UNIX for Dummies Questions & Answers

Send Fault Alarm SMS Every 30 Minutes

Hi All, I am working in telecom sector. I want to send a fault alarm SMS in every 30 min. Ex.. If one alarm come at say 12:00 and its up say upto 18:00.in this case i want to send a SMS to concern person for every half an hour...can you plz suggest me script which will do the same Awaiting for... (0 Replies)
Discussion started by: sususa
0 Replies

6. Shell Programming and Scripting

check postfix deferred mail and send notification script

Hi Guys, I have a postfix server which is deferring emails. Now I need to send notification to a specific email address if: The sender of the deferred email is: abc@example.com Contains specific subjects: a file (/opt/subjects) contains all the subjects in place Then need to send a... (0 Replies)
Discussion started by: linuxrulz
0 Replies

7. Shell Programming and Scripting

Count the size and send notification

Hello, I want to do something simple, I want to count the dir size (du -sh directoryname) and then check if it is over 100GB. If it is more than 100GB I want to send a notification , if it less than 100GB the script can just stop. I know how to count with du -sh and how to send an email... (5 Replies)
Discussion started by: MaRiOsGR
5 Replies

8. Shell Programming and Scripting

Monitor and restart UNIX process

Hi all, Tearing my hair out..! I have a requirement to monitor and restart a unix process via a simple watchdog script. I have the following 3 scripts that dont work for me.. script 1 (only produces 1 output if process is up or not)... (4 Replies)
Discussion started by: jonnyd
4 Replies

9. HP-UX

Critical Sevices and Process to be monitor on UNIX servers

Need to note the list of critical / important services and process need to monitor on unix server always with one line explanation for severity. Thanks in advance. (5 Replies)
Discussion started by: marunmeera
5 Replies

10. Shell Programming and Scripting

How to send a file in UNIX through email which is created only 15 minutes before the current time?

I wanted to send an email to the client whenever there is failed record created in a /feed/HR-76/failed folder after processing of feed file. I can find out with the help of below script that what is the new file created but that file didn't make just 15 minutes before. ... (1 Reply)
Discussion started by: puneetkhullar
1 Replies
SINFOD(8)							   User Manuals 							 SINFOD(8)

NAME
sinfod - a monitoring tool for networked computers SYNOPSIS
sinfod [-F] [-q] [-V] [-b #.#.#.#] [-c] [-n card ] [ -N nicevalue ] [ -m marker ] [ -i processname ] [-s][-W] DESCRIPTION
sinfod distributes system information to other sinfods on your local network. These Information include the system load, memory utilization and the `TOP-5' processes on every machine. It's main advantage is, that these informations are broadcasted using the udp(7) protocol. If each node broadcasts it's information in a cooperative manner, the network load is O(N), where N is the number of nodes in your network. Other systems to monitor your cluster load (e.g. rup(1) ) are using a polling scheme where every node has to ask every other node for the system information: In that case the network load is O(N**2). The task of sinfod is to broadcast the relevant information for the local node and to collect broadcasts from other nodes. Other programs ( sinfo(1) ) can get access to this information via a simple tcp(7) connection that normally is routed through the local loopback inter- face. OPTIONS
-F/--foreground Unlike normal operation, sinfod will not detach from the terminal when given this option. Some debugging informations will be visi- ble. -q/--quiet Start quietly - for init scripts. -V/--version Print the version number and exit. -b #.#.#.#/--bcastaddress=#.#.#.# Set the broadcast address of the sinfod. Default is 255.255.255.255. In you want to run sinfod without a network card "-b 127.0.0.1" may be necessary. -c/--cmdline Broadcast the full command line of a process instead of the command only. -m marker/--marker=marker Mark the machine with a name. e.g. laboratory, pool or cluster. -i/--ignore <process> Don't broadcast any information on <process> ; --ignore may be set multiple times. -t/--top <count> Broadcast information on the top <count> processes; default: 5 -n card/--networkcard=card Set the name of the network card whose informations will be broadcasted. (e.g. eth0). Default is the network card that saw the most traffic at the start of sinfod. -N nicevalue/--nice=nicevalue Set the priority of this demon to nicevalue. Default is 15. -s/--spymode Deactivate the TCP interface and the collection of received packets. The demon starts in a broadcast-only mode. -W/--watchdog Start with simple watchdog. AUTHOR
Juergen Rinas <jrinas@gmx.de> SEE ALSO
sinfo(1),sshallsinfo(1), Linux JANUARY 2005 SINFOD(8)
All times are GMT -4. The time now is 12:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy