Sponsored Content
Operating Systems Solaris Script to automate NAS space alerts Post 302592247 by sam09 on Monday 23rd of January 2012 10:38:39 AM
Old 01-23-2012
Script to automate NAS space alerts

Hi sb008,

Yes..i need to get alerts in mail..plz help me..!!

Thanks in Advance.

Regards,
Rajesh
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

here document to automate perl script that call script

I am trying to use a here document to automate testing a perl script however when the perl script hits a system(perl subscript.pl) call, input is no longer entered into this subscript. here is my script $ cat test.sh #ksh for testcase do program <<-EOF | tee -a funcscnlog.log y... (3 Replies)
Discussion started by: hogger84
3 Replies

2. Shell Programming and Scripting

Looking for help with a script to automate VLC

Hi, New member here looking for help. This might not be a post for the 'VERY basics' section, so feel free to move it to somewhere more appropriate. I've created a script that searches my computer for video files, creates a list of these files, and selects a number of random entries to play in... (2 Replies)
Discussion started by: uncertain
2 Replies

3. Shell Programming and Scripting

How can I automate a script?

Hi All, Can I automate a script when some one trying to 'vi' (open) a file. For Example, I am having a file named 'SecuredShell.sh'. when a user types " vi SecuredShell.sh " in unix command prompt a script named secure.sh needs to be automated. Can this be possible. if Yes please guide... (2 Replies)
Discussion started by: little_wonder
2 Replies

4. Shell Programming and Scripting

mail script to automate

Hi, Here below the logs from the mail server: less /var/log/messages: Sep 6 04:03:31 server-59 out: 1252227811|webmaster@zilia.com|antonino.granata@gmail.com|2175|success|1 Sep 6 04:03:33 server-59 in: 1252227813|news@tarot.com|junk@thess.com|30376|success|1 Sep 6 04:03:35 server-59... (8 Replies)
Discussion started by: gsiva
8 Replies

5. Windows & DOS: Issues & Discussions

automate the script

Dear all, I I want to login to my Linux machine using putty and then run some script from Windows machine.we can do it after loging it and then execute the script by typing it in putty command line screen. but I want to automate it.So whenever I will fire this script,it will do the following... (4 Replies)
Discussion started by: smartgupta
4 Replies

6. AIX

How to write a script to send these alerts?

Hello AIXians :) I want to complete this task using a script. The task is: We have a file called (alerts.log), this file is receiving all new alerts from ORACLE application all the day, I want to send email to a specific mail address when this file receives all alerts that starts with... (5 Replies)
Discussion started by: Mohannad
5 Replies

7. Shell Programming and Scripting

Startup script wont execute on NAS

Hi, So I've created /etc/rc.local #!/bin/sh polipo -c /opt/etc/polipo/polipo.conf exit 0 if I run it with ./rc.local it does what its supposed to do and the proxy starts but not at startup. any idea whats wrong? thanks (1 Reply)
Discussion started by: deon
1 Replies

8. Shell Programming and Scripting

Need help fix my script to get alerts when the command produce n expected output

Hi, Below is my script, which is used to invoke a test using curl command. #/usr/bin/sh MAILTO=user@xyz.com URL='https://myserver.xyz.net/test/dir/test123.tws' SOAPFILE=/tmp/soap.txt curl -k -s -S --header 'Content-Type: text/xml;charset=UTF-8' --data @"${SOAPFILE}" "${URL}" ... (3 Replies)
Discussion started by: System Admin 77
3 Replies

9. Shell Programming and Scripting

UNIX script to find alerts for swap space

Can someone get me script to find swap space for linux servers (1 Reply)
Discussion started by: Moon1234
1 Replies

10. UNIX for Dummies Questions & Answers

Send email attachment using Operating System Script(UNIX) in Oracle Alerts

Good Day Kindly assist: I am creating an Alert that will notify supervisors of staff members who are due for probation report. I am using Operating System Script(Unix) as source.I have already developed the script. Now the challenge is if there are 3 employee records then the alert... (2 Replies)
Discussion started by: nosi27
2 Replies
HOBBIT-ALERTS.CFG(5)						File Formats Manual					      HOBBIT-ALERTS.CFG(5)

