Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ocf_heartbeat_mailto(7) [debian 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 p_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 UNKNOWN 03/09/2014 OCF_HEARTBEAT_MAILTO(7)

Check Out this Related Man Page

OCF_HEARTBEAT_WAS6(7)						OCF resource agents					     OCF_HEARTBEAT_WAS6(7)

NAME
ocf_heartbeat_WAS6 - Manages a WebSphere Application Server 6 instance SYNOPSIS
WAS6 [start | stop | status | monitor | meta-data | validate-all] DESCRIPTION
Resource script for WAS6. It manages a Websphere Application Server (WAS6) as an HA resource. SUPPORTED PARAMETERS
profile The WAS profile name. (optional, string, default default) SUPPORTED ACTIONS
This resource agent supports the following actions (operations): start Starts the resource. Suggested minimum timeout: 300. stop Stops the resource. Suggested minimum timeout: 300. status Performs a status check. Suggested minimum timeout: 30. Suggested interval: 10. monitor Performs a detailed status check. Suggested minimum timeout: 30. Suggested interval: 10. validate-all Performs a validation of the resource configuration. Suggested minimum timeout: 5. meta-data Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5. methods Suggested minimum timeout: 5. EXAMPLE
The following is an example configuration for a WAS6 resource using the crm(8) shell: primitive p_WAS6 ocf:heartbeat:WAS6 op monitor depth="0" timeout="30" interval="10" SEE ALSO
http://www.linux-ha.org/wiki/WAS6_(resource_agent) AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors) resource-agents UNKNOWN 03/09/2014 OCF_HEARTBEAT_WAS6(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

check the status and send an email with status

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)
Discussion started by: isingh786
3 Replies

3. Shell Programming and Scripting

MailTo in a script

Im a beginner in shell scripting, but I figured if I wanted the right answer, this is the place to come. I've written a script that basically executes a command and sends the result to a standard output > ???log.log. I just wanted to know if I could put the MailTo command somewhere in the... (2 Replies)
Discussion started by: Itsaboutme
2 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. AIX

HACMP problem

Am configuring an HACMP and found errors in syn. ERROR: Node: dbs104 has no available communication interface for takeover of service IP label: dbs103_svc, and will never acquire its resource group. (2 Replies)
Discussion started by: vjm
2 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

not able to see date in the email

cat test3.txt | mailx -s " COE status ${date} <NOT OK> " emailid@server.com I am expecting a date in the email subject but above doesnot work i am using ksh shell pls help Thanks. (2 Replies)
Discussion started by: ajincoep
2 Replies

8. UNIX for Advanced & Expert Users

Linux-Heartbeat Email Notification

hi guys I hope this goes here Have someone used Linux heartbeat to send email when the Slave server becomes the Master? I've read I can configure the MailTo under /etc/ha.d/resource.d but I really don't know how to do it. I basically need my primary server to send an email when it... (2 Replies)
Discussion started by: karlochacon
2 Replies

9. 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

10. 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

11. 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

12. 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

13. Shell Programming and Scripting

shell script

Is there a way to redirect the out to monitor and email , at the moment i have this which just does email #!/bin/sh rsh serv -l root '/tools/SITE/etc/bin/sitesync -test' 2>>/tmp/output | mail -s "Output from sync" email@email.com thanks Adam (3 Replies)
Discussion started by: ab52
3 Replies

14. 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

15. 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