Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ocf_heartbeat_mailto(7) [suse man page]

OCF_HEARTBEAT_MAILTO(7) 					OCF resource agents					   OCF_HEARTBEAT_MAILTO(7)

NAME
ocf_heartbeat_MailTo - Notifies recipients by email in the event of resource takeover SYNOPSIS
MailTo [start | stop | status | monitor | meta-data | validate-all] DESCRIPTION
This is a resource agent for MailTo. It sends email to a sysadmin whenever a takeover occurs. SUPPORTED PARAMETERS
email The email address of sysadmin. (required, string, no default) subject The subject of the email. (optional, string, no default) SUPPORTED ACTIONS
This resource agent supports the following actions (operations): start Starts the resource. Suggested minimum timeout: 10. stop Stops the resource. Suggested minimum timeout: 10. status Performs a status check. Suggested minimum timeout: 10. Suggested interval: 10. monitor Performs a detailed status check. Suggested minimum timeout: 10. Suggested interval: 10. meta-data Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5. validate-all Performs a validation of the resource configuration. Suggested minimum timeout: 5. EXAMPLE
The following is an example configuration for a MailTo resource using the crm(8) shell: primitive example_MailTo ocf:heartbeat:MailTo params email=string op monitor depth="0" timeout="10" interval="10" SEE ALSO
http://www.linux-ha.org/wiki/MailTo_(resource_agent) AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors) resource-agents 1.0.3 07/05/2010 OCF_HEARTBEAT_MAILTO(7)

Check Out this Related Man Page

OCF_HEARTBEAT_AUDIBL(7) 					OCF resource agents					   OCF_HEARTBEAT_AUDIBL(7)

NAME
ocf_heartbeat_AudibleAlarm - Emits audible beeps at a configurable interval SYNOPSIS
AudibleAlarm [start | stop | status | monitor | meta-data | validate-all] DESCRIPTION
Resource script for AudibleAlarm. It sets an audible alarm running by beeping at a set interval. SUPPORTED PARAMETERS
nodelist The node list that should never sound the alarm. (optional, string, no default) SUPPORTED ACTIONS
This resource agent supports the following actions (operations): start Starts the resource. Suggested minimum timeout: 10. stop Stops the resource. Suggested minimum timeout: 10. restart Suggested minimum timeout: 10. status Performs a status check. Suggested minimum timeout: 10. Suggested interval: 10. monitor Performs a detailed status check. Suggested minimum timeout: 10. Suggested interval: 10. meta-data Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5. validate-all Performs a validation of the resource configuration. Suggested minimum timeout: 5. EXAMPLE
The following is an example configuration for a AudibleAlarm resource using the crm(8) shell: primitive p_AudibleAlarm ocf:heartbeat:AudibleAlarm op monitor depth="0" timeout="10" interval="10" SEE ALSO
http://www.linux-ha.org/wiki/AudibleAlarm_(resource_agent) AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors) resource-agents UNKNOWN 03/09/2014 OCF_HEARTBEAT_AUDIBL(7)
Man Page

15 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Validating a formatted message

I'm trying to write a shell script that will validate a format of a data file we recieve every night. What I'm looking for is to ensure there are 8 pipes "|" before an email address and 9 pipes after the email address. I was also looking to do this in one of two ways - a) Grabbing random... (10 Replies)
Discussion started by: BrianOsburn
10 Replies

2. Shell Programming and Scripting

How to check parameter variable?

Hello All, I have a script that will email out if the email address is specified as parameter 1. I am using ksh, and then tried the following : email=$1 Following did not work, I am getting error test -z $email test ${email:=" ") -eq " " test -n $email test ${?email} What... (4 Replies)
Discussion started by: negixx
4 Replies

3. What is on Your Mind?

Suggested venues to look for advanced C programmers

Can someone suggest any online venues to assist in recruiting a senior C programmer (looking for someone interested in working on kerberos code). I've tried a bunch of the open source and higher ed lists (this is for Univ. of Michigan). The commercial services such as Dice or monster yield a... (7 Replies)
Discussion started by: painman
7 Replies

4. Shell Programming and Scripting

