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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)