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 06/09/2014 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)
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)
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'm trying to write a simple script to take an email subject line and add it to a db. I've currently given up on getting procmail to work with my hosting folks so that leaves me with a shell script as the next option. I can set things up so when I receive an email the script is triggered,... (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 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)
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)