Email notification setup using scripts

Hi,
Anybody knows email notification setup using script.
I want setup space monitoring alerts through scripts.

http://usalug.com/phpBB3/viewtopic.php?t=9752
http://www.cyberciti.biz/tips/howto-write-perl-script-to-monitor-disk-space.html
http://bash.cyberciti.biz/monitoring/shell-script-monitor-unix-linux-diskspace/
http://www.cyberciti.biz/tips/shell-script-to-watch-the-disk-space.html
Use these links for code and edit for your case.
Thanks

Similar Messages

  • EM 12c Email Notification Setup

    Hello,
    I've got EM 12c up and running.  I've got some notifications already setup.  They are for the database, critical/fatal/warning, that I set up through the incident manager.  Not sure if this was the right way to go about that but anyways it seems to be working.
    I'm trying to get it setup so I get notified if say the filesystem is running out of space, say if /u02 is 85% used to send an email.  If I go into Enterprise, Monitoring, Monitoring Templates. I've created a new template for the hosts, with all the metrics that I want monitored.  Now how do I get that to email me those alerts?  Is there a document I'm not seeing that will help me set this up?
    Thanks!
    ETA:  I can go to the host homepage, and see that there metrics that I'm monitoring are alerting.  I just can't seem to figure out how to email based on those alerts.

    Hello,
    To answer your question, here are the high level steps:
    1) Setup your SMTP gateway.   However, if you are already getting email, then perhaps you've done this step already?
    For reference, here is the link to the doc for details:
    http://docs.oracle.com/cd/E24628_01/doc.121/e24473/notification.htm#sthref154
    2) Set up your email addresses. 
    Under your username drop-down menu,  you should specify the email addresses to which  notifications should be sent.
    Here is the link to the doc for details:
    http://docs.oracle.com/cd/E24628_01/doc.121/e24473/notification.htm#autoId2
    3) Set up rules (incident rule sets) that specify the metric alerts for which you want emails to be sent
    The rule sets were designed to provide a lot of flexibility in covering the different types of events that EM12c supports as well as the many types of notification requirements that many data center needs.
    Think of a 'metric alert'  as a type of event.  
    For your specific requirements (sending email for host metric alerts)  you can do this:
    3.1) Create a rule set and specify the targets for the rule.   In your case you can specify all targets of type 'host'  (if you want the email to be sent for all host targets' alerts) or choose the specific hosts you're interested in.   
    3.2) In the Rules tab,   create an event rule (this is the first option in the choice of rules to create).   When asked for a 'Type', choose 'metric alert' as the event type.   Then choose 'Specific events of type Metric Alert',   then choose the filesystem metric and other metrics for which you want notifications to be sent.
    3.3) In the Actions part of the rule, specify the EM user(s) in the 'Email to' field of the Notifications section.
    3.4) Save the rule
    This should get you up and running with email notifications. 
    However, I would also recommend looking into these other areas to optimize your use of EM12c monitoring:
    1)   If this notification requirement applies not to all hosts but a subset of host targets,  consider creating a group of those targets and specifying the group as the target of the rule set  (step #3.1 above).  Once you have a group, you can perform operations on the group instead of individual targets, makes it easier to manage later on.  As you add more targets to EM, if they need to be monitored in the same way as the other targets in the group,  then simply add the new target to the group,  the rule will automatically apply to the newly added target in the group without requiring changes to the rule.
    2) Use incident management features
    In EM12c, we introduce incident management as a way to focus and better manage the more important issues that impact your datacenter.   Hence when an important event comes in, consider creating an incident for it.  Once you  have an incident, you can leverage features such as specifying an incident owner,  setting its priority,  resolution status, etc.    Using Incident Manager will provide you in-context diagnostic links and access to MOS articles to  help further diagnose/resolve the event.
    Here is the link to the doc for more details on incident management:
    Using Incident Management
    3) Leverage other rule options
    The rule has an option to apply to all metric alerts of specified severities.   So  if you want to receive email for all critical and warning alerts for the host targets,  then instead of choosing the specific metrics, you can change the rule (step #3.2 above) and choose the option 'severity in critical, warning'  instead of choosing individual metrics.     If you do so,  then say later on you want to add thresholds to new metrics (which will generate metric alerts).  You won't have to change the rule to add in the new metrics since your rule already covers all metric alerts with critical and warning severities.  However, since it will cover all metric alerts for your chosen targets, you need to make sure that you have the appropriate thresholds for the metrics to avoid unwanted email notifications from unwanted alerts.
    The Incident Manager chapter that I referenced above has an Advanced Topics section that covers other scenarios.   If you have other monitoring requirements, you can take a look at that section to get ideas on how these can be implemented in Enterprise Manager.     Or you can reply back to this post if you have additional questions.
    Finally, you can take a look at this monitoring best practices paper that describes how you can leverage EM12c to set up monitoring in a scalable way:
    http://www.oracle.com/technetwork/oem/sys-mgmt/wp-em12c-monitoring-strategies-1564964.pdf
    Regards,
    Ana

  • WVC80N email notification setup

    I just have my WVC80N camera delivered. I am now trying to setup its email notification once the motions are  detected at home.  I have noticed that the WVC80N does not support SSL SMTP servers (it cannot send email notification to any SSL SMTP mail server), which are almost everywhere nowadays like gmail, Yahoo, hotmail, even my own ISP ATT. My question is why CISCO cannot add the support for SSL to its wvc80N,. Without SSL SMTP server support, this email notification function  is useless.

    Hi,
    I might be able to help.  I just got a WVC80N camera and am trying to setup the camera for email alert.  I have AT&T DSL and had problem setting it using SSL SMTP port 465 using my yahoo email account.  I then remembered that when I initially setup my AT&T DSL account, I was given another email account @att.net.  I then use my @att.net account instead of @yahoo.com account and set the port to 25.  Now when I click on the button 'Test E-Mail' under the Setup->Motion Detection page, it pops up a message stating that the email was sent successfully.  So try to use your ISP's email account and see if it will work.
    So I'm able to have the camera send a test email to my email account.  But my problem is that the email itself is blank.  No attachment either picture or video.  Has anyone else been able to get the camera to send a test email, but the email itself is blank?

  • Can workflow extended email notification setup be transported?

    I am creating the setup for extended email notification of workflows using transaction SWNADMIN.  Can this be transported from DEV to TST and then to PRD and if so, how do I attach it to a CTS?

    Yes, you can. Use SWNCONFIG instead to transport. From the menu options.
    Regards, IA

  • I don't get email notifications when using find my iphone from another device.

    When my husband uses the app "find my iphone" to locate my where abouts, I no longer get email notifications.  He uses my user name and password.  I believe he dismantled that feature somehow.  Is that possible? 

    I think it time to change your password... or husband

  • Duplicate email notifications in using extended notification

    Hi,
    I have configured extended nottification to send workitem notifications to outlook email inbox by using SWNADMIN & SWNCONFIG.  I have executed the SWN_SELSEN program to send notifications out.  However, I am getting two duplicate email messages for every same workitem.  Has anyone run into this same issue?  If you have, could you share how did you solve this problem.
    Thank you for your help.
    Jennifer Tran

    If you're on ECC 5.0 or higher - check this blog out
    <a href="/people/saujanya.gn/blog/2006/12/19/how-to-get-work-items-your-outlook-inbox:///people/saujanya.gn/blog/2006/12/19/how-to-get-work-items-your-outlook-inbox
    If you're on something lower than ECC 5.0 -
    Search SDN for notes on RSWUWFML2 - that's a SAP program that you could use to send workitem to outlook email inbox.
    Hopes this help.
    Jennifer Tran
    Message was edited by:
            Jennifer Tran

  • * Can We Send Email Notifications Only using User Task in Oracle BPM ?? *

    Hi All,
    Can we send any email notification to initiator, only from Oracle BPM User / Human task without using any notification activity.
    Is it possible to send email notifications using BPM User task alone.
    Any Help appreciated.
    Regards
    Satya

    Hi Satya,
    To send an email to the person who initiated the work item instance in the process when the instance reaches a human task:
    1. Ensure that the id of person who initiated the instance is stored in the process predefined variable called "creator".
    2. In the Interactive activity's input data mapping, map this "creator" process predefined variable to the corresponding "creator" attribute in the human task's execData.
    3. Open the human task -> click the "Notification" tab -> click the "+" icon in the upper right -> on the new row added to the bottom of the list, leave the task status dropdown set to "Assign" and change the recipent (the middle column) to "Initiator".
    Dan

  • DFM email notification setup

    Hi All,
    I have LMS 2.6 and DFM 2.0.10, configured email notification for one Subscription "INL" as sender address [email protected] to [email protected]
    Recently I have configured another Subscription "POY" for another bunch of devices as sender "[email protected]" only to [email protected]
    I am receiving mails to [email protected] but not to [email protected]
    Can someone look into this issue and tell me what needs to be done.
    Regards,
    Jopeti

    Hi,
    First thing I'd check is if you are generating alarms for "POY" in the Alerts and Activities. If they are present then I'd verify I can send email to [email protected] from the LMS server. If you can then we will need to examine some files.
    You can start troubleshooting by verifying the configuration of your second group.
    Creating a Notification Subscription
    To create a notification subscription, perform the following steps:
    1.  If you want to monitor a specific set of events, create an event set that contains the events you want to monitor. Otherwise, all events and alerts will be monitored.
    2.  Create a notification group that specifies the criteria DFM should use when generating notifications:
    One or more event sets (if no event set is specified, all events and alerts are monitored)
    Devices, alert severity and status, and event severity and status
    You can specify the notification group name, along with entering identifying information (using the Customer ID and Customer Revision fields).
    3.  Create a subscription by doing the following:
        a.  Select the notification type (SNMP Trap, E-Mail, or Syslog).
        b.  Name the subscription and apply a notification group to it.
        c.  Specify the recipients (hostname, e-mail address).
        d.  Save the subscription. It will automatically start running.
    Troubleshooting SMTP
    From the LMS server, telnet to your SMTP server on TCP port 25, and make sure you can:
    1.  Connect to the server
    2.  Issue the following command:
        HELO IP
    Where IP is the IP address of the LMS server. The mailserver should grant you access to send email.
    If that works, start a sniffer trace filtering on all tcp/25 traffic between the LMS server and the SMTP server. Generate new DFM events which should trigger email notifications, then check the sniffer trace to see what is happening.
    Thanks.

  • Email Notification without using standard Process

    Hi ALL,
    I need to send an Alert for the user with message ' TEST PROCESS CHAIN' is successfullly completed, no need of detail process which is below message
    Job started                                                                                Step 001 started (program RSPROCESS, variant &0000000021258, user ID ECCREMOTE)                                                                                Start process ABAP ZSTART_TEST in run 4O3F3OZCSANBDAQK25O84QXOT of chain ZTEST_PC                                                                                Start program RSAN_PROCESS_EXECUTE with program variant ZTEST_PC                                                                                Spool request (number 0000016968) created without immediate output                                                                                Processing completed successfully for analysis process ZTEST_PC                                                                                Entire chain now has status 'G'
    Thanks,
    Naresh

    Hi naresh,
    u can also follow the below step as well to acheive the same :
    1 Go To RSPC Transaction
    2 Select your process chain
    3 Right click on the process and choose create message a window popsup.
    4 Choose the message you want like either success or errors
    5 In the next screen create the process variant.
    6 In the process maintance: send message screen select maintain recipient list
    7 Enter recipient and recipient type
    8 Come back to send message screen and save it ( You don't have option in the previous screen to save)
    9. Do this for all the processes and save it and schedule for testing.
    Check the below thread :
    Sending Email notification via process chain...
    Thanks,
    Deepak
    Edited by: Deepak Machal on Dec 7, 2011 8:49 AM

  • M425 alert email notification setup

    Looking for the email settings to setup alert notifications (low toner, maintenance needed, etc.) for this model printer. I've gone though the settings and am missing something as I don't see the setting. Please note this is not the settings for scanning as those are configured and working. What I need is to set this model printer up (like every other HP modle here) so it email's our support group alerts. Thanks in advance for your help.

    http://usalug.com/phpBB3/viewtopic.php?t=9752
    http://www.cyberciti.biz/tips/howto-write-perl-script-to-monitor-disk-space.html
    http://bash.cyberciti.biz/monitoring/shell-script-monitor-unix-linux-diskspace/
    http://www.cyberciti.biz/tips/shell-script-to-watch-the-disk-space.html
    Use these links for code and edit for your case.
    Thanks

  • Nokia 5230 Email notification setup

    Hi,
    I have the Nokia 5230 and it seems to keep asking me to setup my email. I have the email setup already; but it sporadically keeps requesting that it have access/user rights to setup the email. How can I fix this issue and cancel the notifications?
    Thanks

    Hello,
    I have a Nokia 5230 with some technical problems. I would appreciate help and advice to solve the problems. They are:
    1. Email setup
    When I first bought the phone I setup my email on Nokia 5230 successfully in July 2010. Nevertheless, at that time I deleted it after that. Later I installed Kaspersky Mobile Security trial version on my Nokia. 
    Then in Oct 2010, I tried to setup my email again, and till today, it doesn't work. I went to setup wizard, email setup, and email, put in my email address and password, but it is never successful in setting up the email on my front page. I have since deleted Kaspersky Mobile Security, but the email setup still does not work. How do I get it to work?
    2. How to use voice command
    I would appreciate some advice how to set up voice command on my Nokia so that for example,  I can just use my voice to say a name on the contact list and it will automatically call that person. 
    I would also like to setup the voice command so that I can use my voice and say Menu, and the menu will pop up. Any help in this will be much appreciated.
    3. Sim card memory is always full
    I do not know why the Sim card memory is full sign always blinks on the top right hand corner of my Nokia. How do I clear the memory in my Sim card? I have deleted most of my contacts saved on the Sim card memory, but the signal still blinks. 
    Thank you.
    N

  • Email notification and SAP Script feature M0001

    Hi All,
    I have posted this questions in HCM forum but am posting again in ABAP forum since SAP script is related to ABAP development also. I will appreciate your help on this.
    I am trying to send a notification to a distribution list whenever there is a specific Action (MASSN). I have two issues while trying to do so -
    1 - I have defined the dynamic action and feature M0001 and a SAP script in SO10. I am getting the message in my inbox but with the variables from IT0000 only. In my sap script I have defined fields from IT0002/ IT0041 etc but those fields are coming as blank in my notification. Is this because I have configured dynamic action for IT0000 only. This is how my dynamic action looks like -
    0000 06 1 P **SEND IF CHANGE IN MASSN -IT0000*****
    0000 06 2 P T001P-MOLGA='10'
    0000 06 4 P P0000-MASSN='UP'
    0000 06 6 P P0000-MASSG='02'
    0000 06 8 M M0001
    Do I have to define these configurations for each and every infotype (that I have used in my SAP script) in table T588Z ?
    2 - I want to include the position text instead of the Position no. in my notification. How can I do that? Since position text is stored in T582 table and not in P0000 or P0001.
    Thank you for reading and I will appreciate your suggestions.
    Sanghamitra

    Hi Kjetil,
    Do you know how the problem was finally solved in your former company?
    I already had a look to your post before, but for me the question is still opened. We have a corporate (non SAP) portal which users see by default when they open their browser and from where they can navigate to the SAP portal, in which we do not have single sign on.
    So our users will definitely not login to the SAP Portal by themselves (nor to go to UWL, nor to display the homepage).
    Maybe that an applet running on the corporate portal and doing RFC calls on the different back-ends would solve it, but I believe that might be quite a burden to develop, especially if we start talking to various non SAP systems as well. A better approach would probably be to query the portal db to look at what is in each user's UWL. But I have no idea of how the UWL data is structured in the portal and how it is updated (i.e. is the delta pull mechanism also running when a user is not logged in the portal?). I am also not sure whether there is an API in the portal to query this easily (i.e. similar to SAP_WAPI_COUT_WORKITEMS). Has anyone tried this approach before?
    Cheers,
    Patrick

  • Email notification using Oracle Job

    Hi,
    I am trying to setup a email notification job using Oracle 11gR2. Per online documnetation I have done the following setup, but the email notification job is failing. If you guys have any ideas, please assist.
    Step 1:
    BEGIN
      DBMS_SCHEDULER.set_scheduler_attribute('email_server', 'oracle.kotaise.com:25');
      DBMS_SCHEDULER.set_scheduler_attribute('email_sender', '[email protected]');
    END;
    Step2:
    BEGIN
      DBMS_SCHEDULER.create_job (
        job_name        => 'email_notification_job',
        job_type        => 'PLSQL_BLOCK',
        job_action      => 'BEGIN NULL; END;',
        start_date      => SYSTIMESTAMP,
        repeat_interval => 'freq=minutely; bysecond=0',   
        enabled         => TRUE);
    END;
    Step 3:
    BEGIN
    DBMS_SCHEDULER.ADD_JOB_EMAIL_NOTIFICATION (
      job_name   =>  'email_notification_job',
      recipients =>  '[email protected]',
      sender     =>  '[email protected]',
      subject    =>  'Scheduler Job Notification-%job_owner%.%job_name%-%event_type%',
      body       =>   '%event_type% occurred at %event_timestamp%. %error_message%',
      events     =>  'JOB_FAILED, JOB_BROKEN, JOB_DISABLED, JOB_SCH_LIM_REACHED');
    END;
    Step 4:
    I have created the following  job that executes a package which executes a package "test_package.pdata". This package is not created yet, becuase I wanted to see whether the email notification is working or not. As expected the "TEST_JOB" is failed becuase of missing package. But the email notification job "'email_notification_job'", which runs every minute, failed to send an email notification.
    BEGIN
      SYS.DBMS_SCHEDULER.CREATE_JOB
           job_name        => 'test_job'
          ,start_date      => SYSTIMESTAMP
          ,repeat_interval => 'freq=minutely; bysecond=0'
          ,end_date        => NULL
          ,job_class       => 'DEFAULT_JOB_CLASS'
          ,job_type        => 'PLSQL_BLOCK'
          ,job_action      => 'BEGIN test_package.pdata; END;'
          ,comments        => NULL
          ,enabled         => TRUE
    end;
    I have queried the DBA_SCHEDULER_NOTIFICATIONS table, and I see that the email notification job did not started.
    JOB_NAME                                      RECIPIENT                     EVENT
    EMAIL_NOTIFICATION_JOB      [email protected]      JOB_FAILED
    EMAIL_NOTIFICATION_JOB      [email protected]      JOB_BROKEN
    EMAIL_NOTIFICATION_JOB      [email protected]      JOB_SCH_LIM_REACHED
    EMAIL_NOTIFICATION_JOB      [email protected]      JOB_DISABLED
    Thanks

    Hi,
    The DBA_SCHEDULER_NOTIFICATIONS show the notification settings, not the notifications that were sent. To see that, run the follwoing query:
    select queue,
           msg_state,
           enq_time,
           enq_user_id,
           deq_time,
           deq_user_id,
           t.user_data.event_type,
           t.user_data.object_owner,
           t.user_data.object_name,
           t.user_data.event_timestamp
      from sys.AQ$SCHEDULER$_EVENT_QTAB t;
    Does it show anything for your job?

  • Sun StorageTek 2510 Email Notifications Via CAM

    Hi There,
    I am slowly getting things setup. I am wanting to get email notifications setup.
    In CAM I have entered all the details correctly. If I click "Test Email" and enter an address with a description I just get:
    ErrorTest Email
    A connection cannot be made to the SMTP server at: [email address of the server]
    Does anyone else get this? I have a number of other monitoring programs able to send mail fine through our exchange servers.
    Where can I find a log or some help with this?
    Thanks!
    Cheers

    I'm on CAM 6.1.2.8 and it works fine with Exchange 2007.
    The application that I had this type of issue with was not CAM but used a Java mailer.
    Same type of behavior, would try to connect to Exchange, see that it was talking to Exchange, start trying some Exchange authentication junk to be helpful, and never send the email.
    The fix was to send the email to a Unix host, DMZ email firewall, etc - something that just does naked SMTP.
    Is your Exchange setup to allow the IP of the CAM system to connect and not be authenticated?

  • Email Notification Syntax Error

    I'm having trouble getting Email Notification working using Motion Detection with WebCam Centre.
    Updated to .7.02 but still not working.
    The problem seems to be the SMTP server setting. When I try and send the test email I get this syntax error:
    Syntax error in 'From' header: malformed address: [my_email@my_domain.com]\n may not follow my_email@my_domain.com: failing address is: my_email@my_domain.com[my_email@my_domain.com]
    N.B. I've changed the lesser than & greater than characters in above error to square brackets because the forum warned me it was invalid HTML.
    I've no idea why it puts \n on the end of my email address, but I'm informed it's a newline character?
    The mail server I use doesn't require authentication. I'm using the same SMTP server setting which works fine in Thunderbird or Outlook Express.
    If I disable the router/modem and use a dial-up modem with a different ISPs 0845 PAYG, with different SMTP server setting, I can sent the test email successfully.
    If I use my ADSL providers 0845 number with their SMTP server setting then it fails. Which suggests the software with WebCam Centre doesn't play ball with my ISPs SMTP server, or it's something to do with the router modem, a Netgear DG834 wired..
    TIAMessage Edited by NJW on 06-11-2006 03:06 PM

    I wasn't thinking straight when I said it could be my router/modem. It's unlikely to be my router/modem, as I still get the error when using the dial-up account given with my ISP. So it must be their SMTP server or the WebCam software.

Maybe you are looking for

  • External Hard Drive - Only one partition is recognized

    I have a 1TB GDrive, NTFS formatted, that has been divided into three partitions. When I connect the drive to my Mac Pro, only one partition is recognized. I have tried downloading Tuxera, rebooting the system, and connecting with different cables. D

  • Message GU506 when branching to line item report

    We have carried out a shortened fiscal year change and now when we use a existing report painter report to branch to the line item report, then the system generates Message GU506: "Posting period & is not defined for fiscal year variant &" I have fou

  • Win 7/CS5 Can't install Pixelbender for Photoshop

    I was asked to start a Win7-flavored thread about my inability to install PixelBender for Photoshop CS 5. There are currently two installers: one for Photoshop 5 and one for Photoshop 5.1. Both fail. The "5" installer says something cryptic about ver

  • Mail Button with alternate recipients

    I am a newbie to this (approx 2 weeks), but am gaining confidence with every step! I am designing a form that goes to clients, abd obviously a Mail button is required. However, the E-Mail address of the button can be one of 4 people, and the client c

  • What is SCADA and how to integrate with SAP

    Hi all, I am new to SCADA and i would like to know 1. what is SCADA 2. Purpose of SCADA 3. how to integrate SCADA with SAP 4. In SAP for which module we can use SCADA 5. Wether SCADA is used for only PM(Plant Maintanence) in SAP Thnx in advance, Vish