NAME
hobbit-alerts.cfg - Configuration for for hobbitd_alert module SYNOPSIS
~xymon/server/etc/hobbit-alerts.cfg DESCRIPTION
The hobbit-alerts.cfg file controls the sending of alerts by Xymon when monitoring detects a failure. FILE FORMAT
The configuration file consists of rules, that may have one or more recipients associated. A recipient specification may include additional rules that limit the circumstances when this recipient is eligible for receiving an alert. Blank lines and lines starting with a hash mark (#) are treated as comments and ignored. Long lines can be broken up by putting a back- slash at the end of the line and continuing the entry on the next line. RULES
A rule consists of one of more filters using these keywords: PAGE=targetstring Rule matching an alert by the name of the page in BB. This is the path of the page as defined in the bb-hosts file. E.g. if you have this setup: page servers All Servers subpage web Webservers 10.0.0.1 www1.foo.com subpage db Database servers 10.0.0.2 db1.foo.com Then the "All servers" page is found with PAGE=servers, the "Webservers" page is PAGE=servers/web and the "Database servers" page is PAGE=servers/db. Note that you can also use regular expressions to specify the page name, e.g. PAGE=%.*/db would find the "Database servers" page regardless of where this page was placed in the hierarchy. The PAGE name of top-level page is an empty string. To match this, use PAGE=%^$ to match the empty string. EXPAGE=targetstring Rule excluding an alert if the pagename matches. HOST=targetstring Rule matching an alert by the hostname. EXHOST=targetstring Rule excluding an alert by matching the hostname. SERVICE=targetstring Rule matching an alert by the service name. EXSERVICE=targetstring Rule excluding an alert by matching the service name. GROUP=groupname Rule matching an alert by the group name. Groupnames are assigned to a status via the GROUP setting in the hobbit- clients.cfg file. EXGROUP=groupname Rule excluding an alert by the group name. Groupnames are assigned to a status via the GROUP setting in the hobbit- clients.cfg file. COLOR=color[,color] Rule matching an alert by color. Can be "red", "yellow", or "purple". The forms "!red", "!yellow" and "!purple" can also be used to NOT send an alert if the color is the specified one. TIME=timespecification Rule matching an alert by the time-of-day. This is specified as the DOWNTIME timespecification in the bb-hosts file. DURATION>time, DURATION<time Rule matcing an alert if the event has lasted longer/shorter than the given duration. E.g. DURATION>1h (lasted longer than 1 hour) or DURATION<30 (only sends alerts the first 30 minutes). The duration is specified as a number, optionally followed by 'm' (minutes, default), 'h' (hours) or 'd' (days). RECOVERED Rule matches if the alert has recovered from an alert state. NOTICE Rule matches if the message is a "notify" message. This type of message is sent when a host or test is disabled or enabled. The "targetstring" is either a simple pagename, hostname or servicename, OR a '%' followed by a Perl-compatible regular expression. E.g. "HOST=%www(.*)" will match any hostname that begins with "www". The same for the "groupname" setting. RECIPIENTS
The recipients are listed after the initial rule. The following keywords can be used to define recipients: MAIL address[,address] Recipient who receives an e-mail alert. This takes one parameter, the e-mail address. SCRIPT /path/to/script recipientID Recipient that invokes a script. This takes two parameters: The script filename, and the recipient that gets passed to the script. IGNORE This is used to define a recipient that does NOT trigger any alerts, and also terminates the search for more recipients. It is use- ful if you have a rule that handles most alerts, but there is just that one particular server where you dont want cpu alerts on Monday morning. Note that the IGNORE recipient always has the STOP flag defined, so when the IGNORE recipient is matched, no more recipients will be considered. So the location of this recipient in your set of recipients is important. FORMAT=formatstring Format of the text message with the alert. Default is "TEXT" (suitable for e-mail alerts). "PLAIN" is the same as text, but without the URL link to the status webpage. "SMS" is a short message with no subject for SMS alerts. "SCRIPT" is a brief message tem- plate for scripts. REPEAT=time How often an alert gets repeated. As with DURATION, time is a number optionally followed by 'm', 'h' or 'd'. UNMATCHED The alert is sent to this recipient ONLY if no other recipients received an alert for this event. STOP Stop looking for more recipients after this one matches. This is implicit on IGNORE recipients. Rules You can specify rules for a recipient also. This limits the alerts sent to this particular recipient. MACROS
It is possible to use macros in the configuration file. To define a macro: $MYMACRO=text extending to end of line After the definition of a macro, it can be used throughout the file. Wherever the text $MYMACRO appears, it will be substituted with the text of the macro before any processing of rules and recipients. It is possible to nest macros, as long as the macro is defined before it is used. ALERT SCRIPTS
Alerts can go out via custom scripts, by using the SCRIPT keyword for a recipient. Such scritps have access to the following environment variables: BBALPHAMSG The full text of the status log triggering the alert ACKCODE The "cookie" that can be used to acknowledge the alert RCPT The recipientID from the SCRIPT entry BBHOSTNAME The name of the host that the alert is about MACHIP The IP-address of the host that has a problem BBSVCNAME The name of the service that the alert is about BBSVCNUM The numeric code for the service. From the SVCCODES definition. BBHOSTSVC HOSTNAME.SERVICE that the alert is about. BBHOSTSVCCOMMAS As BBHOSTSVC, but dots in the hostname replaced with commas BBNUMERIC A 22-digit number made by BBSVCNUM, MACHIP and ACKCODE. RECOVERED Is "1" if the service has recovered. EVENTSTART Timestamp when the current status (color) began. SECS Number of seconds the service has been down. DOWNSECSMSG When recovered, holds the text "Event duration : N" where N is the DOWNSECS value. CFID Line-number in the hobbit-alerts.cfg file that caused the script to be invoked. Can be useful when troubleshooting alert configura- tion rules. SEE ALSO
hobbitd_alert(8), hobbitd(8), xymon(7), the "Configuring Xymon Alerts" guide in the Online documentation. Xymon Version 4.2.3: 4 Feb 2009 HOBBIT-ALERTS.CFG(5)
All times are GMT -4. The time now is 04:41 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy