Sponsored Content
Top Forums Shell Programming and Scripting Need a mail from system after healthcheck Post 302084239 by SharmaPCS on Thursday 10th of August 2006 02:59:08 AM
Old 08-10-2006
Sending mail when diskspace is exceeded

Hey... I wrote one script for this... But I don't display it here... Smilie I give idea first, try it. If you cannot do it, then I will give you.

1. First try df -k | grep -v "Filesystem" > diskspace.txt
2. Read that file and awk its records...
3. if size > threshold
send mail
 

9 More Discussions You Might Find Interesting

1. SuSE

What's mail system running on Linux

Hi,I am need setup mail system on the linux, but i am don't know , My linux system is Redhat Linux 9.0.However,What's kind mail system is fit my operation system? expect everyone give directionsme with superior . Thanks! (6 Replies)
Discussion started by: Golden.Liu
6 Replies

2. SCO

How to configure SCO OpenServer 5.0.7 mail system MMDF

Hello unix experts, Here I have couple of questions regarding MMDF mail system on SCO unix: 1. How can I configure SCO OpenServer 5.0.7 mail system MMDF to send emails using "mail" command to other machines in the same LAN? 2. How can I configure SCO OpenServer 5.0.7 mail system MMDF to ... (1 Reply)
Discussion started by: forumuser7
1 Replies

3. AIX

Mailing from AIX 5.3 to windows mail system.

Hi, I want to mail a log from my IBM AIX 5.3 server to my windows mailbox in my company every month. Any ideas what the command would be? Do I need to set any smtp settings? Thanks (2 Replies)
Discussion started by: jfd7000
2 Replies

4. Shell Programming and Scripting

Sending mail on system shutdown

I want to only send a mail before my system goes for a shutdown or reboot. I don't want a mail when it comes up after a reboot or is normally started.. How can i achieve this? (2 Replies)
Discussion started by: proactiveaditya
2 Replies

5. UNIX for Dummies Questions & Answers

Configure system for mail(x)

Hi, I would like to make a BASH shell script email me regarding its status (ie. it has errored while processing a file, it has finished etc.). - This script will be distributed to users using Macs and a variety of Linux flavors. Is there a standard mail utility that most OS's should have? I... (0 Replies)
Discussion started by: msb65
0 Replies

6. Shell Programming and Scripting

file system status mail notifications

HI I want to get an e-mail @ my yahoo address when the file system used space gets more than 89% , & the message contents must be the outputs of df -g errpt netstat -i ??????? (3 Replies)
Discussion started by: majd_ece
3 Replies

7. Solaris

Mail system Configuration issue on UNIX box

Hi, I wanted to configure a mail system on my UNIX box. For that I read a document Sun Internet Mail Server 3.5 Advanced Installation Guide: Contents which is actually quite useful document but I am not sure from where can I bring patch? Is this patch will come in any CD form which I need to run... (1 Reply)
Discussion started by: Dhruvak
1 Replies

8. UNIX for Dummies Questions & Answers

Simplest way to access Linux system mail from email client

I'm not a Linux newbie but this seemed like a pretty n00b question. I am familiar with Postfix/Dovecot setups but now I am looking for the simplest way to access mail on a Linux system, such as the mail that goes to /var/mail/root. I know I can edit /etc/aliases and have the system mail go straight... (6 Replies)
Discussion started by: TayKimchi
6 Replies

9. Shell Programming and Scripting

<Mail> attachment param is not working under system function

Hi Guys, I have executed the mail command that has attachment with filename as current date enclosed in system function that is added under awk command. I have used awk command to check if the error code is present in the file then email command sends an email with subject Error Code ,body... (2 Replies)
Discussion started by: reminisce
2 Replies
SAM_INITIALIZE(3)				    Corosync Cluster Engine Programmer's Manual 				 SAM_INITIALIZE(3)

NAME
sam_initialize - Initialize health checking SYNOPSIS
#include <corosync/sam.h> cs_error_t sam_initialize (int time_interval, sam_recovery_policy_t recovery_policy); DESCRIPTION
The sam_initialize function is used to initialize health checking of a process. Application can have only one instance of SAM. This function must be called before any other of SAM functions. It is recommended to ini- tialize before the process begins any process initialization. The time_interval parameter is a timeout in milliseconds before taking recovery action after having not received a healthcheck. If time_interval parameter is zero, there is no time limit and no healthcheck must be sent by the process. In this operational mode, a process failure will continue to execute the recovery policy. The recovery_policy is defined as type: typedef enum { SAM_RECOVERY_POLICY_QUIT = 1, SAM_RECOVERY_POLICY_RESTART = 2, } sam_recovery_policy_t; where SAM_RECOVERY_POLICY_QUIT on failure, the process will terminate. SAM_RECOVERY_POLICY_RESTART on failure, the process will restart. To perform event driven healthchecking, sam_register(3) and sam_start(3) functions must called. Event driven healthchecking causes the duplicate standby process running the SAM serve rto periodically request healthchecks from the active process. RETURN VALUE
This call return CS_OK value if successful, otherwise and error is returned. ERRORS
CS_ERR_BAD_HANDLE can happened in case of double initialization. CS_ERR_INVALID_PARAM recovery_policy has invalid value. SEE ALSO
sam_register(3), sam_start(3), sam_hc_callback_register(3) corosync Man Page 12/01/2009 SAM_INITIALIZE(3)
All times are GMT -4. The time now is 08:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy