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_WINPOP(7) OCF resource agents OCF_HEARTBEAT_WINPOP(7)NAME
ocf_heartbeat_WinPopup - Sends an SMB notification message to selected hosts
SYNOPSIS
WinPopup [start | stop | status | monitor | meta-data | validate-all]
DESCRIPTION
Resource script for WinPopup. It sends WinPopups message to a sysadmin's workstation whenever a takeover occurs.
SUPPORTED PARAMETERS
hostfile
The file containing the hosts to send WinPopup messages to. (required, string, no default)
SUPPORTED ACTIONS
This resource agent supports the following actions (operations):
start
Starts the resource. Suggested minimum timeout: 30.
stop
Stops the resource. Suggested minimum timeout: 30.
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.
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.
EXAMPLE
The following is an example configuration for a WinPopup resource using the crm(8) shell:
primitive p_WinPopup ocf:heartbeat:WinPopup
params
hostfile=string
op monitor depth="0" timeout="10" interval="10"
SEE ALSO
http://www.linux-ha.org/wiki/WinPopup_(resource_agent)
AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors)
resource-agents UNKNOWN 03/09/2014 OCF_HEARTBEAT_WINPOP(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)
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)
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)
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)
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)
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)
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)
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)
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)