need help in finding a string and to send an email using shell script

Hi All i am writing a shell script which will search for a string "expires". once the search string is found it has to give the email address as the output and send an email to the person This is basically to find the encrypetd keys which are loaded in the unix server Below are sample... (10 Replies)
Discussion started by: ranga27
10 Replies

5. Solaris

email configuration problem

I am using solaris 10 on x86. I have a requirement to send email using shell script. User can configure any email address like xyz@yahoo.com or xyz@hotmail.com in the configuration file. I have studied online tutorial and they say. we should modify sendmail.cf for this purpose. ... (3 Replies)
Discussion started by: mmunir
3 Replies

6. Shell Programming and Scripting

Run a script based on the subject line of the email

Hi, I need help in running a script that would pull info from an email subject line and run a script (foo.sh). I'm pretty sure after a bit of googling that this is possible in several ways. but none was pretty clear on how to accomplish it. The part that I really need help with is getting the... (5 Replies)
Discussion started by: satekn
5 Replies

7. Shell Programming and Scripting

Basic While loop won't exit...

Hi everyone - just like to say great forum...I've learned a lot off here but I just can't figure this one out...(first post) I'm writing a script to monitor a directory and email the latest modified file....(I realize there are better ways than I'm trying here...I don't like copying and pasting... (5 Replies)
Discussion started by: trevthefatty
5 Replies

8. Linux

ssmtp error : Cannot open <ip_address>:25

Hello, I am facing a problem with ssmtp mailing agent. I have installed and configured ssmtp in my RHEL5.3 system. I have written a shell script which sends mail to a couple of email id's. The script uses ssmtp to send mails. When I am running the scipt manually i.e. sh <script_name>.sh then... (3 Replies)
Discussion started by: senrooy
3 Replies

9. Shell Programming and Scripting

Script to read email from Esxchange OWA server

Hi all. I was asked to monitor our email process end to end, so that we can track that email is being delivered and the delay if any. The email system I am monitoring is a Microsoft exchange with the built in Microsoft Web front end. The monitoring systen is Nagios running on CentOS. I... (3 Replies)
Discussion started by: salatconed
3 Replies

10. Shell Programming and Scripting

How to find whether there is new email or not

Hello All, I am trying to write a script which will check and informed user that there is a new email. Is any one tell me, how can i find that? Thanking You, (4 Replies)
Discussion started by: kasparov
4 Replies

11. Shell Programming and Scripting

Using top command to email if process is exceeding 25% and sending an email alert if so

This is my first time writing a script and Im having some trouble, Im trying to use the top command to monitor processes and the amount of CPU usage they require, my aim is to get an email if a process takes over a certain percentage of CPU usage I tried grep Obviosly that hasnt worked, Any... (8 Replies)
Discussion started by: jay02
8 Replies

12. Shell Programming and Scripting

Script to only email new record

Hello, I'm trying to monitor queues for specific tickets and email the user only when a new ticket is created. But to complicate things, I need to think how I'm going to deal with repeat emails on the same ticket until it is closed. Meaning, script runs every 15 minutes, if it finds a... (4 Replies)
Discussion started by: ArvinSodhi
4 Replies

13. Solaris

Which hammer do I use?

So, I've got a email account that I need to monitor for a particular subject line and\or that contains a specific string in the body. Normally, I'd use Outlook for this but in this case, it will only work if Outlook is running. Those particular rules aren't supported server side. So, I have... (5 Replies)
Discussion started by: DustinT
5 Replies

14. Shell Programming and Scripting

File Space Count

Hi I have a volume that i want to run a daily check on to find out disk usage, and email me the results. I have got as far as checking the size and email status. But cant seem to get the file size included into the email. #!/bin/bash cd /gpfs/TIER2/TAG_PRIMARY_ARCHIVE du -sh echo "Exit... (4 Replies)
Discussion started by: treds
4 Replies

15. Shell Programming and Scripting

Send Disk Space Usage Status via email

Hi Guys, Is there any way I can write a script that sends DISK SPACE USAGE STATUS via email once a week? Thanks, (5 Replies)
Discussion started by: g4v1n
5 Replies